Browse code

core: fix routename for event_route

Victor Seva authored on 25/08/2015 13:43:29
Showing 1 changed files
... ...
@@ -605,23 +605,23 @@ IMPORTFILE      "import_file"
605 605
 <INITIAL>{ISAVPFLAGSET}	{ count(); yylval.strval=yytext; return ISAVPFLAGSET; }
606 606
 <INITIAL>{AVPFLAGS_DECL}	{ count(); yylval.strval=yytext; return AVPFLAGS_DECL; }
607 607
 <INITIAL>{MSGLEN}	{ count(); yylval.strval=yytext; return MSGLEN; }
608
-<INITIAL>{ROUTE}	{ count(); default_routename="DEFAULT_ROUTE";
608
+<INITIAL>{ROUTE}	{ count(); routename=NULL; default_routename="DEFAULT_ROUTE";
609 609
 						yylval.strval=yytext; return ROUTE; }
610
-<INITIAL>{ROUTE_REQUEST}	{ count(); default_routename="DEFAULT_ROUTE";
610
+<INITIAL>{ROUTE_REQUEST}	{ count(); routename=NULL; default_routename="DEFAULT_ROUTE";
611 611
 								yylval.strval=yytext; return ROUTE_REQUEST; }
612
-<INITIAL>{ROUTE_ONREPLY}	{ count(); default_routename="DEFAULT_ONREPLY";
612
+<INITIAL>{ROUTE_ONREPLY}	{ count(); routename=NULL; default_routename="DEFAULT_ONREPLY";
613 613
 								yylval.strval=yytext;
614 614
 								return ROUTE_ONREPLY; }
615
-<INITIAL>{ROUTE_REPLY}	{ count(); default_routename="DEFAULT_ONREPLY";
615
+<INITIAL>{ROUTE_REPLY}	{ count(); routename=NULL; default_routename="DEFAULT_ONREPLY";
616 616
 							yylval.strval=yytext; return ROUTE_REPLY; }
617
-<INITIAL>{ROUTE_FAILURE}	{ count(); default_routename="DEFAULT_FAILURE";
617
+<INITIAL>{ROUTE_FAILURE}	{ count(); routename=NULL; default_routename="DEFAULT_FAILURE";
618 618
 								yylval.strval=yytext;
619 619
 								return ROUTE_FAILURE; }
620
-<INITIAL>{ROUTE_BRANCH} { count(); default_routename="DEFAULT_BRANCH";
620
+<INITIAL>{ROUTE_BRANCH} { count(); routename=NULL; default_routename="DEFAULT_BRANCH";
621 621
 							yylval.strval=yytext; return ROUTE_BRANCH; }
622
-<INITIAL>{ROUTE_SEND} { count(); default_routename="DEFAULT_SEND";
622
+<INITIAL>{ROUTE_SEND} { count(); routename=NULL; default_routename="DEFAULT_SEND";
623 623
 							yylval.strval=yytext; return ROUTE_SEND; }
624
-<INITIAL>{ROUTE_EVENT} { count(); default_routename="DEFAULT_EVENT";
624
+<INITIAL>{ROUTE_EVENT} { count(); routename=NULL; default_routename="DEFAULT_EVENT";
625 625
 							yylval.strval=yytext;
626 626
 							state=EVRT_NAME_S; BEGIN(EVRTNAME);
627 627
 							return ROUTE_EVENT; }
... ...
@@ -630,6 +630,7 @@ IMPORTFILE      "import_file"
630 630
 <EVRTNAME>{EVENT_RT_NAME}	{ count();
631 631
 								addstr(&s_buf, yytext, yyleng);
632 632
 								yylval.strval=s_buf.s;
633
+								routename=s_buf.s;
633 634
 								memset(&s_buf, 0, sizeof(s_buf));
634 635
 								return EVENT_RT_NAME; }
635 636
 <EVRTNAME>{RBRACK}          { count();