From 39ffe589035fce17145023204b1005702e02a66f Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 5 Jan 2015 15:58:50 +0100 Subject: [PATCH] core: preprocessor subst rules are applied to pv names - all name is matched and substituted before pv is looked up - reported in FS#139 --- cfg.lex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cfg.lex b/cfg.lex index 15cd19d3c9d..472dfd0d609 100644 --- a/cfg.lex +++ b/cfg.lex @@ -1045,6 +1045,7 @@ IMPORTFILE "import_file" if (p_nest==0){ count(); addstr(&s_buf, yytext, yyleng); + r = pp_subst_run(&s_buf.s); yylval.strval=s_buf.s; memset(&s_buf, 0, sizeof(s_buf)); state=INITIAL_S; @@ -1062,6 +1063,7 @@ IMPORTFILE "import_file" {CR}|{EAT_ABLE}|. { yyless(yyleng-1); count(); addstr(&s_buf, yytext, yyleng); + r = pp_subst_run(&s_buf.s); yylval.strval=s_buf.s; memset(&s_buf, 0, sizeof(s_buf)); state=INITIAL_S;