X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=opcode.pl;h=5a3beed671086a0e4cf7493f50e54190fbd1cdca;hb=23f3589e21445e9141901c2894bc97b457493332;hp=4035cc6002a0a5ad53d2a0105903ab89ee99214c;hpb=9ad884cb5e6c71bf010defc627075ba1610c8eba;p=p5sagit%2Fp5-mst-13.2.git diff --git a/opcode.pl b/opcode.pl index 4035cc6..5a3beed 100755 --- a/opcode.pl +++ b/opcode.pl @@ -38,7 +38,8 @@ print <<"END"; /* * opcode.h * - * Copyright (c) 1997-2003, Larry Wall + * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, + * 2000, 2001, 2002, 2003, by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -59,7 +60,7 @@ print ON <<"END"; /* * opnames.h * - * Copyright (c) 1997-2003, Larry Wall + * Copyright (C) 1999, 2000, 2001, 2002, 2003, by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -89,10 +90,10 @@ 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]) +#define OP_NAME(o) ((o)->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]) #ifndef DOINIT EXT char *PL_op_name[]; @@ -336,6 +337,12 @@ foreach ('pp_proto.h', 'pp.sym') { safer_rename $pp_proto_new, 'pp_proto.h'; safer_rename $pp_sym_new, 'pp.sym'; +END { + foreach ('opcode.h', 'opnames.h', 'pp_proto.h', 'pp.sym') { + 1 while unlink "$_-old"; + } +} + ########################################################################### sub tab { local($l, $t) = @_;