X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/22c35a8c2392967a5ba6b5370695be464bd7012c..46147bce9215db8642f2bdc9a2e9e60e27f046e3:/regcomp.pl diff --git a/regcomp.pl b/regcomp.pl index d783218..febd550 100644 --- a/regcomp.pl +++ b/regcomp.pl @@ -1,3 +1,7 @@ +BEGIN { + # Get function prototypes + require 'regen_lib.pl'; +} #use Fatal qw(open close rename chmod unlink); open DESC, 'regcomp.sym'; $ind = 0; @@ -12,16 +16,20 @@ while () { } close DESC; $tot = $ind; +die "Too many regexp opcodes! Maximum is 256, but there are $tot in file!" + if $tot>256; $tmp_h = 'tmp_reg.h'; unlink $tmp_h if -f $tmp_h; open OUT, ">$tmp_h"; +binmode OUT; print OUT <