File: lint.sed

package info (click to toggle)
mmorph 2.3.4.2-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 920 kB
  • ctags: 904
  • sloc: ansic: 4,992; yacc: 1,215; lex: 417; makefile: 295; sh: 48; sed: 33; csh: 26
file content (9 lines) | stat: -rw-r--r-- 336 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
#!/bin/sed -f

s/^\([^	 (]*\)(\([0-9]*\)):/"\1", line \2:/
s/^[^	]*[ 	]*\([^	 (]*\)(\([0-9]*\))[	 ]*::[	 ]*\([^	 (]*\)(\([0-9]*\))$/"\3", line \4: &\
"\1", line \2: &/
s/\n"llib-/\
"\/usr\/lib\/lint\/llib-/
s/^\(.*defined\)( \([^(]*\)(\([0-9][0-9]*\)) )/"\2", line \3: \1/
s/^\(.*used\)( \([^(]*\)(\([0-9][0-9]*\)) )/"\2", line \3: \1/