]> err.no Git - varnish/commitdiff
Merge r3346: Don't quote the entire inlined C source in the index table, just show C{
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Nov 2008 10:10:49 +0000 (10:10 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Nov 2008 10:10:49 +0000 (10:10 +0000)
Spotted by: nkallen

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3372 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_compile.c

index d7a5e0abe8b525036e7e05105f905b794ef35c1b..b5d1ff9217807cf969254b4143226b88a7957285 100644 (file)
@@ -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");
 }