From 4163eb28d0aa1e7a7d90bc1e926f9ad4b3ae7f92 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 25 Jun 2008 10:49:57 -0700 Subject: [PATCH] Copy file and line info during a macro expansion. The file and line number information needs to be copied when doing a macro expansion. This prevents a macro that expands to an `ifdef of other construct that needs to push the stack from core dumping. --- ivlpp/lexor.lex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ivlpp/lexor.lex b/ivlpp/lexor.lex index c4ac34fc3..dc1c7ebee 100644 --- a/ivlpp/lexor.lex +++ b/ivlpp/lexor.lex @@ -1362,6 +1362,8 @@ static void do_expand(int use_args) } isp->next = istack; + isp->path = strdup(istack->path); + isp->lineno = istack->lineno; istack->yybs = YY_CURRENT_BUFFER; istack = isp;