summaryrefslogtreecommitdiff
path: root/regen/opcode.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-01-08 11:11:52 +0000
committerNicholas Clark <nick@ccl4.org>2011-01-09 12:11:24 +0000
commit6f3ed33686edc657dce73f7b5a70e096a40970aa (patch)
tree069db7caf153f1a53bae039a6783394002cffbc5 /regen/opcode.pl
parentdbe23faf03015412d408a0b54662009b941989a6 (diff)
downloadperl-6f3ed33686edc657dce73f7b5a70e096a40970aa.tar.gz
In opcode.h, use the alias macros in PL_ppaddr[]
For OPs that share implementations, use #define aliases for the "original" names in PL_ppaddr[], instead of having regen/opcode.pl replace them with the name of the implementing OP body. Whilst this initially adds another layer of indirection, it will give more flexibility where conditional compilation of OPs is determined by the feature macros in config.h
Diffstat (limited to 'regen/opcode.pl')
-rwxr-xr-xregen/opcode.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/regen/opcode.pl b/regen/opcode.pl
index 783db68f57..ece3dbeff5 100755
--- a/regen/opcode.pl
+++ b/regen/opcode.pl
@@ -247,7 +247,7 @@ END
for (@ops) {
if (my $name = $alias{$_}) {
- print "\t$name,\t/* Perl_pp_$_ */\n";
+ print "\tPerl_pp_$_,\t/* implemented by $name */\n";
}
else {
print "\tPerl_pp_$_,\n";