X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=opcode.pl;h=2e086417dc036796052df6fdfdcf0d6a9c80068b;hb=1cc8b4c566f7901a54e4b576f09608beb4c81f86;hp=3c9ae929ebadd5bf6c42c7d70fa5832808a276cb;hpb=46f659cb44a97e36a1da9a3cb9c703c9d7ce538f;p=p5sagit%2Fp5-mst-13.2.git diff --git a/opcode.pl b/opcode.pl index 3c9ae92..2e08641 100755 --- a/opcode.pl +++ b/opcode.pl @@ -65,6 +65,16 @@ print <op_type == OP_CUSTOM ? custom_op_name(o) : \\ + PL_op_name[o->op_type]) +#define OP_DESC(o) (o->op_type == OP_CUSTOM ? custom_op_desc(o) : \\ + PL_op_desc[o->op_type]) +#else +#define OP_NAME(o) PL_op_name[o->op_type] +#define OP_DESC(o) PL_op_desc[o->op_type] +#endif + #ifndef DOINIT EXT char *PL_op_name[]; #else @@ -130,7 +140,7 @@ EXT OP * (CPERLscope(*PL_ppaddr)[])(pTHX) = { END for (@ops) { - print "\tMEMBER_TO_FPTR(Perl_pp_$_),\n"; + print "\tMEMBER_TO_FPTR(Perl_pp_$_),\n" unless $_ eq "custom"; } print < ck_null t% +readline ck_null t% F? rcatline append I/O operator ck_null t% # Bindable operators. @@ -881,3 +897,5 @@ threadsv per-thread value ck_null ds0 # Control (contd.) setstate set statement info ck_null s; method_named method with known name ck_null d$ + +custom unknown custom operator ck_null 0