From 0f8554e34b96c55616ee9639fa9f0546fc424430 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 6 Dec 2011 13:44:02 +0100 Subject: Fix getfuncs.pl parse bug; require non-empty list of function parameters. Otherwise it would detect a comment like '* foo()' as another function. --- doc/scripts/getfuncs.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/scripts') diff --git a/doc/scripts/getfuncs.pl b/doc/scripts/getfuncs.pl index 08518ee17f..b626ade9e2 100755 --- a/doc/scripts/getfuncs.pl +++ b/doc/scripts/getfuncs.pl @@ -11,15 +11,15 @@ while ($line=) { if ($line !~ m/typedef/ && $line !~ m/Copyright/) { $func = ''; - if ($line =~ m/^\s*\w+[\s\*]+([A-Za-z0-9_]+)\s*\(.*/) { + if ($line =~ m/^\s*\w+[\s\*]+([A-Za-z0-9_]+)\s*\([^\)]+/) { $func = $1; } - if ($line =~ m/^\s*\w+\s+\w+[\s\*]+([A-Za-z0-9_]+)\s*\(.*/) { + if ($line =~ m/^\s*\w+\s+\w+[\s\*]+([A-Za-z0-9_]+)\s*\([^\)]+/) { $func = $1; } - if ($line =~ m/^[\s\*]*([A-Za-z0-9_]+)\s*\(.*/) { + if ($line =~ m/^[\s\*]*([A-Za-z0-9_]+)\s*\([^\)]+/) { $func = $1; } -- cgit v1.2.1