Przeglądaj źródła

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 10 lat temu
rodzic
commit
39ffe58903
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      cfg.lex

+ 2 - 0
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"
 <PVARID>{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;