In function_grep.pl and symbol.c/symbol_clean_string spaces between

the function name and * are removed. Fx. the type 'void * foo()' is
returned as 'void *foo()'. Recognized this as a valid prototype in
symbol_search.
This commit is contained in:
Peter Berg Larsen 2005-01-03 20:18:23 +00:00 committed by Alexandre Julliard
parent 73ef3155cf
commit 6beae245ea
1 changed files with 2 additions and 2 deletions

View File

@ -126,9 +126,9 @@ int symbol_search (parsed_symbol *sym)
while ((iter = strstr (iter, sym->symbol)))
{
if (iter > grep_buff && iter[-1] == ' ' &&
if (iter > grep_buff && (iter[-1] == ' ' || iter[-1] == '*') &&
(iter[strlen (sym->symbol)] == ' ' ||
iter[strlen (sym->symbol)] == '('))
iter[strlen (sym->symbol)] == '('))
{
if (VERBOSE)
printf ("Prototype '%s' looks OK, processing\n", grep_buff);