summaryrefslogtreecommitdiff
path: root/bcc
diff options
context:
space:
mode:
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];