r921 - trunk/varnish-cache/lib/libvcl
phk at projects.linpro.no
phk at projects.linpro.no
Wed Sep 6 12:45:55 CEST 2006
Author: phk
Date: 2006-09-06 12:45:55 +0200 (Wed, 06 Sep 2006)
New Revision: 921
Modified:
trunk/varnish-cache/lib/libvcl/vcc_priv.h
Log:
Allow '-' in identifiers.
For further study: should we accept RFC2616's definition of "token" ?
Modified: trunk/varnish-cache/lib/libvcl/vcc_priv.h
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_priv.h 2006-09-06 09:58:24 UTC (rev 920)
+++ trunk/varnish-cache/lib/libvcl/vcc_priv.h 2006-09-06 10:45:55 UTC (rev 921)
@@ -5,7 +5,7 @@
#include "vcc_token_defs.h"
#define isident1(c) (isalpha(c))
-#define isident(c) (isalpha(c) || isdigit(c) || (c) == '_')
+#define isident(c) (isalpha(c) || isdigit(c) || (c) == '_' || (c) == '-')
#define isvar(c) (isident(c) || (c) == '.')
unsigned vcl_fixed_token(const char *p, const char **q);
extern const char *vcl_tnames[256];
More information about the varnish-commit
mailing list