X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/29c22b52682692a630218342d1997c803a3b487b..44f5ace3a1ccc47acfcf84761428d69cc8c7792d:/regen/regcomp.pl diff --git a/regen/regcomp.pl b/regen/regcomp.pl index abfb8cb..eef5533 100644 --- a/regen/regcomp.pl +++ b/regen/regcomp.pl @@ -34,7 +34,7 @@ while () { next; } unless ($lastregop) { - ($name[$ind], $desc, $rest[$ind]) = /^(\S+)\s+([^\t]+)\s*;\s*(.*)/; + ($name[$ind], $desc, $rest[$ind]) = /^(\S+)\s+([^\t]+?)\s*;\s*(.*)/; ($type[$ind], $code[$ind], $args[$ind], $flags[$ind], $longj[$ind]) = split /[,\s]\s*/, $desc; ++$ind; @@ -125,10 +125,8 @@ EXTCONST U8 PL_${varname}_bitmask[] = { EOP } -my $out = open_new('regnodes.h'); - -print $out read_only_top(lang => 'C', by => 'regen/regcomp.pl', - from => 'regcomp.sym'); +my $out = open_new('regnodes.h', '>', + { by => 'regen/regcomp.pl', from => 'regcomp.sym' }); printf $out <