This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84fea18
)
Merge the implementation of B::COP::{file,stashpv} using ALIAS.
author
Nicholas Clark
<nick@ccl4.org>
Sun, 7 Nov 2010 22:00:20 +0000
(22:00 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Mon, 8 Nov 2010 07:55:10 +0000
(07:55 +0000)
On this platform, this reduces the object size by about .5K, for an unthreaded
build.
ext/B/B.xs
patch
|
blob
|
blame
|
history
diff --git
a/ext/B/B.xs
b/ext/B/B.xs
index
9dd6d06
..
6f9f9c8
100644
(file)
--- a/
ext/B/B.xs
+++ b/
ext/B/B.xs
@@
-1254,16
+1254,16
@@
COP_filegv(o)
B::COP o
#else
-#define COP_stashpv(o) CopSTASHPV(o)
-#define COP_file(o) CopFILE(o)
char *
COP_stashpv(o)
B::COP o
-
-char *
-COP_file(o)
- B::COP o
+ ALIAS:
+ file = 1
+ CODE:
+ RETVAL = ix ? CopFILE(o) : CopSTASHPV(o);
+ OUTPUT:
+ RETVAL
#endif