Patch to quicly find the file in which an API is implemented

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After using too much grep to find where a specific API is implemented
(especially for kernel32), here's my solution.

Changelog:
 - Enhances tools/findfunc to also show in which file the function is
actually implemented, as well as the header in which it is defined.

Vincent
--- wine-orig/tools/findfunc	Fri Oct 13 19:06:40 2000
+++ wine/tools/findfunc	Fri May 31 20:49:42 2002
@@ -8,6 +8,7 @@
 while [ "$name" != "" ]
 do
     find $(dirname $0)/../ -name \*.spec | xargs -l1024 grep -i $name
+    find $(dirname $0)/../ -name \*.[ch] | xargs grep -i "WINAPI[[:space:]]\+$name"
     echo -n 'Function: '
     read name
 done

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux