(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:
parent
747d1333cc
commit
02ec5df820
4 changed files with 30 additions and 30 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue