aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-10-06 00:20:42 +0000
committerRichard Stallman <rms@gnu.org>1992-10-06 00:20:42 +0000
commited7601742bab10559e7a8e0db37b8afb096d8576 (patch)
treea2358c440dd9226b79798a5e374ad62e019b28a1 /gcc
parentd25554549b6ea81d76a3cc920ff20ec915585f96 (diff)
downloadgcc-ed7601742bab10559e7a8e0db37b8afb096d8576.zip
gcc-ed7601742bab10559e7a8e0db37b8afb096d8576.tar.gz
gcc-ed7601742bab10559e7a8e0db37b8afb096d8576.tar.bz2
Extract line containing "#define YYEMPTY" from
cp-parse.c, and append to cp-parse.h (a la Makefile.in). From-SVN: r2331
Diffstat (limited to 'gcc')
-rw-r--r--gcc/make-cc1.com11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/make-cc1.com b/gcc/make-cc1.com
index d62fe01..cddfdfd 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