mutiple() issue with gengetopt-2.17

Ch'Gans <[email protected]>
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <[email protected]>
Hi all,

It seems it is not possible to use the multiple() feature with number
greter than 9 (one digit?), is this a bug or a feature? ;o)

After looking at the code, here is the smallest patch i ever contribute,
that (i think) fix this bug.

After this modification, make check still gives "All 30 tests passed",
however i have not added corresponding testcases :~(

regards,
ch'gans

_______________________________________________
Help-gengetopt mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gengetopt
scanner.patch (text/x-patch, 608 B)
--- gengetopt-2.17/src/scanner.ll	2006-04-01 20:36:24.000000000 +0200
+++ gengetopt-2.17-cgd1/src/scanner.ll	2006-09-12 12:15:58.758377464 +0200
@@ -90,7 +90,7 @@
 
 "(" { PUSH(SIZE_STATE); updateTokenInfo (-1); return '('; }
 <SIZE_STATE>"-" { updateTokenInfo (-1); return '-'; }
-<SIZE_STATE>[[:digit:]+] { updateTokenInfo (-1); yylval.str = strdup(yytext); return TOK_SIZE; }
+<SIZE_STATE>[[:digit:]]+ { updateTokenInfo (-1); yylval.str = strdup(yytext); return TOK_SIZE; }
 ")" { POP(); updateTokenInfo (-1); return ')'; }
 
 [[:alnum:]-]	 updateTokenInfo (-1); yylval.chr = yytext[0]; return TOK_CHAR;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.