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

Martin Blix Grydeland martin at
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.

Martin Blix Grydeland

Martin Blix Grydeland
Varnish Software AS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvcl-zeroarguments.patch
Type: application/octet-stream
Size: 790 bytes
Desc: not available
URL: <>

More information about the varnish-dev mailing list