Code cleanups; no functional changes.

This commit is contained in:
Felicity Tarnell 2014-03-07 23:47:31 +00:00
parent 3440a87ea3
commit 524b09511d
7 changed files with 593 additions and 568 deletions

View file

@ -804,3 +804,18 @@ size_t nargs;
tokfree(&args);
}
/*
* Return the function_t for the function called .name, or NULL if such a
* function doesn't exist.
*/
function_t *
find_func(name)
const WCHAR *name;
{
function_t *f;
for (f = funcs; f->fn_name; f++)
if (STRCMP(name, f->fn_name) == 0)
return f;
return NULL;
}