update doc scripts, disregard "const" when matching ABIs
authorRobin Gareus <robin@gareus.org>
Fri, 25 Mar 2016 00:22:23 +0000 (01:22 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 25 Mar 2016 00:22:23 +0000 (01:22 +0100)
tools/doxy2json/ardourdoc.sh
tools/fmt-luadoc.php

index 91db7c280e5b5d2e4d79151fa06691d2f1c5942e..478ae9326dac292e20ac54c2f745a3167dfc0e6a 100755 (executable)
@@ -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;
        }
index d9d5ceca6300d894aeef5770bebb86506c525f68..c764afd79f8c6ddd3101fecd9e07e19a169b113d 100755 (executable)
@@ -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;
                }