changeset 1057:1c6c8fa622ff

Use yylval to make gcc happy
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 29 Apr 2013 12:43:41 +0800
parents e330166422ba
children 5d37c0db6cbf 13fc3fc9c789
files extensions/acl_wl/aw_conf.l extensions/acl_wl/aw_conf.y
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/acl_wl/aw_conf.l	Mon Apr 29 12:30:07 2013 +0800
+++ b/extensions/acl_wl/aw_conf.l	Mon Apr 29 12:43:41 2013 +0800
@@ -89,6 +89,7 @@
 (\*|[[:alnum:]][[:alnum:]-]*)(\.[[:alnum:]][[:alnum:]-]*)+	{
 				/* We matched a valid label, let's directly save it into the tree. The function will issue the appropriate warnings. */
 				CHECK_FCT_DO( aw_tree_add(yytext, curflag), return LEX_ERROR);
+				yylval->string = yytext;
 				return FQDN;
 			}
 
--- a/extensions/acl_wl/aw_conf.y	Mon Apr 29 12:30:07 2013 +0800
+++ b/extensions/acl_wl/aw_conf.y	Mon Apr 29 12:43:41 2013 +0800
@@ -110,11 +110,16 @@
 
 %}
 
+/* Values returned by lex for token */
+%union {
+	char 		 *string;
+}
+
 /* In case of error in the lexical analysis */
 %token 		LEX_ERROR
 
 /* Key words */
-%token 		FQDN
+%token <string>	FQDN
 
 
 /* -------------------------------------- */
@@ -125,6 +130,7 @@
 			| conffile FQDN
 			{
 				fqdn_added++;
+				TRACE_DEBUG(FULL, "Added FQDN: %s", $2);
 			}
 			| conffile LEX_ERROR
 			{
"Welcome to our mercurial repository"