summaryrefslogtreecommitdiff
path: root/ext/B
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2015-10-25 19:57:11 -0400
committerTony Cook <tony@develop-help.com>2015-10-26 14:03:08 +1100
commit0b057af72368f97c1b6f0b4c58943ced6d6c98d2 (patch)
tree0f72c26500f2a06a7c51ad7490a01bef4391ebfe /ext/B
parent1d532a9b3f7c7516fc5a74a94731d12ed7d0928b (diff)
downloadperl-0b057af72368f97c1b6f0b4c58943ced6d6c98d2.tar.gz
XS staticing in ext and dist
None of these symbols are exported on Win32 (listed in Makefile.PL with EUMM's FUNCLIST), so they shouldn't be exported on Linux. Making them static saves space in the SOs by removing symbol name strings, and removing runtime plt/got indirection.
Diffstat (limited to 'ext/B')
-rw-r--r--ext/B/B.pm2
-rw-r--r--ext/B/B.xs2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/B/B.pm b/ext/B/B.pm
index 13ab3c96ae..e6844d465c 100644
--- a/ext/B/B.pm
+++ b/ext/B/B.pm
@@ -15,7 +15,7 @@ require Exporter;
# walkoptree comes from B.xs
BEGIN {
- $B::VERSION = '1.60';
+ $B::VERSION = '1.61';
@B::EXPORT_OK = ();
# Our BOOT code needs $VERSION set, and will append to @EXPORT_OK.
diff --git a/ext/B/B.xs b/ext/B/B.xs
index eb211038ae..b4b6a40ac5 100644
--- a/ext/B/B.xs
+++ b/ext/B/B.xs
@@ -666,7 +666,7 @@ static XSPROTO(intrpvar_sv_common)
/* table that drives most of the B::*OP methods */
-const struct OP_methods {
+static const struct OP_methods {
const char *name;
U8 namelen;
U8 type; /* if op_offset_special, access is handled on a case-by-case basis */