mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-22 15:38:23 +00:00
* src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
then statements.
This commit is contained in:
1 parent
86eff18354
commit
e9bca3aded
2 files changed
+11
-2
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2002-06-03 Akim Demaille <[email protected]>
|
||||
|
||||
* src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
|
||||
then statements.
|
||||
|
||||
2002-06-03 Akim Demaille <[email protected]>
|
||||
|
||||
* src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
|
||||
|
||||
+6
-2
@@ -73,8 +73,10 @@ void
|
||||
muscle_insert (const char *key, const char *value)
|
||||
{
|
||||
muscle_entry_t pair;
|
||||
muscle_entry_t *entry = NULL;
|
||||
|
||||
pair.key = key;
|
||||
muscle_entry_t *entry = hash_lookup (muscle_table, &pair);
|
||||
entry = hash_lookup (muscle_table, &pair);
|
||||
|
||||
if (!entry)
|
||||
{
|
||||
@@ -90,8 +92,10 @@ const char*
|
||||
muscle_find (const char *key)
|
||||
{
|
||||
muscle_entry_t pair;
|
||||
muscle_entry_t *result = NULL;
|
||||
|
||||
pair.key = key;
|
||||
muscle_entry_t *result = hash_lookup (muscle_table, &pair);
|
||||
result = hash_lookup (muscle_table, &pair);
|
||||
return result ? result->value : NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user