(lookup, symbol): Rename. Rename members to match selectors and

better reflect their purpose.  Users changed.
(lookup_ca, symbol_ca): Rename.
This commit is contained in:
Markus Armbruster 2005-10-29 07:46:42 +00:00
parent 747d1333cc
commit 02ec5df820
4 changed files with 30 additions and 30 deletions

View file

@ -133,13 +133,13 @@ make_new_list(int tlev, int type)
}
static char *
lookup(int key, struct lookup *table)
lookup(int key, struct symbol *table)
{
int i;
for (i = 0; table[i].value; i++)
if (key == table[i].key)
return table[i].value;
for (i = 0; table[i].name; i++)
if (key == table[i].value)
return table[i].name;
return NULL;
}