blob: c23129d727c7d2df40992a5d5e4b2623106a570d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# $OpenBSD: options.awk,v 1.4 2017/12/14 10:02:53 martijn Exp $
# @(#)options.awk 10.1 (Berkeley) 6/8/95
BEGIN {
printf("enum {\n");
first = 1;
}
/^\/\* O_[0-9A-Z_]*/ {
printf("\t%s%s,\n", $2, first ? " = 0" : "");
first = 0;
next;
}
END {
printf("\tO_OPTIONCOUNT\n};\n");
}
|