File: findfunc

package info (click to toggle)
wine 1.4.1-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 156,772 kB
  • sloc: ansic: 2,124,295; perl: 17,673; yacc: 12,202; makefile: 7,447; sh: 3,981; lex: 3,913; cpp: 812; awk: 69; xml: 21; sed: 3
file content (14 lines) | stat: -rwxr-xr-x 316 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
name="$1"
if [ "$name" = "" ] ; then
    echo -n 'Function: '
    read name;
fi

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