diff options
author | Shaun McCance <shaunm@gnome.org> | 2011-08-23 10:43:34 -0400 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-02-17 10:27:40 +0100 |
commit | 836259072ee674bcadb57ae0dcb23ab7db6ae211 (patch) | |
tree | 0235e87fb86cee696090e1904e92f8bc4ce6b5c9 /giscanner/mallard-C-function.tmpl | |
parent | f2ab70164e5e72369fb6591670d3214d06f451bd (diff) | |
download | gobject-introspection-836259072ee674bcadb57ae0dcb23ab7db6ae211.tar.gz |
g-ir-doc-tool: Added MallardFormatter class
Diffstat (limited to 'giscanner/mallard-C-function.tmpl')
-rw-r--r-- | giscanner/mallard-C-function.tmpl | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/giscanner/mallard-C-function.tmpl b/giscanner/mallard-C-function.tmpl index 8fcd30a4..fd87a83a 100644 --- a/giscanner/mallard-C-function.tmpl +++ b/giscanner/mallard-C-function.tmpl @@ -12,4 +12,26 @@ </api:function> </info> <title>${node.symbol}</title> -${format(node.doc)}</page> +<synopsis><code> +${formatter.format_type(node.retval.type)} ${node.symbol} (\ +% if len(node.parameters) == 0: +); +% endif +% for arg, ix in zip(node.parameters, range(len(node.parameters))): +% if ix != 0: +${' ' * (len(formatter.format_type(node.retval.type)) + len(node.symbol) + 3)}\ +% endif +% if arg.type.ctype == '<varargs>': +...\ +% else: +${formatter.format_type(arg.type)} ${arg.argname}\ +% endif +% if ix == len(node.parameters) - 1: +); +% else: +, +%endif +% endfor +</code></synopsis> +${formatter.format(node.doc)} +</page> |