mirror of https://github.com/libsdl-org/SDL.git
wikiheaders: Don't list SDL property `#define`s below functions.
They will still generate "please refer to" pages, though.
This commit is contained in:
parent
a790a67883
commit
77f4ffcc79
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue