repo.or.cz
/
nvi.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
$> to $<
[nvi.git]
/
common
/
options.awk
blob
ba8d3e8a8c17f6356f245d8ca64a85e13dce14b7
1
# $Id: options.awk,v 10.1 1995/06/08 19:00:01 bostic Exp $ (Berkeley) $Date: 1995/06/08 19:00:01 $
2
3
/
^\
/
\
*
O_
[
0
-
9
A
-
Z_
]*/ {
4
printf
(
"#define %s %d
\n
"
,
$
2
,
cnt
++);
5
next
;
6
}
7
END
{
8
printf
(
"#define O_OPTIONCOUNT %d
\n
"
,
cnt
);
9
}