Commit dce78a8c authored by Nils Goroll's avatar Nils Goroll

keep PRIV_* out of vmod documentation

Fixes #2448
parent 3dc584a4
......@@ -86,6 +86,12 @@ CLEANFILES = $(builddir)/vcc_if.c $(builddir)/vcc_if.h \\
\t$(builddir)/vmod_XXX.man.rst
'''
privs = {
'PRIV_CALL': "struct vmod_priv *",
'PRIV_VCL': "struct vmod_priv *",
'PRIV_TASK': "struct vmod_priv *",
'PRIV_TOP': "struct vmod_priv *",
}
ctypes = {
'ACL': "VCL_ACL",
......@@ -100,10 +106,6 @@ ctypes = {
'HTTP': "VCL_HTTP",
'INT': "VCL_INT",
'IP': "VCL_IP",
'PRIV_CALL': "struct vmod_priv *",
'PRIV_VCL': "struct vmod_priv *",
'PRIV_TASK': "struct vmod_priv *",
'PRIV_TOP': "struct vmod_priv *",
'PROBE': "VCL_PROBE",
'REAL': "VCL_REAL",
'STEVEDORE': "VCL_STEVEDORE",
......@@ -113,6 +115,8 @@ ctypes = {
'VOID': "VCL_VOID",
}
ctypes.update(privs)
#######################################################################
......@@ -342,6 +346,8 @@ class prototype(object):
l = []
for i in self.args:
t = i.vcl()
if t in privs:
continue
if not short:
if i.nm is not None:
t += " " + i.nm
......
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