X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=opcode.pl;h=0243847f4cb487a8a850b04829aed28b528dfaf9;hb=f2a260d65825b8794898c1b0c7b02230f7d5398e;hp=8544705b76c9a03282c1ace66bec8a7839f08381;hpb=1167e5dafaeb6f2fafbecb2493434aa60f088f4d;p=p5sagit%2Fp5-mst-13.2.git diff --git a/opcode.pl b/opcode.pl index 8544705..0243847 100755 --- a/opcode.pl +++ b/opcode.pl @@ -47,9 +47,9 @@ print "\n#define MAXO ", scalar @ops, "\n\n"; print <pp_proto.h' or die "Error creating pp_proto.h: $!"; +open PPSYM, '>pp.sym' or die "Error creating pp.sym: $!"; + +for (sort keys %ckname) { + print PP "PERL_CKDEF($_)\n"; +#OP *\t", &tab(3,$_),"_((OP* o));\n"; +} + +print PP "\n\n"; + for (@ops) { next if /^i_(pre|post)(inc|dec)$/; - print PP "PPDEF(pp_$_)\n"; + print PP "PERL_PPDEF(pp_$_)\n"; + print PPSYM "pp_$_\n"; } close PP or die "Error closing pp_proto.h: $!"; +close PPSYM or die "Error closing pp.sym: $!"; ########################################################################### sub tab { @@ -277,6 +292,7 @@ regcmaybe regexp comp once ck_fun s1 S regcreset regexp reset interpolation flag ck_fun s1 S regcomp regexp compilation ck_null s| S match pattern match ck_match d/ +qr pattern quote ck_match s/ subst substitution ck_null dis/ S substcont substitution cont ck_null dis| trans character translation ck_null is" S @@ -431,7 +447,7 @@ anonhash anonymous hash ck_fun ms@ L splice splice ck_fun m@ A S? S? L push push ck_fun imst@ A L -pop pop ck_shift si% A +pop pop ck_shift s% A shift shift ck_shift s% A unshift unshift ck_fun imst@ A L sort sort ck_sort m@ C? L @@ -518,7 +534,7 @@ print print ck_listiob ims@ F? L sysopen sysopen ck_fun s@ F S S S? sysseek sysseek ck_fun s@ F S S sysread sysread ck_fun imst@ F R S S? -syswrite syswrite ck_fun imst@ F S S S? +syswrite syswrite ck_fun imst@ F S S? S? send send ck_fun imst@ F S S S? recv recv ck_fun imst@ F R S S