Mailing List Archive

r1169 - in branches/1.0: . lib/libvcl
Author: des
Date: 2006-10-18 16:26:55 +0200 (Wed, 18 Oct 2006)
New Revision: 1169

Modified:
branches/1.0/
branches/1.0/lib/libvcl/vcc_token.c
Log:
r31761 at cat (orig r1130): des | 2006-09-26 16:34:39 +0200
Add support for C++-style comments.



Property changes on: branches/1.0
___________________________________________________________________
Name: svk:merge
- d4fa192b-c00b-0410-8231-f00ffab90ce4:/trunk/varnish-cache:1129
+ d4fa192b-c00b-0410-8231-f00ffab90ce4:/trunk/varnish-cache:1130

Modified: branches/1.0/lib/libvcl/vcc_token.c
===================================================================
--- branches/1.0/lib/libvcl/vcc_token.c 2006-10-18 14:26:53 UTC (rev 1168)
+++ branches/1.0/lib/libvcl/vcc_token.c 2006-10-18 14:26:55 UTC (rev 1169)
@@ -313,6 +313,13 @@
continue;
}

+ /* Skip C++-style comments */
+ if (*p == '/' && p[1] == '/') {
+ while (p < e && *p != '\n')
+ p++;
+ continue;
+ }
+
/* Match for the fixed tokens (see token.tcl) */
u = vcl_fixed_token(p, &q);
if (u != 0) {