Skip to content
Snippets Groups Projects
Select Git revision
3 results Searching

macro

Sébastien Villemot's avatar
Sébastien Villemot authored
There were two bugs:
– with the LF convention, newlines were counted twice
– with the CR+LF convention, they were counted four times (because the CR was
  included in yyleng, alongside the LF)

The fix consists in implementing a location_increment() method similar to the
one used for the Dynare parser. This is the most robust solution.

By the way, mark the method DynareFlex::location_increment() method static.
1de34765
History
Name Last commit Last update
..