public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edd602f
)
parameterized cvtkeywords
author
ceriel
<none@none>
Tue, 27 Aug 1991 09:09:49 +0000
(09:09 +0000)
committer
ceriel
<none@none>
Tue, 27 Aug 1991 09:09:49 +0000
(09:09 +0000)
util/ncgg/Makefile
patch
|
blob
|
history
util/ncgg/cvtkeywords
patch
|
blob
|
history
diff --git
a/util/ncgg/Makefile
b/util/ncgg/Makefile
index
a68f42c
..
1db16fa
100644
(file)
--- a/
util/ncgg/Makefile
+++ b/
util/ncgg/Makefile
@@
-32,7
+32,7
@@
debugcgg: cgg.o $(OFILES) debugoutput.o
cgg.o: scan.c
enterkeyw.c: cvtkeywords keywords y.tab.h
- cvtkeywords
+ cvtkeywords
keywords
debugoutput.o: debugoutput.c
$(CC) $(CFLAGS) -DCODEDEBUG -c debugoutput.c
diff --git
a/util/ncgg/cvtkeywords
b/util/ncgg/cvtkeywords
index
31fc0b4
..
cac911a
100755
(executable)
--- a/
util/ncgg/cvtkeywords
+++ b/
util/ncgg/cvtkeywords
@@
-1,6
+1,6
@@
: '$Header$'
grep '^#' y.tab.h >tokendefs
-ed -
keywords
<<'!Funky!Stuff!'
+ed -
$1
<<'!Funky!Stuff!'
g/^#/d
1,$s/\([^ ]*\)[ ][ ]*\(.*\)/ sy_p=lookup("\1",symkeyw,newsymbol);sy_p->sy_value.syv_keywno=\2;/
1i