mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
then statements.
This commit is contained in:
@@ -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