Mailing List Archive

r3346 - trunk/varnish-cache/lib/libvcl
Author: phk
Date: 2008-10-23 09:49:19 +0200 (Thu, 23 Oct 2008)
New Revision: 3346

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

Spotted by: nkallen



Modified: trunk/varnish-cache/lib/libvcl/vcc_compile.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_compile.c 2008-10-22 11:33:58 UTC (rev 3345)
+++ trunk/varnish-cache/lib/libvcl/vcc_compile.c 2008-10-23 07:49:19 UTC (rev 3346)
@@ -285,8 +285,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");
}