wikiheaders: Don't list SDL property `#define`s below functions.

They will still generate "please refer to" pages, though.
This commit is contained in:
Ryan C. Gordon 2024-05-03 13:16:17 -04:00
parent a790a67883
commit 77f4ffcc79
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 13 additions and 8 deletions

View File

@ -809,16 +809,21 @@ while (my $d = readdir(DH)) {
} }
# update strings now that we know everything pending is to be applied to this declaration. Add pending blank lines and the new text. # update strings now that we know everything pending is to be applied to this declaration. Add pending blank lines and the new text.
if ($blank_lines > 0) {
while ($blank_lines > 0) { # At Sam's request, don't list property defines with functions. (See #9440)
$additional_decl .= "\n"; my $is_property = /\A\s*\#\s*define\s+SDL_PROP_/;
push @decllines, ''; if (!$is_property) {
$blank_lines--; if ($blank_lines > 0) {
while ($blank_lines > 0) {
$additional_decl .= "\n";
push @decllines, '';
$blank_lines--;
}
} }
$additional_decl .= "\n$_";
push @decllines, $_;
$lastpos = tell(FH);
} }
$additional_decl .= "\n$_";
push @decllines, $_;
$lastpos = tell(FH);
} else { } else {
seek(FH, $lastpos, 0); # re-read eaten lines again next time. seek(FH, $lastpos, 0); # re-read eaten lines again next time.
$lineno = $lastlineno; $lineno = $lastlineno;