diff options
author | 2013-03-25 20:06:16 +0000 | |
---|---|---|
committer | 2013-03-25 20:06:16 +0000 | |
commit | 898184e3e61f9129feb5978fad5a8c6865f00b92 (patch) | |
tree | 56f32aefc1eed60b534611007c7856f82697a205 /gnu/usr.bin/perl/t/porting/args_assert.t | |
parent | PGSHIFT -> PAGE_SHIFT (diff) | |
download | wireguard-openbsd-898184e3e61f9129feb5978fad5a8c6865f00b92.tar.xz wireguard-openbsd-898184e3e61f9129feb5978fad5a8c6865f00b92.zip |
import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myself
Diffstat (limited to 'gnu/usr.bin/perl/t/porting/args_assert.t')
-rwxr-xr-x | gnu/usr.bin/perl/t/porting/args_assert.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/t/porting/args_assert.t b/gnu/usr.bin/perl/t/porting/args_assert.t index 95c24f440e2..e1a2fa5d8e5 100755 --- a/gnu/usr.bin/perl/t/porting/args_assert.t +++ b/gnu/usr.bin/perl/t/porting/args_assert.t @@ -16,7 +16,7 @@ my $prefix = ''; unless (-d 't' && -f 'MANIFEST') { # we'll assume that we are in t then. - # All files are interal to perl, so Unix-style is sufficiently portable. + # All files are internal to perl, so Unix-style is sufficiently portable. $prefix = '../'; } @@ -26,7 +26,7 @@ unless (-d 't' && -f 'MANIFEST') { open my $fh, '<', $proto or die "Can't open $proto: $!"; while (<$fh>) { - $declared{$1}++ if /^#define\s+(PERL_ARGS_ASSERT[A-Za-z_]+)\s+/; + $declared{$1}++ if /^#define\s+(PERL_ARGS_ASSERT[A-Za-z0-9_]+)\s+/; } } @@ -42,7 +42,7 @@ if (!@ARGV) { } while (<>) { - $used{$1}++ if /^\s+(PERL_ARGS_ASSERT_[A-Za-z_]+);$/; + $used{$1}++ if /^\s+(PERL_ARGS_ASSERT_[A-Za-z0-9_]+);$/; } my %unused; |