Mercurial > hg > freeDiameter
diff extensions/acl_wl/aw_conf.l @ 926:69d55a534aff
Improve configuration parser of acl_wl extension, to avoid errors sent on stdout/stderr
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Sat, 02 Mar 2013 16:21:26 +0100 |
parents | d59decafe9c0 |
children | 5053f1abcf5d |
line wrap: on
line diff
--- a/extensions/acl_wl/aw_conf.l Sat Mar 02 14:03:04 2013 +0100 +++ b/extensions/acl_wl/aw_conf.l Sat Mar 02 16:21:26 2013 +0100 @@ -92,4 +92,11 @@ return FQDN; } + /* No match */ +<*>[[:alnum:]]+ | /* This rule is only useful to print a complete token in error messages */ +<*>. { + TRACE_DEBUG_ERROR("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext); + return LEX_ERROR; + } + %%