Extract line containing "#define YYEMPTY" from
authorRichard Stallman <rms@gnu.org>
Tue, 6 Oct 1992 00:20:42 +0000 (00:20 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 6 Oct 1992 00:20:42 +0000 (00:20 +0000)
cp-parse.c, and append to cp-parse.h (a la Makefile.in).

From-SVN: r2331

gcc/make-cc1.com

index d62fe01e84308315c2ea7b5a2534c2fec1de8a2f..cddfdfd32fa0b6a7488f64e34de885e025b7567f 100644 (file)
@@ -241,6 +241,17 @@ $set verify
 $       'BISON' /define /verbose 'flnm'.y
 $       'RENAME' 'flnm'_tab.c 'flnm'.c
 $       'RENAME' 'flnm'_tab.h 'flnm'.h
+$      if flnm.eqs."cp-parse"
+$              then
+$              search cp-parse.c "#define YYEMPTY"/output=t.tmp
+$              open jfile$ t.tmp
+$              read jfile$ empty_line
+$              close jfile$
+$              open jfile$ cp-parse.h/append
+$              write jfile$ empty_line
+$              close jfile$
+$              delete/nolog t.tmp;
+$              endif
 $!'f$verify(0)
 $no_bison:
 $      endif