update doc scripts, disregard "const" when matching ABIs

This commit is contained in:
Robin Gareus 2016-03-25 01:22:23 +01:00
parent 581e25f369
commit 83fdfd89f7
2 changed files with 7 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;
}