mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-06 15:30:50 +00:00
wikiheaders.pl: create Unsupported.md file with list of functions undocumented in either the headers or the wiki
This commit is contained in:
parent
37e1fc3b58
commit
b00cbd76aa
1 changed files with 39 additions and 0 deletions
|
@ -792,6 +792,45 @@ while (my $d = readdir(DH)) {
|
||||||
}
|
}
|
||||||
closedir(DH);
|
closedir(DH);
|
||||||
|
|
||||||
|
delete $wikifuncs{"Undocumented"};
|
||||||
|
|
||||||
|
{
|
||||||
|
my $path = "$wikipath/Undocumented.md";
|
||||||
|
open(FH, '>', $path) or die("Can't open '$path': $!\n");
|
||||||
|
|
||||||
|
print FH "# Undocumented\n\n";
|
||||||
|
|
||||||
|
print FH "## Functions defined in the headers, but not in the wiki\n\n";
|
||||||
|
my $header_only_func = 0;
|
||||||
|
foreach (keys %headerfuncs) {
|
||||||
|
my $fn = $_;
|
||||||
|
if (not defined $wikifuncs{$fn}) {
|
||||||
|
print FH "- [$fn]($fn)\n";
|
||||||
|
$header_only_func = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!$header_only_func) {
|
||||||
|
print FH "(none)\n";
|
||||||
|
}
|
||||||
|
print FH "\n";
|
||||||
|
|
||||||
|
print FH "## Functions defined in the wiki, but not in the headers\n\n";
|
||||||
|
|
||||||
|
my $wiki_only_func = 0;
|
||||||
|
foreach (keys %wikifuncs) {
|
||||||
|
my $fn = $_;
|
||||||
|
if (not defined $headerfuncs{$fn}) {
|
||||||
|
print FH "- [$fn]($fn)\n";
|
||||||
|
$wiki_only_func = 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!$wiki_only_func) {
|
||||||
|
print FH "(none)\n";
|
||||||
|
}
|
||||||
|
print FH "\n";
|
||||||
|
|
||||||
|
close(FH);
|
||||||
|
}
|
||||||
|
|
||||||
if ($warn_about_missing) {
|
if ($warn_about_missing) {
|
||||||
foreach (keys %wikifuncs) {
|
foreach (keys %wikifuncs) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue