[teklib-general] teklib: Util: Digits are now allowed in readargs keys

Timm S. Mueller tmueller at neoscientists.org
Mon Sep 8 00:23:57 CEST 2008


details:   http://hg.teklib.org/teklib/rev/10db297a5f75
changeset: 201:10db297a5f75
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Mon Sep 08 00:21:11 2008 +0200
description:
Util: Digits are now allowed in readargs keys

diffs (13 lines):

diff -r 885d87a0ef26 -r 10db297a5f75 src/util/util_args.c
--- a/src/util/util_args.c	Sun Sep 07 15:29:58 2008 +0200
+++ b/src/util/util_args.c	Mon Sep 08 00:21:11 2008 +0200
@@ -36,7 +36,8 @@
 
 /* valid characters in a template: */
 #define ARG_TEMPLATECHAR(c) ((c >= 'a' && c <= 'z') || \
-	(c >= 'A' && c <= 'Z') || c == '-' || c == '_' || c == '?')
+	(c >= 'A' && c <= 'Z') || c == '-' || c == '_' || c == '?' || \
+	(c >= '0' && c <= '9'))
 
 /* maximum number of arguments in template: */
 #define ARG_MAXTEMPLATENUM 65535


More information about the teklib-general mailing list