[winedump] Allow 'void *functionname()' prototypes.

Peter Berg Larsen pebl at math.ku.dk
Mon Jan 3 02:01:03 CST 2005


Changelog:
	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.

diff -rup wine-20041201-org/tools/winedump/search.c wine/tools/winedump/search.c
--- wine-20041201-org/tools/winedump/search.c	2002-04-26 21:05:18.000000000 +0200
+++ wine/tools/winedump/search.c	2004-12-30 01:20:53.000000000 +0100
@@ -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);





More information about the wine-patches mailing list