summaryrefslogtreecommitdiff
path: root/doc/scripts
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-08-23 22:54:22 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-08-23 22:54:22 +0200
commitc3c47a93d0d231b1e44bddc734f88ddfb1616182 (patch)
treed21170521e59d3dff580899ba61e19e708824c2d /doc/scripts
parent135cc1e480e25a0c4570f1e4f4542b5e4ba18479 (diff)
downloadgnutls-c3c47a93d0d231b1e44bddc734f88ddfb1616182.tar.gz
getfuncs.pl: ignore defines in headers
Diffstat (limited to 'doc/scripts')
-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;
+ }
}
}