Commit a08b9d5c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

assert VSB_finish() works

parent 068ba48f
......@@ -395,7 +395,7 @@ vcc_Act_New(struct vcc *tl, struct token *t, struct symbol *sym)
buf = VSB_new_auto();
VSB_printf(buf, ", &%s, \"%s\"", sy1->rname, sy1->name);
VSB_finish(buf);
AZ(VSB_finish(buf));
vcc_Eval_Func(tl, vf, VSB_data(buf), sy2);
ERRCHK(tl);
SkipToken(tl, ';');
......@@ -415,7 +415,7 @@ vcc_Act_New(struct vcc *tl, struct token *t, struct symbol *sym)
/* Instantiate symbols for the methods */
VSB_clear(buf);
VSB_printf(buf, ", %s", sy1->rname);
VSB_finish(buf);
AZ(VSB_finish(buf));
p = TlDup(tl, VSB_data(buf));
while (vv != NULL) {
vf = VTAILQ_FIRST(&vv->children);
......@@ -426,7 +426,7 @@ vcc_Act_New(struct vcc *tl, struct token *t, struct symbol *sym)
VSB_clear(buf);
VSB_printf(buf, "%s.%s", sy1->name, vf->value);
VSB_finish(buf);
AZ(VSB_finish(buf));
sy3 = VCC_MkSym(tl, VSB_data(buf), SYM_FUNC, VCL_LOW, VCL_HIGH);
AN(sy3);
func_sym(sy3, sy2->vmod, VTAILQ_NEXT(vf, list));
......
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