diff options
Diffstat (limited to 'giscanner/doctemplates/C/function.tmpl')
-rw-r--r-- | giscanner/doctemplates/C/function.tmpl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/giscanner/doctemplates/C/function.tmpl b/giscanner/doctemplates/C/function.tmpl index e76eda31..c551bc2e 100644 --- a/giscanner/doctemplates/C/function.tmpl +++ b/giscanner/doctemplates/C/function.tmpl @@ -10,7 +10,7 @@ <api:type>${formatter.format_type(node.retval.type) | x}</api:type> </api:returns> <api:name>${formatter.format_function_name(node)}</api:name> -% for arg in node.all_parameters: +% for arg in formatter.get_parameters(node): % if arg.type.ctype == '<varargs>': <api:varargs/> % else: @@ -25,10 +25,10 @@ <%block name="synopsis"> <synopsis><code mime="text/x-csrc"> ${node.retval.type.ctype} ${formatter.format_function_name(node)} (\ -% if not node.all_parameters: +% if not formatter.get_parameters(node): void\ % else: -% for ix, arg in enumerate(node.all_parameters): +% for ix, arg in enumerate(formatter.get_parameters(node)): % if ix != 0: ${' ' * (len(formatter.format_type(node.retval.type)) + len(formatter.format_function_name(node)) + 3)}\ % endif @@ -37,7 +37,7 @@ ${' ' * (len(formatter.format_type(node.retval.type)) + len(formatter.format_fun % else: ${formatter.format_type(arg.type) | x} ${arg.argname}\ % endif -% if ix != len(node.all_parameters) - 1: +% if ix != len(formatter.get_parameters(node)) - 1: , % endif % endfor @@ -46,9 +46,9 @@ ${formatter.format_type(arg.type) | x} ${arg.argname}\ </code></synopsis> </%block> <%block name="details"> -% if node.all_parameters or node.retval: +% if formatter.get_parameters(node) or node.retval: <dl> -% for arg in node.parameters: +% for arg in formatter.get_parameters(node): <dt><p>${arg.argname} :</p></dt> <dd>${formatter.format(node, arg.doc)}</dd> % endfor |