From dddc44a59e3e393d5440a06e2b0535aeb1304f77 Mon Sep 17 00:00:00 2001 From: Robert de Bath Date: Sat, 23 Oct 2010 17:32:23 +0200 Subject: Import Dev86src-0.16.18.tar.gz --- bcc/const.h | 4 +++- bcc/preproc.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'bcc') diff --git a/bcc/const.h b/bcc/const.h index c06aca0..91f8a90 100644 --- a/bcc/const.h +++ b/bcc/const.h @@ -25,8 +25,10 @@ #ifndef VERY_SMALL_MEMORY #define SELFTYPECHECK /* check calculated type = runtime type */ -#define DBNODE /* generate compiler node debugging code */ #define OPTIMISE /* include optimisation code */ +#ifndef MSDOS +#define DBNODE /* generate compiler node debugging code */ +#endif #endif #ifndef __BCC__ diff --git a/bcc/preproc.c b/bcc/preproc.c index 97e2a96..e5f20a5 100644 --- a/bcc/preproc.c +++ b/bcc/preproc.c @@ -947,7 +947,7 @@ PUBLIC void leavemac() { mpptr->symptr->name.namea[0] &= 0x7F;/* UnSMUDGE macro definition */ ch = *++lineptr; /* gch1() would mess up next param == EOL-1 */ - if (ch != 0) + if (ch != 0 && mpptr->paramlist) { mpptr->paramspot = lineptr; lineptr = mpptr->paramlist[ch - 1]; -- cgit v1.2.1