summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdoc/scripts/getfuncs.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/scripts/getfuncs.pl b/doc/scripts/getfuncs.pl
index 5de060fd8a..84b8b3bc5a 100755
--- a/doc/scripts/getfuncs.pl
+++ b/doc/scripts/getfuncs.pl
@@ -82,6 +82,10 @@ while ($line=<STDIN>) {
next if ($line =~ m/\}/);
$state = 4;
next;
+ } elsif ($line =~ m/^\s*#define/) {
+ next if ($line !~ m/\\$/);
+ $state = 5;
+ next;
} elsif ($line !~ m/^\s*extern/ && $line !~ m/^\s*typedef/ && $line !~ m/doc-skip/ && $line =~ m/^\s*\w/) {
$state = 3;
@@ -117,6 +121,11 @@ while ($line=<STDIN>) {
$state = 0;
next;
}
+ } elsif ($state == 5) { # define
+ if ($line !~ m/\\$/) {
+ $state = 0;
+ next;
+ }
}
}