summaryrefslogtreecommitdiff
path: root/bcc
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>2010-10-23 17:32:23 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:48:50 +0200
commitdddc44a59e3e393d5440a06e2b0535aeb1304f77 (patch)
treecfc2b774571f7cd6513a7e2f01a04518016e4995 /bcc
parent62c27c1c5cb6257b13dfc9be0394e0d2e86f2735 (diff)
downloaddev86-dddc44a59e3e393d5440a06e2b0535aeb1304f77.tar.gz
Import Dev86src-0.16.18.tar.gzv0.16.18
Diffstat (limited to 'bcc')
-rw-r--r--bcc/const.h4
-rw-r--r--bcc/preproc.c2
2 files changed, 4 insertions, 2 deletions
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];