From: Ben Laurie Date: Thu, 26 Sep 2002 11:58:25 +0000 (+0000) Subject: Improve hook matching. X-Git-Tag: WROWE_2_0_43_PRE1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae2c65467d93e9fbfdde5a942d44eff78a411e5d;p=thirdparty%2Fapache%2Fhttpd.git Improve hook matching. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96984 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/list_hooks.pl b/support/list_hooks.pl index 6de9b41d12e..b2d0dd8ca5d 100755 --- a/support/list_hooks.pl +++ b/support/list_hooks.pl @@ -61,7 +61,7 @@ sub scanFile { $::Hooks{$name}->{declared}=$file; $::Hooks{$name}->{ret}=$ret; $::Hooks{$name}->{args}=$args; - } elsif(/AP_DECLARE_HOOK\(([^,]+),([^,]+)/) { + } elsif(/AP_DECLARE_HOOK\((\s*[^,\s]+)\s*,\s*([^,\s]+)/) { # really we should swallow subsequent lines to get the arguments... my $name=$2; my $ret=$1;