Closed jdiez17 closed 11 years ago
This is because of a way the preprocessor changed in marking lines (in order to be compliant with every other preprocessor).
Previously is used to do this:
line 1
# 2 "blah"
line 3
line 4
but now it does this:
line 2
# 3 "blah"
line 3
line 4
e.g. the preprocessor directive itself indicates the next line number, not the current line number. The assembler and compiler that read in these values via rparse need to be updated to subtract 1 from them (this can be done by modifying rparse.c in libdcpu).
I suspect this can be fixed by changing lines 649-652 in libdcpu-pp/ppimpl.c, but I'm not sure what that code does. @hach-que can you take a look at this?