VCL compiler creates non-compileable code when calling functions that takes zero arguments (patch attached)

Martin Blix Grydeland martin at varnish-software.com
Sat May 14 14:26:41 CEST 2011


The VCL compiler will produce code that does not compile when calling
functions that takes zero arguments (these would be imported from vmods as
none of the internal functions takes zero arguments). This because it will
always output a comma in preparation for the arguments. Attached is a patch
to correct this and only supply the comma when it is needed.

Regards
Martin Blix Grydeland

-- 
Martin Blix Grydeland
Varnish Software AS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20110514/06f8efea/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvcl-zeroarguments.patch
Type: application/octet-stream
Size: 790 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20110514/06f8efea/attachment-0003.obj>


More information about the varnish-dev mailing list