mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-18 12:25:39 +00:00
wikiheaders: Don't list SDL property #defines below functions.
They will still generate "please refer to" pages, though.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user