From: phk Date: Thu, 23 Oct 2008 07:49:19 +0000 (+0000) Subject: 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=5c66aaefee9ac7f0598c76df649a8d38797a4185;p=varnish 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/trunk@3346 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/lib/libvcl/vcc_compile.c b/varnish-cache/lib/libvcl/vcc_compile.c index 000ba320..34acee4a 100644 --- a/varnish-cache/lib/libvcl/vcc_compile.c +++ b/varnish-cache/lib/libvcl/vcc_compile.c @@ -285,8 +285,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"); }