Commit 8e6347d6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

assert !vsb_overflowed()



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2901 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 15b88e65
......@@ -299,7 +299,7 @@ EmitInitFunc(const struct tokenlist *tl)
Fc(tl, 0, "\nstatic void\nVGC_Init(struct cli *cli)\n{\n\n");
vsb_finish(tl->fi);
/* XXX: check vsb_overflowed ? */
AZ(vsb_overflowed(tl->fi));
vsb_cat(tl->fc, vsb_data(tl->fi));
Fc(tl, 0, "}\n");
}
......@@ -310,7 +310,7 @@ EmitFiniFunc(const struct tokenlist *tl)
Fc(tl, 0, "\nstatic void\nVGC_Fini(struct cli *cli)\n{\n\n");
vsb_finish(tl->ff);
/* XXX: check vsb_overflowed ? */
AZ(vsb_overflowed(tl->ff));
vsb_cat(tl->fc, vsb_data(tl->ff));
Fc(tl, 0, "}\n");
}
......@@ -625,7 +625,7 @@ vcc_CompileSource(struct vsb *sb, struct source *sp)
Fc(tl, 1, "VGC_function_%s (struct sess *sp)\n",
method_tab[i].name);
vsb_finish(tl->fm[i]);
/* XXX: check vsb_overflowed ? */
AZ(vsb_overflowed(tl->fm[i]));
Fc(tl, 1, "{\n");
Fc(tl, 1, "%s", vsb_data(tl->fm[i]));
Fc(tl, 1, "}\n");
......@@ -641,9 +641,10 @@ vcc_CompileSource(struct vsb *sb, struct source *sp)
/* Combine it all in the fh vsb */
vsb_finish(tl->fc);
/* XXX: check vsb_overflowed ? */
AZ(vsb_overflowed(tl->fc));
vsb_cat(tl->fh, vsb_data(tl->fc));
vsb_finish(tl->fh);
AZ(vsb_overflowed(tl->fh));
of = strdup(vsb_data(tl->fh));
AN(of);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment