From: tfheen Date: Mon, 10 Nov 2008 10:10:49 +0000 (+0000) Subject: Merge r3346: Don't quote the entire inlined C source in the index table, just show C{ X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=619223a1173a5185165dccad412a613de3c606f4;p=varnish Merge r3346: Don't quote the entire inlined C source in the index table, just show C{ Spotted by: nkallen git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3372 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_compile.c b/varnish-cache/lib/libvcl/vcc_compile.c index d7a5e0ab..b5d1ff92 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.c +++ b/varnish-cache/lib/libvcl/vcc_compile.c @@ -286,8 +286,12 @@ LocTable(const struct tokenlist *tl) 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"); }