Do not use '#endif/#else xxx'; it is not allowed for ANSI C

This commit is contained in:
ceriel
1991-12-17 15:05:43 +00:00
parent fa0bee0b26
commit 53c4951b29
40 changed files with 364 additions and 364 deletions

View File

@@ -2,4 +2,4 @@ distr:
echo '#ifndef lint' > Version.c
echo 'char Version[] = "ACK Pascal compiler Version XXX";' | \
sed "s/XXX/`RC -i`/" >> Version.c
echo '#endif lint' >> Version.c
echo '#endif' >> Version.c

View File

@@ -59,7 +59,7 @@ debug(va_alist)
}
va_end(ap);
}
#endif DEBUG
#endif /* DEBUG */
/*VARARGS*/
error(va_alist)
@@ -220,7 +220,7 @@ _error(class, node, ap)
case VDEBUG:
remark = "(debug)";
break;
#endif DEBUG
#endif /* DEBUG */
}
/* the place */
@@ -235,7 +235,7 @@ _error(class, node, ap)
case FATAL:
#ifdef DEBUG
case VDEBUG:
#endif DEBUG
#endif /* DEBUG */
ln = LineNumber;
break;
}
@@ -268,7 +268,7 @@ _error(class, node, ap)
}
#ifdef DEBUG
}
#endif DEBUG
#endif /* DEBUG */
if( FileName ) fprint(ERROUT, "\"%s\", line %u: ", FileName, ln);

View File

@@ -101,7 +101,7 @@ Compile(src, dst)
LexScan();
return 0; /* running the optimizer is not very useful */
}
#endif DEBUG
#endif /* DEBUG */
C_init(word_size, pointer_size);
if( !C_open(dst) )
fatal("couldn't open output file");
@@ -121,7 +121,7 @@ Compile(src, dst)
C_close();
#ifdef DEBUG
if( options['I'] ) Info();
#endif DEBUG
#endif /* DEBUG */
return !err_occurred;
}

View File

@@ -147,7 +147,7 @@ DoOption(text)
}
}
break;
#endif NOCROSS
#endif /* NOCROSS */
}
}
}

View File

@@ -146,7 +146,7 @@ extern struct type
#define long_size (SZ_LONG)
#define pointer_size (SZ_POINTER)
#define real_size (SZ_REAL)
#else NOCROSS
#else /* NOCROSS */
extern int
word_align,
int_align,
@@ -161,7 +161,7 @@ extern arith
long_size,
pointer_size,
real_size; /* All from type.c */
#endif NOCROSS
#endif /* NOCROSS */
extern arith
align();

View File

@@ -33,7 +33,7 @@ arith
long_size = SZ_LONG,
pointer_size = SZ_POINTER,
real_size = SZ_REAL;
#endif NOCROSS
#endif /* NOCROSS */
extern arith max_int;