Slight cleanup of doc generating code.

2004-10-05  Manish Singh  <yosh@gimp.org>

        * tools/pdbgen/lib.pl: Slight cleanup of doc generating code.
This commit is contained in:
Manish Singh 2004-10-06 18:44:48 +00:00 committed by Manish Singh
parent c5d20b35e9
commit 131da633d5
2 changed files with 17 additions and 21 deletions

View File

@ -1,3 +1,7 @@
2004-10-05 Manish Singh <yosh@gimp.org>
* tools/pdbgen/lib.pl: Slight cleanup of doc generating code.
2004-10-06 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/lib.pl: for deprecated procedures, create a gtk-doc

View File

@ -456,28 +456,20 @@ CODE
$sincedesc = "\n *\n * Since: GIMP $proc->{since}";
}
if ($proc->{deprecated}) {
$out->{code} .= <<CODE;
/**
* $wrapped$funcname:
$argdesc *
@{[ &desc_wrap("This procedure is deprecated! Use $proc->{deprecated}() instead.") ]}
CODE
}
else {
$out->{code} .= <<CODE;
/**
* $wrapped$funcname:
$argdesc *
@{[ &desc_wrap($proc->{blurb}) ]}
*
@{[ &desc_wrap($proc->{help}) ]}
CODE
}
if ($proc->{deprecated}) {
$procdesc = &desc_wrap("This procedure is deprecated! " .
"Use $proc->{deprecated}() instead.");
}
else {
$procdesc = &desc_wrap($proc->{blurb}) . "\n *\n" .
&desc_wrap($proc->{help});
}
$out->{code} .= <<CODE;
/**
* $wrapped$funcname:
$argdesc *
$procdesc
*
* Returns: $retdesc$sincedesc
*/