BSD 3 development
[unix-history] / .ref-BSD-2 / src / cxref.sh
CommitLineData
6005094b
BJ
1# cxref
2# (c) 1979 Regents of the University of California
3grep -n "^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]" $* > /tmp/$$
4ex - /tmp/$$ <<\!
5v/(.*)$/d
6g/STATIC/d
7g/\<static\>/d
8g/\<long\>/d
9g/\<short\>/d
10g/\<line\>/d
11g/\<switch\>/d
12g/\<unsigned\>/d
13g/\<return\>/d
14g/\<break\>/d
15g/\<bool\>/d
16g/\<boolean\>/d
17g/\<case\>/d
18g/\<struct\>/d
19g/\<int\>/d
20g/\<char\>/d
21g/\<extern\>/d
22g/:$/d
23g/\\/d
241,$s/\(.*:\)\(.*\)/\2|\1/
251,$s/|/ /
261,$s/^\(................................................\) */\1/
27w
28q
29\!
30sort /tmp/$$
31rm /tmp/$$