Commit 0e90b4c7 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

More symbol table simplification

parent a6234c32
......@@ -6,6 +6,10 @@ varnish v1 -errvcl {Module debug conflicts with other symbol.} {
backend b { .host = "127.0.0.1"; }
sub debug {}
import debug;
sub vcl_recv {
call debug;
}
}
server s1 {
......
......@@ -126,3 +126,9 @@ varnish v1 -errvcl {Not a valid action in method 'vcl_recv'} {
return (synth(503));
}
}
varnish v1 -errvcl {Not a VCL label:} {
sub vcl_recv {
return (vcl(vcl_recv));
}
}
......@@ -255,13 +255,9 @@ parse_return_vcl(struct vcc *tl)
ExpectErr(tl, '(');
vcc_NextToken(tl);
ExpectErr(tl, ID);
sym = VCC_SymbolTok(tl, SYM_VCL, 0);
sym = VCC_SymbolGet(tl, SYM_VCL, "Not a VCL label", XREF_NONE);
ERRCHK(tl);
if (sym == NULL) {
VSB_printf(tl->sb, "Not a VCL label:\n");
vcc_ErrWhere(tl, tl->t);
return;
}
AN(sym);
if (sym->eval_priv == NULL) {
VSB_printf(tl->fi, "%s VCL %s */\n", VCC_INFO_PREFIX,
sym->name);
......
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