shevek / jcpp

The C Preprocessor as a Java library
http://www.anarres.org/projects/jcpp/
Apache License 2.0
106 stars 36 forks source link

Line number mismatch after pop_source() #29

Closed shevek closed 9 years ago

shevek commented 9 years ago

Hi Shevek,

In pop_source() you have:

return line_token(t.getLine() + 1, t.getName(), "2");

It seems like there should be no "+ 1" there since it creates line number mismatch.

Thanks, Igor

shevek commented 9 years ago

Needs proper test case.