Mailing List Archive

r3372 - branches/2.0/varnish-cache/lib/libvcl
Author: tfheen
Date: 2008-11-10 11:10:49 +0100 (Mon, 10 Nov 2008)
New Revision: 3372

Modified:
branches/2.0/varnish-cache/lib/libvcl/vcc_compile.c
Log:
Merge r3346: Don't quote the entire inlined C source in the index table, just show C{

Spotted by: nkallen


Modified: branches/2.0/varnish-cache/lib/libvcl/vcc_compile.c
===================================================================
--- branches/2.0/varnish-cache/lib/libvcl/vcc_compile.c 2008-11-10 10:10:09 UTC (rev 3371)
+++ branches/2.0/varnish-cache/lib/libvcl/vcc_compile.c 2008-11-10 10:10:49 UTC (rev 3372)
@@ -286,8 +286,12 @@
pos++;

}
- Fc(tl, 0, " [%3u] = { %d, %8u, %4u, %3u, 0, \"%.*s\" },\n",
- t->cnt, sp->idx, t->b - sp->b, lin, pos + 1, PF(t));
+ Fc(tl, 0, " [%3u] = { %d, %8u, %4u, %3u, 0, ",
+ t->cnt, sp->idx, t->b - sp->b, lin, pos + 1);
+ if (t->tok == CSRC)
+ Fc(tl, 0, " \"C{\"},\n");
+ else
+ Fc(tl, 0, " \"%.*s\" },\n", PF(t));
}
Fc(tl, 0, "};\n");
}