update luadoc tools
This commit is contained in:
parent
238d644bf7
commit
c5906ca471
@ -420,8 +420,10 @@ foreach ($classlist as $ns => $cl) {
|
|||||||
if ($c['lua'] == $ns) {
|
if ($c['lua'] == $ns) {
|
||||||
if (strpos ($c['type'], 'Pointer Class') !== false) {
|
if (strpos ($c['type'], 'Pointer Class') !== false) {
|
||||||
$classlist[$ns]['ptr'] = true;
|
$classlist[$ns]['ptr'] = true;
|
||||||
$classlist[$ns]['decl'] = 'boost::shared_ptr< '.$c['decl']. ' >, boost::weak_ptr< '.$c['decl']. ' >';
|
$classlist[$ns]['cdecl'] = 'boost::shared_ptr< '.$c['decl']. ' >, boost::weak_ptr< '.$c['decl']. ' >';
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
$classlist[$ns]['cdecl'] = $c['decl'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -481,10 +483,19 @@ function doxydoc ($canonical_declaration) {
|
|||||||
if (isset ($api[$canonical_declaration])) {
|
if (isset ($api[$canonical_declaration])) {
|
||||||
$dox_found++;
|
$dox_found++;
|
||||||
return $api[$canonical_declaration]['doc'];
|
return $api[$canonical_declaration]['doc'];
|
||||||
} else {
|
|
||||||
$dox_miss++;
|
|
||||||
return '';
|
|
||||||
}
|
}
|
||||||
|
// remove template namespace e.g.
|
||||||
|
// "ARDOUR::Track::bounceable(boost::shared_ptr<ARDOUR::Processor>"
|
||||||
|
// "ARDOUR::Track::bounceable(boost::shared_ptr<Processor>"
|
||||||
|
$cn = preg_replace ('/<[^>]*::([^>]*)>/', '<$1>', $canonical_declaration);
|
||||||
|
if (isset ($api[$cn])) {
|
||||||
|
$dox_found++;
|
||||||
|
return $api[$cn]['doc'];
|
||||||
|
}
|
||||||
|
#fwrite (STDERR, $canonical_declaration."\n"); # XXX DEBUG
|
||||||
|
|
||||||
|
$dox_miss++;
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -932,7 +943,7 @@ foreach ($classlist as $ns => $cl) {
|
|||||||
|
|
||||||
# show original C++ declaration
|
# show original C++ declaration
|
||||||
if (isset ($cl['decl'])) {
|
if (isset ($cl['decl'])) {
|
||||||
echo '<p class="cdecl"><em>C‡</em>: '.htmlentities ($cl['decl']).'</p>'.NL;
|
echo '<p class="cdecl"><em>C‡</em>: '.htmlentities ($cl['cdecl']).'</p>'.NL;
|
||||||
}
|
}
|
||||||
|
|
||||||
# print class inheritance (direct parent *name* only)
|
# print class inheritance (direct parent *name* only)
|
||||||
|
@ -9,7 +9,9 @@ test -e ../gtk2_ardour/arluadoc
|
|||||||
test -e ../build/gtk2_ardour/luadoc
|
test -e ../build/gtk2_ardour/luadoc
|
||||||
|
|
||||||
# generate ../doc/ardourapi.json.gz
|
# generate ../doc/ardourapi.json.gz
|
||||||
./doxy2json/ardourdoc.sh
|
if test -z "$1"; then
|
||||||
|
./doxy2json/ardourdoc.sh
|
||||||
|
fi
|
||||||
|
|
||||||
# generate ../doc/luadoc.json.gz
|
# generate ../doc/luadoc.json.gz
|
||||||
$DIR/../gtk2_ardour/arluadoc
|
$DIR/../gtk2_ardour/arluadoc
|
||||||
|
Loading…
Reference in New Issue
Block a user