Varnish subroutines return type different from 3.x
guillaume at varnish-software.com
Wed Jan 3 14:42:04 UTC 2018
Pretty sure there was a reason, possibly paving the way to have subroutines
return VCL types, some time in the future.
Can I ask you what's the goal behind this? I feel like you're headed toward
an overkill solution, and we can probably avoid that.
On Wed, Jan 3, 2018 at 3:37 PM, Prem Kumar <n.premkumar.me at gmail.com> wrote:
> Hi All,
> Is there is any reason why subroutines return type changes from "static
> int" to "void" in varnish.
> During compilation of VCL to C code, all the function return type as void
> instead of static int before.
> Can you please help if there a way I can return status code from
> vcc_ParseFunction(struct vcc *tl)
> Fh(tl, 0, "void %s(VRT_CTX);\n", sym->rname);
> Fc(tl, 1, "\nvoid __match_proto__(vcl_func_t)\n");
> Fc(tl, 1, "%s(VRT_CTX)\n", sym->rname);
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc