Browse code

core: preprocessor subst rules are applied to pv names

- all name is matched and substituted before pv is looked up
- reported in FS#139

Daniel-Constantin Mierla authored on 05/01/2015 14:58:50
Showing 1 changed files
... ...
@@ -1045,6 +1045,7 @@ IMPORTFILE      "import_file"
1045 1045
 								if (p_nest==0){
1046 1046
 									count();
1047 1047
 									addstr(&s_buf, yytext, yyleng);
1048
+									r = pp_subst_run(&s_buf.s);
1048 1049
 									yylval.strval=s_buf.s;
1049 1050
 									memset(&s_buf, 0, sizeof(s_buf));
1050 1051
 									state=INITIAL_S;
... ...
@@ -1062,6 +1063,7 @@ IMPORTFILE      "import_file"
1062 1062
 <PVARID>{CR}|{EAT_ABLE}|.	{	yyless(yyleng-1);
1063 1063
 								count();
1064 1064
 								addstr(&s_buf, yytext, yyleng);
1065
+								r = pp_subst_run(&s_buf.s);
1065 1066
 								yylval.strval=s_buf.s;
1066 1067
 								memset(&s_buf, 0, sizeof(s_buf));
1067 1068
 								state=INITIAL_S;