Browse Source

Do not use '#undef aap xxx'; it is not allowed for ANSI C

ceriel 32 years ago
parent
commit
4dd5f72af5

+ 10 - 10
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

+ 11 - 11
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

+ 5 - 5
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

+ 1 - 1
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

+ 11 - 11
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

+ 11 - 11
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

+ 6 - 6
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 */
 
 

+ 5 - 5
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 */
 
 

+ 2 - 2
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

+ 2 - 2
mach/sparc/ce/mach_em.h

@@ -1,4 +1,4 @@
-#undef DEBUG 1
+/*#define DEBUG 1	/* define when debugging */
 #include <sun4/asm_linkage.h>
 
 #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

+ 3 - 3
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 */