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:
parent
73ef3155cf
commit
6beae245ea
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue