diff options
author | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-11-19 11:25:36 -0500 |
---|---|---|
committer | José Alburquerque <jaalburqu@svn.gnome.org> | 2012-11-19 11:25:36 -0500 |
commit | eebb845eea977aa2f777c0c83c90306d79798ce8 (patch) | |
tree | 038b9cc2f21d804a11468aaa839a26342c475539 /tools/pm/WrapParser.pm | |
parent | b05333e9119a4548da0db0705b930a37ae7d7fce (diff) | |
download | glibmm-eebb845eea977aa2f777c0c83c90306d79798ce8.tar.gz |
gmmproc: Documentation: Adjust if the method has a slot param.
* tools/pm/WrapParser.pm (on_wrap_method): Pass the objCppfunc object
to the DocParser::lookup_documentation() subroutine so that it can
decide if the final parameter of the C function should be excluded
from the docs. The final parameter (which would be a gpointer
user_data parameter) would be omitted if the C++ method has a slot
parameter.
* tools/pm/DocsParser.pm (lookup_documentation): Pass the objCppfunc
on to the append_parameter_docs() subroutine which does what's
described above.
(append_parameter_documentation): Decide whether to skip the final C
parameter as described above. Also rename 'callback' parameters to
'slot' and use '@a slot' instead of '@a callback' in the main
description.
(substitute_identifiers): Replace C *Callback types to C++ Slot*
types.
Bug #688587.
Diffstat (limited to 'tools/pm/WrapParser.pm')
-rw-r--r-- | tools/pm/WrapParser.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pm/WrapParser.pm b/tools/pm/WrapParser.pm index f538b96d..82c148f0 100644 --- a/tools/pm/WrapParser.pm +++ b/tools/pm/WrapParser.pm @@ -969,7 +969,8 @@ sub on_wrap_method($) } else { - $commentblock = DocsParser::lookup_documentation($argCFunctionName, $deprecation_docs); + $commentblock = DocsParser::lookup_documentation($argCFunctionName, + $deprecation_docs, $objCppfunc); } $objOutputter->output_wrap_meth($filename, $line_num, $objCppfunc, $objCfunc, $argCppMethodDecl, $commentblock, $ifdef); |