From c7280fca5285463dd68395f322004d249cfbbdb3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 2 Jan 2013 10:35:00 +0100 Subject: [PATCH] when recursinve into macros copy the previous line number; fixes macros showing line 1 for each error --- ftepp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ftepp.c b/ftepp.c index f5f0969..21669a8 100644 --- a/ftepp.c +++ b/ftepp.c @@ -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)) { -- 2.39.2