summaryrefslogtreecommitdiff
path: root/ext/Errno
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2014-09-24 08:25:24 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2014-09-25 08:29:36 +0100
commit1ef3f55063eff0bda07fa2251ec16a7807dfb602 (patch)
tree76987d3c0b6bb1ab12c05b6fa73d91a5d01cec90 /ext/Errno
parenta3baa5664f4da7f412812e0188d5ac3bab0b8694 (diff)
downloadperl-1ef3f55063eff0bda07fa2251ec16a7807dfb602.tar.gz
Tweak Errno parsing some more
This requires there to be something present in the "0xcafebabe" part of the "((type)0xcafebabe)" (et alia) pattern, otherwise it can end up matching things that it shouldn't. (The "type" part is already required to be non-empty.)
Diffstat (limited to 'ext/Errno')
-rw-r--r--ext/Errno/Errno_pm.PL2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
index 579625d113..9faa743ae0 100644
--- a/ext/Errno/Errno_pm.PL
+++ b/ext/Errno/Errno_pm.PL
@@ -245,7 +245,7 @@ sub write_errno_pm {
my($name,$expr);
next unless ($name, $expr) = /"(.*?)"\s*\[\s*\[\s*(.*?)\s*\]\s*\]/;
next if $name eq $expr;
- $expr =~ s/\(?\(\s*[a-z_]\w*\s*\)\(?([^\)]*)\)?\)?/$1/i; # ((type)0xcafebabe) at alia
+ $expr =~ s/\(?\(\s*[a-z_]\w*\s*\)\(?([^\)]+)\)?\)?/$1/i; # ((type)0xcafebabe) at alia
$expr =~ s/((?:0x)?[0-9a-fA-F]+)[luLU]+\b/$1/g; # 2147483647L et alia
next if $expr =~ m/^[a-zA-Z]+$/; # skip some Win32 functions
if($expr =~ m/^0[xX]/) {