Skip to content

Commit

Permalink
parser: expand tokenbuf from 256 to 1024
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Reini Urban authored and tonycoz committed Jan 14, 2018
1 parent 5b0b5e9 commit 50f8dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/Storable/t/blessed.t
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ package main;
# Still less than 256 bytes, so long classname logic not fully exercised
# Identifier too long - 5.004
# parser.h: char tokenbuf[256]: cperl => 1024
my $m = 14; # 56 if enhanced to 1024
my $m = $Config{usecperl} ? 56 : 14;
my $longname = "LONG_NAME_" . ('xxxxxxxxxxxxx::' x $m) . "final";

eval <<EOC;
Expand Down

0 comments on commit 50f8dc5

Please sign in to comment.