[Pcsclite-cvs-commit] r5543 - /trunk/PCSC/src/configfile.l

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Jan 21 08:39:46 UTC 2011


Author: rousseau
Date: Fri Jan 21 08:39:43 2011
New Revision: 5543

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5543
Log:
Display the correct line number if garbage is found in the configuration
file

Modified:
    trunk/PCSC/src/configfile.l

Modified: trunk/PCSC/src/configfile.l
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/configfile.l?rev=5543&op=diff
==============================================================================
--- trunk/PCSC/src/configfile.l (original)
+++ trunk/PCSC/src/configfile.l Fri Jan 21 08:39:43 2011
@@ -51,7 +51,7 @@
 (\"[^"\n]*["\n])|(\'[^'\n]*['\n])         { (void)evaluatetoken(yytext); }
 [ \t]                                     {}
 ([A-Z]|[a-z]|[0-9]|[\\\/\-\.\_\@:])+      { (void)evaluatetoken(yytext); }
-.                                         { tok_error(yytext); }
+.                     { iOldLinenumber = iLinenumber; tok_error(yytext); }
 %%
 
 #include <stdio.h>




More information about the Pcsclite-cvs-commit mailing list