summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-03-25 01:22:23 +0100
committerRobin Gareus <robin@gareus.org>2016-03-25 01:22:23 +0100
commit83fdfd89f735775cffb98d38e14015fd073a20d5 (patch)
tree79ad3951aab4bbe25fe71b1bd13f37317c11e0e7 /tools
parent581e25f3699132628785943e770c2653f5d09efc (diff)
update doc scripts, disregard "const" when matching ABIs
Diffstat (limited to 'tools')
-rwxr-xr-xtools/doxy2json/ardourdoc.sh6
-rwxr-xr-xtools/fmt-luadoc.php2
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/doxy2json/ardourdoc.sh b/tools/doxy2json/ardourdoc.sh
index 91db7c280e..478ae9326d 100755
--- a/tools/doxy2json/ardourdoc.sh
+++ b/tools/doxy2json/ardourdoc.sh
@@ -49,6 +49,12 @@ foreach (json_decode (\$json, true) as \$a) {
\$a['decl'] = str_replace ('uint8_t', 'unsigned char', \$a['decl']);
\$a['decl'] = str_replace ('pframes_t', 'unsigned int', \$a['decl']);
\$a['decl'] = str_replace ('uint64_t', 'unsigned long', \$a['decl']);
+ \$a['decl'] = str_replace ('const char', 'char', \$a['decl']);
+ \$a['decl'] = str_replace ('const float', 'float', \$a['decl']);
+ \$a['decl'] = str_replace ('const double', 'double', \$a['decl']);
+ \$a['decl'] = str_replace ('const long', 'long', \$a['decl']);
+ \$a['decl'] = str_replace ('const unsigned int', 'unsigned int', \$a['decl']);
+ \$a['decl'] = str_replace ('const unsigned long', 'unsigned long', \$a['decl']);
\$canon = str_replace (' *', '*', \$a['decl']);
\$api[\$canon] = \$a;
}
diff --git a/tools/fmt-luadoc.php b/tools/fmt-luadoc.php
index d9d5ceca63..c764afd79f 100755
--- a/tools/fmt-luadoc.php
+++ b/tools/fmt-luadoc.php
@@ -518,7 +518,7 @@ function format_doxydoc ($f) {
if (!empty ($doc)) {
$rv.= '<tr><td></td><td class="doc" colspan="2"><div class="dox">'.$doc;
$rv.= '</div></td></tr>'.NL;
- } else if (1) { # debug
+ } else if (0) { # debug
$rv.= '<tr><td></td><td class="doc" colspan="2"><p>'.htmlentities($f['cand']).'</p>';
$rv.= '</td></tr>'.NL;
}