File: options.awk

package info (click to toggle)
nvi 1.79-25
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,396 kB
  • ctags: 3,767
  • sloc: ansic: 42,531; sh: 1,561; tcl: 1,124; makefile: 787; perl: 240; awk: 24; csh: 13
file content (9 lines) | stat: -rw-r--r-- 166 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
#	@(#)options.awk	10.1 (Berkeley) 6/8/95
 
/^\/\* O_[0-9A-Z_]*/ {
	printf("#define %s %d\n", $2, cnt++);
	next;
}
END {
	printf("#define O_OPTIONCOUNT %d\n", cnt);
}