Do not use '#endif/#else xxx'; it is not allowed for ANSI C
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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++;
|
||||
|
||||
@@ -52,4 +52,4 @@ struct tokenname tkfunny[] = { /* internal keywords */
|
||||
{ERRONEOUS, "erroneous"},
|
||||
{0, ""}
|
||||
};
|
||||
#endif ____
|
||||
#endif /* ____ */
|
||||
|
||||
Reference in New Issue
Block a user