summaryrefslogtreecommitdiff
path: root/tools/pm/WrapParser.pm
diff options
context:
space:
mode:
authorJosé Alburquerque <jaalburqu@svn.gnome.org>2012-11-19 11:25:36 -0500
committerJosé Alburquerque <jaalburqu@svn.gnome.org>2012-11-19 11:25:36 -0500
commiteebb845eea977aa2f777c0c83c90306d79798ce8 (patch)
tree038b9cc2f21d804a11468aaa839a26342c475539 /tools/pm/WrapParser.pm
parentb05333e9119a4548da0db0705b930a37ae7d7fce (diff)
downloadglibmm-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.pm3
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);