From: Richard Stallman Date: Tue, 6 Oct 1992 00:20:42 +0000 (+0000) Subject: Extract line containing "#define YYEMPTY" from X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed7601742bab10559e7a8e0db37b8afb096d8576;p=gcc.git Extract line containing "#define YYEMPTY" from cp-parse.c, and append to cp-parse.h (a la Makefile.in). From-SVN: r2331 --- diff --git a/gcc/make-cc1.com b/gcc/make-cc1.com index d62fe01e843..cddfdfd32fa 100644 --- a/gcc/make-cc1.com +++ b/gcc/make-cc1.com @@ -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