when recursinve into macros copy the previous line number; fixes macros showing line 1 for each error

This commit is contained in:
Wolfgang Bumiller 2013-01-02 10:35:00 +01:00
parent 686394654f
commit c7280fca52

View file

@ -647,6 +647,8 @@ static bool ftepp_macro_expand(ftepp_t *ftepp, ppmacro *macro, macroparam *param
goto cleanup;
}
ftepp->output_string = old_string;
inlex->line = ftepp->lex->line;
inlex->sline = ftepp->lex->sline;
ftepp->lex = inlex;
ftepp_recursion_header(ftepp);
if (!ftepp_preprocess(ftepp)) {