parameterized cvtkeywords

This commit is contained in:
ceriel 1991-08-27 09:09:49 +00:00
parent edd602fcdb
commit 31714c8bf3
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ debugcgg: cgg.o $(OFILES) debugoutput.o
cgg.o: scan.c cgg.o: scan.c
enterkeyw.c: cvtkeywords keywords y.tab.h enterkeyw.c: cvtkeywords keywords y.tab.h
cvtkeywords cvtkeywords keywords
debugoutput.o: debugoutput.c debugoutput.o: debugoutput.c
$(CC) $(CFLAGS) -DCODEDEBUG -c debugoutput.c $(CC) $(CFLAGS) -DCODEDEBUG -c debugoutput.c

View file

@ -1,6 +1,6 @@
: '$Header$' : '$Header$'
grep '^#' y.tab.h >tokendefs grep '^#' y.tab.h >tokendefs
ed - keywords <<'!Funky!Stuff!' ed - $1 <<'!Funky!Stuff!'
g/^#/d g/^#/d
1,$s/\([^ ]*\)[ ][ ]*\(.*\)/ sy_p=lookup("\1",symkeyw,newsymbol);sy_p->sy_value.syv_keywno=\2;/ 1,$s/\([^ ]*\)[ ][ ]*\(.*\)/ sy_p=lookup("\1",symkeyw,newsymbol);sy_p->sy_value.syv_keywno=\2;/
1i 1i