#63 Inconsistent last-line CR/LF handling (in the preprocessor?)

compiler
closed-works-for-me
John Hansen
NXC (53)
5
2009-01-18
2009-01-17
Luna Kid
No

No trailing CR/LF after last "#endif":

P:\NXT_\test\nxc>W:\devel\nxt\brixcc\nbc.exe main.nxc -w+ -O=out.tmp
# Error: Unmatched preprocessor directive
File "P:\NXT_\test\nxc\out.nxc" ; line 7

Adding CR/LF after last "#endif":

All OK.
--------------------

NOTE: The compiler itself happily compiles main.nxc even if there is no trailing CR/LF after the closing "}" of main. #endif being differently handled caused some confusion.

Discussion

  • John Hansen
    John Hansen
    2009-01-18

    Unable to reproduce in the current test release (3.3.7.20).

     
  • John Hansen
    John Hansen
    2009-01-18

    • status: open --> closed-works-for-me