From 80b250950eed94d611528e1a21a6e8b33f801d78 Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 16 Dec 1991 14:34:06 +0000 Subject: [PATCH] Do not use '#undef aap xxx'; it is not allowed for ANSI C --- fast/f_c.ansi/Parameters | 20 ++++++++++---------- fast/f_c/Parameters | 22 +++++++++++----------- fast/f_m2/Parameters | 10 +++++----- fast/f_pc/Parameters | 2 +- fcc/cemcom/Parameters.sun3 | 22 +++++++++++----------- fcc/cemcom/Parameters.vax4 | 22 +++++++++++----------- lang/m2/comp/BigPars | 12 ++++++------ lang/m2/comp/SmallPars | 10 +++++----- lang/pc/comp/Parameters | 4 ++-- mach/sparc/ce/mach_em.h | 4 ++-- util/cpp/Parameters | 6 +++--- 11 files changed, 67 insertions(+), 67 deletions(-) diff --git a/fast/f_c.ansi/Parameters b/fast/f_c.ansi/Parameters index 48c2f21d1..0ad79b10e 100644 --- a/fast/f_c.ansi/Parameters +++ b/fast/f_c.ansi/Parameters @@ -1,5 +1,5 @@ !File: lint.h -#undef LINT 1 /* if defined, 'lint' is produced */ +/*#define LINT 1 /* if defined, 'lint' is produced */ !File: pathlength.h @@ -75,15 +75,15 @@ !File: botch_free.h -#undef BOTCH_FREE 1 /* when defined, botch freed memory, as a check */ +/*#define BOTCH_FREE 1 /* when defined, botch freed memory, as a check */ !File: dataflow.h -#undef DATAFLOW 1 /* produce some compile-time xref */ +/*#define DATAFLOW 1 /* produce some compile-time xref */ !File: debug.h -#undef DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ !File: use_tmp.h @@ -91,7 +91,7 @@ and if USE_TMP is defined let them precede the rest of the generated compact code */ -#undef USE_TMP 1 /* use C_insertpart, C_endpart mechanism +/*#define USE_TMP 1 /* use C_insertpart, C_endpart mechanism to generate EM-code in the order needed for the code-generators. If not defined, the old-style peephole optimizer is @@ -111,17 +111,17 @@ !File: nopp.h -#undef NOPP 1 /* if NOT defined, use built-int preprocessor */ +/*#define NOPP 1 /* if NOT defined, use built-int preprocessor */ !File: nobitfield.h -#undef NOBITFIELD 1 /* if NOT defined, implement bitfields */ +/*#define NOBITFIELD 1 /* if NOT defined, implement bitfields */ !File: spec_arith.h /* describes internal compiler arithmetics */ -#undef SPECIAL_ARITHMETICS /* something different from native long */ -#undef UNSIGNED_ARITH unsigned arith +/*#define SPECIAL_ARITHMETICS /* something different from native long */ +#define UNSIGNED_ARITH unsigned arith /* when it is supported */ !File: static.h @@ -133,7 +133,7 @@ !File: regcount.h -#undef REGCOUNT 1 /* count occurrences for register messages */ +/*#define REGCOUNT 1 /* count occurrences for register messages */ !File: dbsymtab.h diff --git a/fast/f_c/Parameters b/fast/f_c/Parameters index 75b014160..dcb0ccd38 100644 --- a/fast/f_c/Parameters +++ b/fast/f_c/Parameters @@ -1,5 +1,5 @@ !File: lint.h -#undef LINT 1 /* if defined, 'lint' is produced */ +/*#define LINT 1 /* if defined, 'lint' is produced */ !File: pathlength.h @@ -75,15 +75,15 @@ !File: botch_free.h -#undef BOTCH_FREE 1 /* when defined, botch freed memory, as a check */ +/*#define BOTCH_FREE 1 /* when defined, botch freed memory, as a check */ !File: dataflow.h -#undef DATAFLOW 1 /* produce some compile-time xref */ +/*#define DATAFLOW 1 /* produce some compile-time xref */ !File: debug.h -#undef DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ !File: use_tmp.h @@ -91,7 +91,7 @@ and if USE_TMP is defined let them precede the rest of the generated compact code */ -#undef USE_TMP 1 /* use C_insertpart, C_endpart mechanism +/*#define USE_TMP 1 /* use C_insertpart, C_endpart mechanism to generate EM-code in the order needed for the code-generators. If not defined, the old-style peephole optimizer is @@ -112,16 +112,16 @@ !File: nopp.h -#undef NOPP 1 /* if NOT defined, use built-int preprocessor */ +/*#define NOPP 1 /* if NOT defined, use built-int preprocessor */ !File: nobitfield.h -#undef NOBITFIELD 1 /* if NOT defined, implement bitfields */ +/*#define NOBITFIELD 1 /* if NOT defined, implement bitfields */ !File: spec_arith.h /* describes internal compiler arithmetics */ -#undef SPECIAL_ARITHMETICS /* something different from native long */ +/*#define SPECIAL_ARITHMETICS /* something different from native long */ !File: static.h @@ -129,11 +129,11 @@ !File: nofloat.h -#undef NOFLOAT 1 /* if NOT defined, floats are implemented */ +/*#define NOFLOAT 1 /* if NOT defined, floats are implemented */ !File: noRoption.h -#undef NOROPTION 1 /* if NOT defined, R option is implemented */ +/*#define NOROPTION 1 /* if NOT defined, R option is implemented */ !File: nocross.h @@ -141,7 +141,7 @@ !File: regcount.h -#undef REGCOUNT 1 /* count occurrences for register messages */ +/*#define REGCOUNT 1 /* count occurrences for register messages */ !File: dbsymtab.h diff --git a/fast/f_m2/Parameters b/fast/f_m2/Parameters index 2e13c8bac..b0958a398 100644 --- a/fast/f_m2/Parameters +++ b/fast/f_m2/Parameters @@ -46,7 +46,7 @@ !File: debugcst.h -#undef DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ !File: inputtype.h #define INP_READ_IN_ONE 1 /* read input file in one */ @@ -57,11 +57,11 @@ !File: squeeze.h -#undef SQUEEZE 1 /* define on "small" machines */ +/*#define SQUEEZE 1 /* define on "small" machines */ !File: strict3rd.h -#undef STRICT_3RD_ED 1 /* define on "small" machines, and if you want +/*#define STRICT_3RD_ED 1 /* define on "small" machines, and if you want a compiler that only implements "3rd edition" Modula-2 */ @@ -72,7 +72,7 @@ !File: nostrict.h -#undef NOSTRICT 1 /* define when STRICT warnings disabled +/*#define NOSTRICT 1 /* define when STRICT warnings disabled (yet another squeezing method) */ @@ -91,7 +91,7 @@ !File: use_insert.h -#undef USE_INSERT 1 /* use C_insertpart mechanism */ +/*#define USE_INSERT 1 /* use C_insertpart mechanism */ !File: uns_arith.h diff --git a/fast/f_pc/Parameters b/fast/f_pc/Parameters index d2545e832..de07076ac 100644 --- a/fast/f_pc/Parameters +++ b/fast/f_pc/Parameters @@ -1,5 +1,5 @@ !File: debugcst.h -#undef DEBUG 1 /* perform various self-tests */ +/* #define DEBUG 1 /* perform various self-tests */ !File: density.h diff --git a/fcc/cemcom/Parameters.sun3 b/fcc/cemcom/Parameters.sun3 index 88bfdf501..1d058a525 100644 --- a/fcc/cemcom/Parameters.sun3 +++ b/fcc/cemcom/Parameters.sun3 @@ -1,5 +1,5 @@ !File: lint.h -#undef LINT 1 /* if defined, 'lint' is produced */ +/*#define LINT 1 /* if defined, 'lint' is produced */ !File: pathlength.h @@ -75,15 +75,15 @@ !File: botch_free.h -#undef BOTCH_FREE 1 /* when defined, botch freed memory, as a check */ +/*#define BOTCH_FREE 1 /* when defined, botch freed memory, as a check */ !File: dataflow.h -#undef DATAFLOW 1 /* produce some compile-time xref */ +/*#define DATAFLOW 1 /* produce some compile-time xref */ !File: debug.h -#undef DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ !File: use_tmp.h @@ -91,7 +91,7 @@ and if USE_TMP is defined let them precede the rest of the generated compact code */ -#undef USE_TMP 1 /* use C_insertpart, C_endpart mechanism +/*#define USE_TMP 1 /* use C_insertpart, C_endpart mechanism to generate EM-code in the order needed for the code-generators. If not defined, the old-style peephole optimizer is @@ -112,16 +112,16 @@ !File: nopp.h -#undef NOPP 1 /* if NOT defined, use built-int preprocessor */ +/*#define NOPP 1 /* if NOT defined, use built-int preprocessor */ !File: nobitfield.h -#undef NOBITFIELD 1 /* if NOT defined, implement bitfields */ +/*#define NOBITFIELD 1 /* if NOT defined, implement bitfields */ !File: spec_arith.h /* describes internal compiler arithmetics */ -#undef SPECIAL_ARITHMETICS /* something different from native long */ +/*#define SPECIAL_ARITHMETICS /* something different from native long */ !File: static.h @@ -129,11 +129,11 @@ !File: nofloat.h -#undef NOFLOAT 1 /* if NOT defined, floats are implemented */ +/*#define NOFLOAT 1 /* if NOT defined, floats are implemented */ !File: noRoption.h -#undef NOROPTION 1 /* if NOT defined, R option is implemented */ +/*#define NOROPTION 1 /* if NOT defined, R option is implemented */ !File: nocross.h @@ -141,7 +141,7 @@ !File: regcount.h -#undef REGCOUNT 1 /* count occurrences for register messages */ +/*#define REGCOUNT 1 /* count occurrences for register messages */ !File: dbsymtab.h diff --git a/fcc/cemcom/Parameters.vax4 b/fcc/cemcom/Parameters.vax4 index 75b014160..dcb0ccd38 100644 --- a/fcc/cemcom/Parameters.vax4 +++ b/fcc/cemcom/Parameters.vax4 @@ -1,5 +1,5 @@ !File: lint.h -#undef LINT 1 /* if defined, 'lint' is produced */ +/*#define LINT 1 /* if defined, 'lint' is produced */ !File: pathlength.h @@ -75,15 +75,15 @@ !File: botch_free.h -#undef BOTCH_FREE 1 /* when defined, botch freed memory, as a check */ +/*#define BOTCH_FREE 1 /* when defined, botch freed memory, as a check */ !File: dataflow.h -#undef DATAFLOW 1 /* produce some compile-time xref */ +/*#define DATAFLOW 1 /* produce some compile-time xref */ !File: debug.h -#undef DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ !File: use_tmp.h @@ -91,7 +91,7 @@ and if USE_TMP is defined let them precede the rest of the generated compact code */ -#undef USE_TMP 1 /* use C_insertpart, C_endpart mechanism +/*#define USE_TMP 1 /* use C_insertpart, C_endpart mechanism to generate EM-code in the order needed for the code-generators. If not defined, the old-style peephole optimizer is @@ -112,16 +112,16 @@ !File: nopp.h -#undef NOPP 1 /* if NOT defined, use built-int preprocessor */ +/*#define NOPP 1 /* if NOT defined, use built-int preprocessor */ !File: nobitfield.h -#undef NOBITFIELD 1 /* if NOT defined, implement bitfields */ +/*#define NOBITFIELD 1 /* if NOT defined, implement bitfields */ !File: spec_arith.h /* describes internal compiler arithmetics */ -#undef SPECIAL_ARITHMETICS /* something different from native long */ +/*#define SPECIAL_ARITHMETICS /* something different from native long */ !File: static.h @@ -129,11 +129,11 @@ !File: nofloat.h -#undef NOFLOAT 1 /* if NOT defined, floats are implemented */ +/*#define NOFLOAT 1 /* if NOT defined, floats are implemented */ !File: noRoption.h -#undef NOROPTION 1 /* if NOT defined, R option is implemented */ +/*#define NOROPTION 1 /* if NOT defined, R option is implemented */ !File: nocross.h @@ -141,7 +141,7 @@ !File: regcount.h -#undef REGCOUNT 1 /* count occurrences for register messages */ +/*#define REGCOUNT 1 /* count occurrences for register messages */ !File: dbsymtab.h diff --git a/lang/m2/comp/BigPars b/lang/m2/comp/BigPars index 66a624018..3bbef8023 100644 --- a/lang/m2/comp/BigPars +++ b/lang/m2/comp/BigPars @@ -45,7 +45,7 @@ !File: debugcst.h -#undef DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ !File: inputtype.h #define INP_READ_IN_ONE 1 /* read input file in one */ @@ -56,22 +56,22 @@ !File: squeeze.h -#undef SQUEEZE 1 /* define on "small" machines */ +/*#define SQUEEZE 1 /* define on "small" machines */ !File: strict3rd.h -#undef STRICT_3RD_ED 1 /* define on "small" machines, and if you want +/*#define STRICT_3RD_ED 1 /* define on "small" machines, and if you want a compiler that only implements "3rd edition" Modula-2 */ !File: nocross.h -#undef NOCROSS 1 /* define when cross-compiler not needed */ +/*#define NOCROSS 1 /* define when cross-compiler not needed */ !File: nostrict.h -#undef NOSTRICT 1 /* define when STRICT warnings disabled +/*#define NOSTRICT 1 /* define when STRICT warnings disabled (yet another squeezing method) */ @@ -94,6 +94,6 @@ !File: uns_arith.h -#undef UNSIGNED_ARITH unsigned arith +/*#define UNSIGNED_ARITH unsigned arith /* when it is supported */ diff --git a/lang/m2/comp/SmallPars b/lang/m2/comp/SmallPars index 13f987082..3941d3c25 100644 --- a/lang/m2/comp/SmallPars +++ b/lang/m2/comp/SmallPars @@ -46,10 +46,10 @@ !File: debugcst.h -#undef DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ !File: inputtype.h -#undef INP_READ_IN_ONE 1 /* read input file in one */ +/*#define INP_READ_IN_ONE 1 /* read input file in one */ !File: density.h @@ -86,14 +86,14 @@ */ !File: dbsymtab.h -#undef DBSYMTAB 1 /* ability to produce symbol table for debugger */ +/*#define DBSYMTAB 1 /* ability to produce symbol table for debugger */ !File: use_insert.h -#undef USE_INSERT 1 /* use C_insertpart mechanism */ +/*#define USE_INSERT 1 /* use C_insertpart mechanism */ !File: uns_arith.h -#undef UNSIGNED_ARITH unsigned arith +/*#define UNSIGNED_ARITH unsigned arith /* when it is supported */ diff --git a/lang/pc/comp/Parameters b/lang/pc/comp/Parameters index e39d7c785..273ab6b57 100644 --- a/lang/pc/comp/Parameters +++ b/lang/pc/comp/Parameters @@ -1,5 +1,5 @@ !File: debugcst.h -#undef DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ !File: density.h @@ -54,7 +54,7 @@ !File: nocross.h -#undef NOCROSS 1 /* define when cross compiler not needed */ +/*#define NOCROSS 1 /* define when cross compiler not needed */ !File: dbsymtab.h diff --git a/mach/sparc/ce/mach_em.h b/mach/sparc/ce/mach_em.h index d37d04bcb..f79e41a47 100644 --- a/mach/sparc/ce/mach_em.h +++ b/mach/sparc/ce/mach_em.h @@ -1,4 +1,4 @@ -#undef DEBUG 1 +/*#define DEBUG 1 /* define when debugging */ #include #define BYTES_REVERSED @@ -52,7 +52,7 @@ #define FLTSAV_OFFSET (WINDOWSIZE + FLOATTRANS) #define REGSAV (WINDOWSIZE + FLOATTRANS + ALIGN_GAP + FLTSAV) -#undef MATH_DIVIDE 1 +/*#define MATH_DIVIDE 1 /* define when using mathematical def of / */ #ifndef DEBUG #undef arg_error diff --git a/util/cpp/Parameters b/util/cpp/Parameters index 5c8496493..906a49411 100644 --- a/util/cpp/Parameters +++ b/util/cpp/Parameters @@ -34,11 +34,11 @@ !File: botch_free.h -#undef BOTCH_FREE 1 /* botch freed memory, as a check */ +/*#define BOTCH_FREE 1 /* botch freed memory, as a check */ !File: debug.h -#undef DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ !File: parbufsize.h @@ -50,7 +50,7 @@ !File: inputtype.h -#undef INP_READ_IN_ONE 1 /* read input file in one. */ +/*#define INP_READ_IN_ONE 1 /* read input file in one. */ /* If defined, we cannot read from a pipe */