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

This commit is contained in:
ceriel
1991-12-17 15:28:58 +00:00
parent 8daa5b2260
commit d33da47a2a
67 changed files with 306 additions and 298 deletions

View File

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

View File

@@ -118,7 +118,7 @@ copyact(ch1, ch2, level)
case ']':
error("unbalanced parenthesis");
break;
#endif __MATCHING_PAR__
#endif /* __MATCHING_PAR__ */
case '(':
copyact('(', ')', level+1);
@@ -136,7 +136,7 @@ copyact(ch1, ch2, level)
case '[':
copyact('[', ']', level+1);
break;
#endif __MATCHING_PAR__
#endif /* __MATCHING_PAR__ */
case '\n':
LineNumber++;

View File

@@ -52,4 +52,4 @@ struct tokenname tkfunny[] = { /* internal keywords */
{ERRONEOUS, "erroneous"},
{0, ""}
};
#endif ____
#endif /* ____ */