diff options
author | ragge <ragge> | 2009-08-09 16:45:16 +0000 |
---|---|---|
committer | ragge <ragge> | 2009-08-09 16:45:16 +0000 |
commit | ca7e004379b39324375d94418e49a10efc9c36e0 (patch) | |
tree | 3f5c61e56c98681dde77791095c6164a15b8c4a6 | |
parent | 6d3bedfde1f54844946cca359b42c1fe14dfdd19 (diff) |
Print out a \n before prtline() in an #endif, otherwise we may end up with
an illegal statement. Bug found by Jonathan Gray.
-rw-r--r-- | token.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -939,8 +939,10 @@ endifstmt(void) { if (flslvl) { flslvl--; - if (flslvl == 0) + if (flslvl == 0) { + putch('\n'); prtline(); + } } else if (trulvl) trulvl--; else |