From 2006278a5211c7be39c87e6497efd035227317b5 Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 22 Oct 1993 14:24:31 +0000 Subject: [PATCH] A fix for stabs, and define NDEBUG --- lang/cem/cemcom.ansi/BigPars | 1 + lang/cem/cemcom.ansi/SmallPars | 1 + lang/cem/cemcom.ansi/domacro.c | 3 ++- lang/cem/cemcom.ansi/input.c | 5 +++-- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lang/cem/cemcom.ansi/BigPars b/lang/cem/cemcom.ansi/BigPars index a86aeda20..fa9f30c9f 100644 --- a/lang/cem/cemcom.ansi/BigPars +++ b/lang/cem/cemcom.ansi/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.ansi/SmallPars b/lang/cem/cemcom.ansi/SmallPars index 961431566..237fd4dd0 100644 --- a/lang/cem/cemcom.ansi/SmallPars +++ b/lang/cem/cemcom.ansi/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.ansi/domacro.c b/lang/cem/cemcom.ansi/domacro.c index 3f4f43b20..a1c1e5416 100644 --- a/lang/cem/cemcom.ansi/domacro.c +++ b/lang/cem/cemcom.ansi/domacro.c @@ -30,6 +30,7 @@ #include "dbsymtab.h" #ifdef DBSYMTAB #include +#include int IncludeLevel = 0; #endif @@ -347,7 +348,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 */ if (result != filenm) free(filenm); diff --git a/lang/cem/cemcom.ansi/input.c b/lang/cem/cemcom.ansi/input.c index 0bfb80033..c56f48cdc 100644 --- a/lang/cem/cemcom.ansi/input.c +++ b/lang/cem/cemcom.ansi/input.c @@ -20,7 +20,8 @@ struct file_info finfo; #include "lint.h" #ifndef NOPP #ifdef DBSYMTAB -#include +#include +#include extern int IncludeLevel; extern char options[]; #endif @@ -77,7 +78,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