From c9ec05517691e53e2a783e17a356c85ed9acd038 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 22 Oct 1993 14:30:43 +0000 Subject: [PATCH] Define NDEBUG if you don't want assertions --- fast/f_c.ansi/Parameters | 1 + fast/f_c/Parameters | 1 + fast/f_m2/Parameters | 1 + fast/f_pc/Parameters | 3 ++- fcc/cemcom/Parameters.sun3 | 1 + fcc/cemcom/Parameters.vax4 | 1 + lang/cem/cemcom/BigPars | 1 + lang/cem/cemcom/SmallPars | 1 + lang/cem/cemcom/domacro.c | 3 ++- lang/cem/cemcom/input.c | 5 +++-- lang/cem/cpp.ansi/Parameters | 3 ++- lang/cem/lint/lpass1.ansi/Parameters | 1 + lang/cem/lint/lpass1/Parameters | 1 + lang/m2/comp/BigPars | 1 + lang/m2/comp/SmallPars | 1 + lang/pc/comp/Parameters | 1 + util/cpp/Parameters | 1 + 17 files changed, 22 insertions(+), 5 deletions(-) diff --git a/fast/f_c.ansi/Parameters b/fast/f_c.ansi/Parameters index 0ad79b10e..239e82c7e 100644 --- a/fast/f_c.ansi/Parameters +++ b/fast/f_c.ansi/Parameters @@ -84,6 +84,7 @@ !File: debug.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: use_tmp.h diff --git a/fast/f_c/Parameters b/fast/f_c/Parameters index f95b68f55..34a4f4564 100644 --- a/fast/f_c/Parameters +++ b/fast/f_c/Parameters @@ -80,6 +80,7 @@ !File: debug.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: use_tmp.h diff --git a/fast/f_m2/Parameters b/fast/f_m2/Parameters index b0958a398..211ca9431 100644 --- a/fast/f_m2/Parameters +++ b/fast/f_m2/Parameters @@ -47,6 +47,7 @@ !File: debugcst.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: inputtype.h #define INP_READ_IN_ONE 1 /* read input file in one */ diff --git a/fast/f_pc/Parameters b/fast/f_pc/Parameters index de07076ac..e26506bb5 100644 --- a/fast/f_pc/Parameters +++ b/fast/f_pc/Parameters @@ -1,5 +1,6 @@ !File: debugcst.h -/* #define DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: density.h diff --git a/fcc/cemcom/Parameters.sun3 b/fcc/cemcom/Parameters.sun3 index 69ae60bd7..9b4540d7e 100644 --- a/fcc/cemcom/Parameters.sun3 +++ b/fcc/cemcom/Parameters.sun3 @@ -80,6 +80,7 @@ !File: debug.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: use_tmp.h diff --git a/fcc/cemcom/Parameters.vax4 b/fcc/cemcom/Parameters.vax4 index f95b68f55..34a4f4564 100644 --- a/fcc/cemcom/Parameters.vax4 +++ b/fcc/cemcom/Parameters.vax4 @@ -80,6 +80,7 @@ !File: debug.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: use_tmp.h diff --git a/lang/cem/cemcom/BigPars b/lang/cem/cemcom/BigPars index 8a3cb27b1..f01c3716a 100644 --- a/lang/cem/cemcom/BigPars +++ b/lang/cem/cemcom/BigPars @@ -84,6 +84,7 @@ !File: debug.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: use_tmp.h diff --git a/lang/cem/cemcom/SmallPars b/lang/cem/cemcom/SmallPars index 097136879..84639871a 100644 --- a/lang/cem/cemcom/SmallPars +++ b/lang/cem/cemcom/SmallPars @@ -84,6 +84,7 @@ !File: debug.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: use_tmp.h diff --git a/lang/cem/cemcom/domacro.c b/lang/cem/cemcom/domacro.c index 67889beaa..7499b4711 100644 --- a/lang/cem/cemcom/domacro.c +++ b/lang/cem/cemcom/domacro.c @@ -29,6 +29,7 @@ #include "dbsymtab.h" #ifdef DBSYMTAB #include +#include int IncludeLevel = 0; extern char options[]; #endif @@ -298,7 +299,7 @@ do_include() #ifdef DBSYMTAB IncludeLevel++; if (options['g']) { - C_ms_std(FileName, N_BINCL, 0); + C_ms_stb_cst(FileName, N_BINCL, 0, (arith) 0); } #endif /* DBSYMTAB */ } diff --git a/lang/cem/cemcom/input.c b/lang/cem/cemcom/input.c index 45b002cea..a22f4c29a 100644 --- a/lang/cem/cemcom/input.c +++ b/lang/cem/cemcom/input.c @@ -18,7 +18,8 @@ extern int nestlevel; #include "dbsymtab.h" #ifndef NOPP #ifdef DBSYMTAB -#include +#include +#include extern int IncludeLevel; extern char options[]; #endif @@ -73,7 +74,7 @@ AtEoIF() nestlevel = nestlow; #ifdef DBSYMTAB if (options['g'] && IncludeLevel > 0) { - C_ms_std(FileName, N_EINCL, 0); + C_ms_stb_cst(FileName, N_EINCL, 0, (arith) 0); } IncludeLevel--; #endif diff --git a/lang/cem/cpp.ansi/Parameters b/lang/cem/cpp.ansi/Parameters index 59c99db5f..091744391 100644 --- a/lang/cem/cpp.ansi/Parameters +++ b/lang/cem/cpp.ansi/Parameters @@ -40,7 +40,8 @@ !File: debug.h -#define DEBUG 1 /* perform various self-tests */ +/*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: parbufsize.h diff --git a/lang/cem/lint/lpass1.ansi/Parameters b/lang/cem/lint/lpass1.ansi/Parameters index e93a550d2..1e635829e 100644 --- a/lang/cem/lint/lpass1.ansi/Parameters +++ b/lang/cem/lint/lpass1.ansi/Parameters @@ -85,6 +85,7 @@ !File: debug.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: use_tmp.h diff --git a/lang/cem/lint/lpass1/Parameters b/lang/cem/lint/lpass1/Parameters index 35feabcea..539950ed1 100644 --- a/lang/cem/lint/lpass1/Parameters +++ b/lang/cem/lint/lpass1/Parameters @@ -80,6 +80,7 @@ !File: debug.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: use_tmp.h diff --git a/lang/m2/comp/BigPars b/lang/m2/comp/BigPars index 3bbef8023..1f6785069 100644 --- a/lang/m2/comp/BigPars +++ b/lang/m2/comp/BigPars @@ -46,6 +46,7 @@ !File: debugcst.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: inputtype.h #define INP_READ_IN_ONE 1 /* read input file in one */ diff --git a/lang/m2/comp/SmallPars b/lang/m2/comp/SmallPars index 3941d3c25..b53f3c3a4 100644 --- a/lang/m2/comp/SmallPars +++ b/lang/m2/comp/SmallPars @@ -47,6 +47,7 @@ !File: debugcst.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: inputtype.h /*#define INP_READ_IN_ONE 1 /* read input file in one */ diff --git a/lang/pc/comp/Parameters b/lang/pc/comp/Parameters index 273ab6b57..7ff99bafb 100644 --- a/lang/pc/comp/Parameters +++ b/lang/pc/comp/Parameters @@ -1,5 +1,6 @@ !File: debugcst.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: density.h diff --git a/util/cpp/Parameters b/util/cpp/Parameters index 906a49411..9b2fe6b47 100644 --- a/util/cpp/Parameters +++ b/util/cpp/Parameters @@ -39,6 +39,7 @@ !File: debug.h /*#define DEBUG 1 /* perform various self-tests */ +#define NDEBUG 1 /* disable assertions */ !File: parbufsize.h