[sr-dev] git:master: core: use count() for 'include' directive

Daniel-Constantin Mierla miconda at gmail.com
Thu Aug 27 10:29:10 CEST 2009


Module: sip-router
Branch: master
Commit: 0fa738b70e8978587f0a1ca7e5db54b12ece4e43
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0fa738b70e8978587f0a1ca7e5db54b12ece4e43

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Aug 27 11:28:33 2009 +0300

core: use count() for 'include' directive

---

 cfg.lex |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cfg.lex b/cfg.lex
index ac7032d..a5941e4 100644
--- a/cfg.lex
+++ b/cfg.lex
@@ -577,7 +577,7 @@ EAT_ABLE	[\ \t\b\r]
 <INITIAL>{DEFAULT}	{ count(); yylval.strval=yytext; return DEFAULT; }
 <INITIAL>{WHILE}	{ count(); yylval.strval=yytext; return WHILE; }
 
-<INITIAL>{INCLUDE}  { BEGIN(INCL); }
+<INITIAL>{INCLUDE}  { count(); BEGIN(INCL); }
 
 <INITIAL>{URIHOST}	{ count(); yylval.strval=yytext; return URIHOST; }
 <INITIAL>{URIPORT}	{ count(); yylval.strval=yytext; return URIPORT; }




More information about the sr-dev mailing list