Commit 02de5d36 authored by Nils Goroll's avatar Nils Goroll

vmodtool: Do not output the dummy return type VOID of constructors

generated VCL synopsis:

old:	new OBJ = VOID dyn(STRING addr, STRING port)
new:	new OBJ = dyn(STRING addr, STRING port)
parent 60b699b9
......@@ -307,6 +307,7 @@ def nmlegal(nm):
# XXX cant have ( or ) in an argument default value
class prototype(object):
def __init__(self, st, retval=True, prefix=""):
self.st = st
ll = st.line[1]
while True:
a1 = ll.count("(")
......@@ -359,7 +360,7 @@ class prototype(object):
def vcl_proto(self, short):
s = ""
if self.retval is not None:
if self.retval is not None and type(self.st) != s_object:
s += self.retval.vcl() + " "
s += self.name + "("
ll = []
......
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