Skip to content

Commit 50f8dc5

Browse files
Reini Urbantonycoz
Reini Urban
authored andcommitted
parser: expand tokenbuf from 256 to 1024
This should speed up parsing, and changes the "Identifier too long" limitation from max 256 to 1024. See [cperl #124] TonyC: - this was largely a core change, with an incidental change to Storable, only the Storable change has been included for compatibility with cperl
1 parent 5b0b5e9 commit 50f8dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/Storable/t/blessed.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ package main;
7373
# Still less than 256 bytes, so long classname logic not fully exercised
7474
# Identifier too long - 5.004
7575
# parser.h: char tokenbuf[256]: cperl => 1024
76-
my $m = 14; # 56 if enhanced to 1024
76+
my $m = $Config{usecperl} ? 56 : 14;
7777
my $longname = "LONG_NAME_" . ('xxxxxxxxxxxxx::' x $m) . "final";
7878

7979
eval <<EOC;

0 commit comments

Comments
 (0)