NetBSD/usr.bin/vi/common/options.awk

11 lines
229 B
Awk

# $NetBSD: options.awk,v 1.2 1999/02/15 04:54:36 hubertf Exp $
# @(#)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);
}