]> err.no Git - varnish/commitdiff
Don't quote the entire inlined C source in the index table, just show C{
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 23 Oct 2008 07:49:19 +0000 (07:49 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 23 Oct 2008 07:49:19 +0000 (07:49 +0000)
Spotted by: nkallen

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3346 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvcl/vcc_compile.c

index 000ba320af08d8fa3eb4d7a680ddedcd23b70e97..34acee4a4d1a39e52404e60023d7974203a82d40 100644 (file)
@@ -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");
 }