From c3a4b15a74d587b41fb1f9102f23d15ee33f46bb Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 11 Jun 2024 10:58:02 -0400 Subject: [PATCH] wikiheaders: Don't present printf-support compiler metadata in wiki. --- build-scripts/wikiheaders.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl index f5b3cde69..a06c02e16 100755 --- a/build-scripts/wikiheaders.pl +++ b/build-scripts/wikiheaders.pl @@ -919,6 +919,9 @@ while (my $d = readdir(DH)) { } } + $decl =~ s/\s*SDL_W?PRINTF_VARARG_FUNCV?\s*\(\d+\)\s*;\Z/;/; # don't want this metadata as part of the documentation. + $decl =~ s/SDL_PRINTF_FORMAT_STRING\s*//; # don't want this metadata as part of the documentation. + # !!! FIXME: code duplication with typedef processing, below. # We assume any `#define`s directly after the function are related to it: probably bitflags for an integer typedef. # We'll also allow some other basic preprocessor lines.