updated
authorceriel <none@none>
Wed, 25 Mar 1987 18:52:04 +0000 (18:52 +0000)
committerceriel <none@none>
Wed, 25 Mar 1987 18:52:04 +0000 (18:52 +0000)
lang/cem/cemcom/BigPars
lang/cem/cemcom/Makefile
lang/cem/cemcom/SmallPars

index 00972e5..4b4c7af 100644 (file)
@@ -2,10 +2,6 @@
 #define PATHLENGTH     1024    /* max. length of path to file          */
 
 
-!File: idepth.h
-#define        IDEPTH          100     /* maximum nr of stacked input buffers  */
-
-
 !File: errout.h
 #define        ERROUT          STDERR  /* file pointer for writing messages    */
 #define        MAXERR_LINE     5       /* maximum number of error messages given
@@ -78,7 +74,7 @@
 
 
 !File: botch_free.h
-#undef BOTCH_FREE      1       /* botch freed memory, as a check       */
+#undef BOTCH_FREE      1       /* when defined, botch freed memory, as a check */
 
 
 !File: dataflow.h
 
 
 !File: nopp.h
-#undef NOPP            1       /* use built-int preprocessor   */
+#undef NOPP            1       /* if NOT defined, use built-int preprocessor */
 
 
 !File: nobitfield.h
-#undef NOBITFIELD      1       /* implement bitfields  */
+#undef NOBITFIELD      1       /* if NOT defined, implement bitfields  */
 
 
 !File: spec_arith.h
 
 
 !File: nofloat.h
-#undef NOFLOAT                 /* floats implemented by default */
+#undef NOFLOAT         1       /* if NOT defined, floats are implemented */
+
+
+!File: noRoption.h
+#undef NOROPTION       1       /* if NOT defined, R option is implemented */
+
+
+!File: nocross.h
+#undef NOCROSS         1       /* if NOT defined, cross compiler */
+
 
index 44f28ad..0914688 100644 (file)
@@ -47,9 +47,9 @@ CFLAGS = $(CDEFS) $(COPTIONS) -O
 LDFLAGS = -i
 
 # Grammar files and their objects
-LSRC = tokenfile.g declar.g statement.g expression.g program.g
-LCSRC =        tokenfile.c declar.c statement.c expression.c program.c Lpars.c
-LOBJ = tokenfile.o declar.o statement.o expression.o program.o Lpars.o
+LSRC = tokenfile.g declar.g statement.g expression.g program.g ival.g
+LCSRC =        tokenfile.c declar.c statement.c expression.c program.c Lpars.c ival.c
+LOBJ = tokenfile.o declar.o statement.o expression.o program.o Lpars.o ival.o
 
 # Objects of hand-written C files
 CSRC = main.c idf.c declarator.c decspecs.c struct.c \
@@ -58,7 +58,7 @@ CSRC =        main.c idf.c declarator.c decspecs.c struct.c \
        tokenname.c LLlex.c LLmessage.c \
        input.c domacro.c replace.c init.c options.c \
        scan.c skip.c stack.c type.c ch7mon.c label.c eval.c \
-       switch.c ival.c conversion.c \
+       switch.c conversion.c \
        blocks.c dataflow.c Version.c
 COBJ = main.o idf.o declarator.o decspecs.o struct.o \
        expr.o ch7.o ch7bin.o cstoper.o arith.o \
@@ -66,7 +66,7 @@ COBJ =        main.o idf.o declarator.o decspecs.o struct.o \
        tokenname.o LLlex.o LLmessage.o \
        input.o domacro.o replace.o init.o options.o \
        scan.o skip.o stack.o type.o ch7mon.o label.o eval.o \
-       switch.o ival.o conversion.o \
+       switch.o conversion.o \
        blocks.o dataflow.o Version.o
 
 # Objects of other generated C files
@@ -74,16 +74,18 @@ GCSRC =     char.c symbol2str.c next.c
 GOBJ = char.o symbol2str.o next.o
 
 STRSRC = code.str declar.str decspecs.str def.str expr.str field.str \
+       estack.str \
        idf.str macro.str stack.str stmt.str struct.str switch.str type.str
 # generated source files
 GHSTRSRC = code.h declar.h decspecs.h def.h expr.h field.h \
+       estack.h \
        idf.h macro.h stack.h stmt.h struct.h switch.h type.h
 GSRC = $(GCSRC)  $(GHSTRSRC)
 
 # .h files generated by `make hfiles LLfiles'; PLEASE KEEP THIS UP-TO-DATE!
 GHSRC =        botch_free.h dataflow.h debug.h density.h errout.h \
        idfsize.h ifdepth.h inputtype.h lapbuf.h \
-       maxincl.h nobitfield.h nofloat.h nopp.h \
+       maxincl.h nobitfield.h nofloat.h nopp.h noRoption.h nocross.h \
        nparams.h numsize.h parbufsize.h pathlength.h Lpars.h \
        strsize.h target_sizes.h textsize.h use_tmp.h spec_arith.h static.h
 
@@ -98,9 +100,6 @@ GENERATED = tab tokenfile.g Lpars.h LLfiles LL.output lint.out \
        print Xref lxref hfiles Cfiles $(GHSRC) $(GSRC) longnames $(LCSRC)
 
 # include files containing ALLOCDEF specifications
-NEXTFILES = code.str declar.str decspecs.str def.str expr.str field.str \
-       idf.str macro.str stack.str stmt.str struct.str switch.str type.str
-
 OBJ =  $(COBJ) $(LOBJ) $(GOBJ)
 SRC =  $(CSRC) $(LCSRC) $(GCSRC)
 
@@ -167,8 +166,8 @@ char.c:     tab char.tab
 tab:
        $(CC) tab.c -o tab
 
-next.c:        make.next $(NEXTFILES)
-       ./make.next $(NEXTFILES) >next.c
+next.c:        make.next $(STRSRC)
+       ./make.next $(STRSRC) >next.c
 
 code.h:                make.allocd
 declar.h:      make.allocd
@@ -183,6 +182,7 @@ stmt.h:             make.allocd
 struct.h:      make.allocd
 switch.h:      make.allocd
 type.h:                make.allocd
+estack.h:      make.allocd
 
 depend:        Cfiles
        sed '/^#AUTOAUTO/,$$d' makefile >makefile.new
@@ -207,6 +207,7 @@ Xlint:
 #AUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTOAUTO
 main.o: LLlex.h
 main.o: Lpars.h
+main.o: align.h
 main.o: arith.h
 main.o: debug.h
 main.o: declar.h
@@ -216,9 +217,12 @@ main.o: input.h
 main.o: inputtype.h
 main.o: level.h
 main.o: maxincl.h
+main.o: noRoption.h
 main.o: nobitfield.h
+main.o: nocross.h
 main.o: nofloat.h
 main.o: nopp.h
+main.o: sizes.h
 main.o: spec_arith.h
 main.o: specials.h
 main.o: target_sizes.h
@@ -240,7 +244,9 @@ idf.o: idf.h
 idf.o: idfsize.h
 idf.o: label.h
 idf.o: level.h
+idf.o: noRoption.h
 idf.o: nobitfield.h
+idf.o: nocross.h
 idf.o: nofloat.h
 idf.o: nopp.h
 idf.o: sizes.h
@@ -248,6 +254,7 @@ idf.o: spec_arith.h
 idf.o: specials.h
 idf.o: stack.h
 idf.o: struct.h
+idf.o: target_sizes.h
 idf.o: type.h
 declarator.o: Lpars.h
 declarator.o: arith.h
@@ -257,16 +264,19 @@ declarator.o: expr.h
 declarator.o: idf.h
 declarator.o: label.h
 declarator.o: nobitfield.h
+declarator.o: nocross.h
 declarator.o: nofloat.h
 declarator.o: nopp.h
 declarator.o: sizes.h
 declarator.o: spec_arith.h
+declarator.o: target_sizes.h
 declarator.o: type.h
 decspecs.o: Lpars.h
 decspecs.o: arith.h
 decspecs.o: decspecs.h
 decspecs.o: def.h
 decspecs.o: level.h
+decspecs.o: noRoption.h
 decspecs.o: nobitfield.h
 decspecs.o: nofloat.h
 decspecs.o: spec_arith.h
@@ -283,13 +293,16 @@ struct.o: field.h
 struct.o: file_info.h
 struct.o: idf.h
 struct.o: level.h
+struct.o: noRoption.h
 struct.o: nobitfield.h
+struct.o: nocross.h
 struct.o: nofloat.h
 struct.o: nopp.h
 struct.o: sizes.h
 struct.o: spec_arith.h
 struct.o: stack.h
 struct.o: struct.h
+struct.o: target_sizes.h
 struct.o: type.h
 expr.o: LLlex.h
 expr.o: Lpars.h
@@ -303,11 +316,14 @@ expr.o: file_info.h
 expr.o: idf.h
 expr.o: label.h
 expr.o: level.h
+expr.o: noRoption.h
 expr.o: nobitfield.h
+expr.o: nocross.h
 expr.o: nofloat.h
 expr.o: nopp.h
 expr.o: sizes.h
 expr.o: spec_arith.h
+expr.o: target_sizes.h
 expr.o: type.h
 ch7.o: Lpars.h
 ch7.o: arith.h
@@ -329,6 +345,7 @@ ch7bin.o: botch_free.h
 ch7bin.o: expr.h
 ch7bin.o: idf.h
 ch7bin.o: label.h
+ch7bin.o: noRoption.h
 ch7bin.o: nobitfield.h
 ch7bin.o: nofloat.h
 ch7bin.o: nopp.h
@@ -343,6 +360,7 @@ cstoper.o: expr.h
 cstoper.o: idf.h
 cstoper.o: label.h
 cstoper.o: nobitfield.h
+cstoper.o: nocross.h
 cstoper.o: nofloat.h
 cstoper.o: nopp.h
 cstoper.o: sizes.h
@@ -357,6 +375,7 @@ arith.o: field.h
 arith.o: idf.h
 arith.o: label.h
 arith.o: mes.h
+arith.o: noRoption.h
 arith.o: nobitfield.h
 arith.o: nofloat.h
 arith.o: nopp.h
@@ -364,6 +383,7 @@ arith.o: spec_arith.h
 arith.o: type.h
 code.o: LLlex.h
 code.o: Lpars.h
+code.o: align.h
 code.o: arith.h
 code.o: assert.h
 code.o: atw.h
@@ -380,7 +400,9 @@ code.o: idf.h
 code.o: label.h
 code.o: level.h
 code.o: mes.h
+code.o: noRoption.h
 code.o: nobitfield.h
+code.o: nocross.h
 code.o: nofloat.h
 code.o: nopp.h
 code.o: sizes.h
@@ -388,6 +410,7 @@ code.o: spec_arith.h
 code.o: specials.h
 code.o: stack.h
 code.o: stmt.h
+code.o: target_sizes.h
 code.o: type.h
 code.o: use_tmp.h
 dumpidf.o: Lpars.h
@@ -428,10 +451,12 @@ field.o: field.h
 field.o: idf.h
 field.o: label.h
 field.o: nobitfield.h
+field.o: nocross.h
 field.o: nofloat.h
 field.o: nopp.h
 field.o: sizes.h
 field.o: spec_arith.h
+field.o: target_sizes.h
 field.o: type.h
 tokenname.o: LLlex.h
 tokenname.o: Lpars.h
@@ -453,12 +478,14 @@ LLlex.o: file_info.h
 LLlex.o: idf.h
 LLlex.o: idfsize.h
 LLlex.o: input.h
+LLlex.o: nocross.h
 LLlex.o: nofloat.h
 LLlex.o: nopp.h
 LLlex.o: numsize.h
 LLlex.o: sizes.h
 LLlex.o: spec_arith.h
 LLlex.o: strsize.h
+LLlex.o: target_sizes.h
 LLmessage.o: LLlex.h
 LLmessage.o: Lpars.h
 LLmessage.o: arith.h
@@ -521,11 +548,14 @@ options.o: idf.h
 options.o: idfsize.h
 options.o: macro.h
 options.o: maxincl.h
+options.o: noRoption.h
 options.o: nobitfield.h
+options.o: nocross.h
 options.o: nofloat.h
 options.o: nopp.h
 options.o: sizes.h
 options.o: spec_arith.h
+options.o: target_sizes.h
 options.o: use_tmp.h
 scan.o: class.h
 scan.o: idf.h
@@ -552,6 +582,7 @@ stack.o: def.h
 stack.o: idf.h
 stack.o: level.h
 stack.o: mes.h
+stack.o: noRoption.h
 stack.o: nobitfield.h
 stack.o: nofloat.h
 stack.o: nopp.h
@@ -566,10 +597,12 @@ type.o: botch_free.h
 type.o: def.h
 type.o: idf.h
 type.o: nobitfield.h
+type.o: nocross.h
 type.o: nofloat.h
 type.o: nopp.h
 type.o: sizes.h
 type.o: spec_arith.h
+type.o: target_sizes.h
 type.o: type.h
 ch7mon.o: Lpars.h
 ch7mon.o: arith.h
@@ -589,6 +622,7 @@ label.o: def.h
 label.o: idf.h
 label.o: label.h
 label.o: level.h
+label.o: noRoption.h
 label.o: nobitfield.h
 label.o: nofloat.h
 label.o: nopp.h
@@ -609,11 +643,13 @@ eval.o: label.h
 eval.o: level.h
 eval.o: mes.h
 eval.o: nobitfield.h
+eval.o: nocross.h
 eval.o: nofloat.h
 eval.o: nopp.h
 eval.o: sizes.h
 eval.o: spec_arith.h
 eval.o: stack.h
+eval.o: target_sizes.h
 eval.o: type.h
 switch.o: Lpars.h
 switch.o: arith.h
@@ -625,45 +661,32 @@ switch.o: density.h
 switch.o: expr.h
 switch.o: idf.h
 switch.o: label.h
+switch.o: noRoption.h
 switch.o: nobitfield.h
 switch.o: nofloat.h
 switch.o: nopp.h
 switch.o: spec_arith.h
 switch.o: switch.h
 switch.o: type.h
-ival.o: Lpars.h
-ival.o: align.h
-ival.o: arith.h
-ival.o: assert.h
-ival.o: class.h
-ival.o: debug.h
-ival.o: def.h
-ival.o: expr.h
-ival.o: field.h
-ival.o: idf.h
-ival.o: label.h
-ival.o: level.h
-ival.o: nobitfield.h
-ival.o: nofloat.h
-ival.o: nopp.h
-ival.o: sizes.h
-ival.o: spec_arith.h
-ival.o: struct.h
-ival.o: type.h
 conversion.o: Lpars.h
 conversion.o: arith.h
 conversion.o: nobitfield.h
+conversion.o: nocross.h
 conversion.o: nofloat.h
 conversion.o: sizes.h
 conversion.o: spec_arith.h
+conversion.o: target_sizes.h
 conversion.o: type.h
+blocks.o: align.h
 blocks.o: arith.h
 blocks.o: atw.h
 blocks.o: label.h
+blocks.o: nocross.h
 blocks.o: nofloat.h
 blocks.o: sizes.h
 blocks.o: spec_arith.h
 blocks.o: stack.h
+blocks.o: target_sizes.h
 dataflow.o: dataflow.h
 tokenfile.o: Lpars.h
 declar.o: LLlex.h
@@ -678,12 +701,15 @@ declar.o: field.h
 declar.o: file_info.h
 declar.o: idf.h
 declar.o: label.h
+declar.o: level.h
 declar.o: nobitfield.h
+declar.o: nocross.h
 declar.o: nofloat.h
 declar.o: nopp.h
 declar.o: sizes.h
 declar.o: spec_arith.h
 declar.o: struct.h
+declar.o: target_sizes.h
 declar.o: type.h
 statement.o: LLlex.h
 statement.o: Lpars.h
@@ -709,6 +735,7 @@ expression.o: expr.h
 expression.o: file_info.h
 expression.o: idf.h
 expression.o: label.h
+expression.o: noRoption.h
 expression.o: nobitfield.h
 expression.o: nofloat.h
 expression.o: nopp.h
@@ -731,5 +758,30 @@ program.o: nopp.h
 program.o: spec_arith.h
 program.o: type.h
 Lpars.o: Lpars.h
+ival.o: LLlex.h
+ival.o: Lpars.h
+ival.o: align.h
+ival.o: arith.h
+ival.o: assert.h
+ival.o: class.h
+ival.o: debug.h
+ival.o: def.h
+ival.o: estack.h
+ival.o: expr.h
+ival.o: field.h
+ival.o: file_info.h
+ival.o: idf.h
+ival.o: label.h
+ival.o: level.h
+ival.o: noRoption.h
+ival.o: nobitfield.h
+ival.o: nocross.h
+ival.o: nofloat.h
+ival.o: nopp.h
+ival.o: sizes.h
+ival.o: spec_arith.h
+ival.o: struct.h
+ival.o: target_sizes.h
+ival.o: type.h
 char.o: class.h
 symbol2str.o: Lpars.h
index 360e138..2484d24 100644 (file)
@@ -37,7 +37,7 @@
 
 
 !File: strsize.h
-#define ISTRSIZE       16      /* minimum number of bytes allocated for
+#define ISTRSIZE       32      /* minimum number of bytes allocated for
                                        storing a string                */
 #define RSTRSIZE       8       /* step size in enlarging the memory for
                                        the storage of a string         */
@@ -74,7 +74,7 @@
 
 
 !File: botch_free.h
-#undef BOTCH_FREE      1       /* botch freed memory, as a check       */
+#undef BOTCH_FREE      1       /* when defined, botch freed memory, as a check */
 
 
 !File: dataflow.h
@@ -86,7 +86,7 @@
 
 
 !File: use_tmp.h
-#define USE_TMP                1       /* collect exa, exp, ina and inp commands
+#undef USE_TMP         1       /* collect exa, exp, ina and inp commands
                                        and let them precede the rest of
                                        the generated compact code      */
 
 
 
 !File: nopp.h
-#define NOPP           1       /* use built-int preprocessor   */
+#define NOPP           1       /* if NOT defined, use built-int preprocessor */
 
 
 !File: nobitfield.h
-#define NOBITFIELD     1       /* implement bitfields  */
+#undef NOBITFIELD      1       /* if NOT defined, implement bitfields  */
 
 
 !File: spec_arith.h
 
 
 !File: nofloat.h
-#undef NOFLOAT                 /* floats implemented by default */
+#undef NOFLOAT         1       /* if NOT defined, floats are implemented */
+
+
+!File: noRoption.h
+#define NOROPTION      1       /* if NOT defined, R option is implemented */
+
+
+!File: nocross.h
+#undef NOCROSS         1       /* if NOT defined, cross compiler */
+