From b52e0e8ff16c23f3515a0843e1a43e2b20f8200a Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 21 Sep 1988 11:48:29 +0000 Subject: [PATCH] fixed l_dummy.c to also work for the C-compiler, added lint.h to BigPars and SmallPars, and added stuff for CODE_EXPANDER and PEEPHOLE to Makefile --- lang/cem/cemcom/BigPars | 4 ++++ lang/cem/cemcom/Makefile | 6 ++++-- lang/cem/cemcom/SmallPars | 4 ++++ lang/cem/cemcom/l_brace.str | 14 ++++++++++++++ lang/cem/cemcom/l_dummy.c | 5 +++++ 5 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 lang/cem/cemcom/l_brace.str diff --git a/lang/cem/cemcom/BigPars b/lang/cem/cemcom/BigPars index 153888bdb..226c44716 100644 --- a/lang/cem/cemcom/BigPars +++ b/lang/cem/cemcom/BigPars @@ -1,3 +1,7 @@ +!File: lint.h +#undef LINT 1 /* if defined, 'lint' is produced */ + + !File: pathlength.h #define PATHLENGTH 1024 /* max. length of path to file */ diff --git a/lang/cem/cemcom/Makefile b/lang/cem/cemcom/Makefile index 65050ad2f..eb3bc2ba8 100644 --- a/lang/cem/cemcom/Makefile +++ b/lang/cem/cemcom/Makefile @@ -140,12 +140,14 @@ Emain: Cfiles Omain: Cfiles rm -f *.o sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) "COPTIONS="-DPEEPHOLE $(CURRDIR)/omain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve omain ; fi' - @rm -f nmclash.o a.out *.o + @rm -f nmclash.o a.out + mv *.o PEEPHOLE CEmain: Cfiles rm -f *.o sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) "COPTIONS="-DCODE_EXPANDER $(CURRDIR)/cemain ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve cemain ; fi' - @rm -f nmclash.o a.out *.o + @rm -f nmclash.o a.out + mv *.o CODE_EXPANDER Lnt: Cfiles sh -c 'if $(CC) nmclash.c > /dev/null 2>&1 ; then make "EMHOME="$(EMHOME) $(CURRDIR)/lnt ; else EMHOME=$(EMHOME); export EMHOME; ./Resolve lnt ; fi' diff --git a/lang/cem/cemcom/SmallPars b/lang/cem/cemcom/SmallPars index 483891f11..26ff30edf 100644 --- a/lang/cem/cemcom/SmallPars +++ b/lang/cem/cemcom/SmallPars @@ -1,3 +1,7 @@ +!File: lint.h +#undef LINT 1 /* if defined, 'lint' is produced */ + + !File: pathlength.h #define PATHLENGTH 1024 /* max. length of path to file */ diff --git a/lang/cem/cemcom/l_brace.str b/lang/cem/cemcom/l_brace.str new file mode 100644 index 000000000..954d0cdef --- /dev/null +++ b/lang/cem/cemcom/l_brace.str @@ -0,0 +1,14 @@ +/* + * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. + * See the copyright notice in the ACK home directory, in the file "Copyright". + */ +/* $Header$ */ + +struct brace { + struct brace *next; + int br_count; /* ??? */ + int br_level; +}; + +/* ALLOCDEF "brace" 10 */ + diff --git a/lang/cem/cemcom/l_dummy.c b/lang/cem/cemcom/l_dummy.c index ef4f8f941..f82c24ef0 100644 --- a/lang/cem/cemcom/l_dummy.c +++ b/lang/cem/cemcom/l_dummy.c @@ -2,6 +2,10 @@ *The following functions are hacked to null-functions (i.e. they * do nothing). This needs another solution in the future. */ +#include "lint.h" + +#ifdef LINT + #include "arith.h" #include "label.h" @@ -61,3 +65,4 @@ CC_psdnam(ps_xxx,s) char *s; {} CC_pspnam(ps_xxx,s) char *s; {} /* ARGSUSED */ CC_scon(v,s) char *s; {} +#endif LINT