Commit 131da633 authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

Slight cleanup of doc generating code.

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

        * tools/pdbgen/lib.pl: Slight cleanup of doc generating code.
parent c5d20b35
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
......
......@@ -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;
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 *
@{[ &desc_wrap($proc->{blurb}) ]}
*
@{[ &desc_wrap($proc->{help}) ]}
CODE
}
$out->{code} .= <<CODE;
$procdesc
*
* Returns: $retdesc$sincedesc
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment