Fix '#undef' handling

This commit is contained in:
ceriel
1991-12-16 14:06:09 +00:00
parent dc44eba062
commit 950e26815e
5 changed files with 31 additions and 24 deletions

View File

@@ -36,7 +36,7 @@
!File: botch_free.h
#undef BOTCH_FREE 1 /* botch freed memory, as a check */
/*#define BOTCH_FREE 1 /* botch freed memory, as a check */
!File: debug.h
@@ -52,7 +52,7 @@
!File: inputtype.h
#undef INP_READ_IN_ONE 1 /* read input file in one. */
/*#define INP_READ_IN_ONE 1 /* read input file in one. */
/* If defined, we cannot read from a pipe */

View File

@@ -478,7 +478,10 @@ do_undef(argstr)
} /* else: don't complain */
if (!argstr){
free(str);
SkipToNewLine();
if (SkipToNewLine()) {
if (!options['o'])
strict("garbage following #else");
}
}
}
else