freebsd-src/usr.bin/vi/common/options.awk
Sean Eric Fagan 18fd508d01 Latest public release of nvi, from Keith Bostic. I hope I got this
right ;).
Reviewed by:	Sean Eric Fagan
1994-08-16 23:36:45 +00:00

10 lines
166 B
Awk

# @(#)options.awk 8.1 (Berkeley) 4/17/94
/^\/\* O_[0-9A-Z_]*/ {
printf("#define %s %d\n", $2, cnt++);
next;
}
END {
printf("#define O_OPTIONCOUNT %d\n", cnt);
}