push @embed, \@args;
}
+open IN, 'regen/opcodes' or die $!;
+{
+ my %syms;
+
+ while (<IN>) {
+ chop;
+ next unless $_;
+ next if /^#/;
+ my (undef, undef, $check) = split /\t+/, $_;
+ ++$syms{$check};
+ }
+
+ foreach (keys %syms) {
+ # These are all indirectly referenced by globals.c.
+ push @embed, ['pR', 'OP *', $_, 'NN OP *o'];
+ }
+}
+close IN;
+
open IN, 'pp.sym' or die $!;
{
my %syms;
foreach (sort keys %syms) {
s/^Perl_//;
- if (/^ck_/) {
- # These are all indirectly referenced by globals.c.
- # This is somewhat annoying.
- push @embed, ['pR', 'OP *', $_, 'NN OP *o'];
- }
- elsif (/^pp_/) {
+ if (/^pp_/) {
push @embed, ['p', 'OP *', $_];
}
else {
END
-for (sort keys %ckname) {
- print $ppsym "Perl_$_\n";
-#OP *\t", &tab(3,$_),"(OP* o);\n";
-}
-
for (@ops) {
next if /^i_(pre|post)(inc|dec)$/;
next if /^custom$/;