summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-04-24 23:10:05 +0000
committerNicholas Clark <nick@ccl4.org>2007-04-24 23:10:05 +0000
commit9444d2138b6b5264fb9381e43188986db5564e80 (patch)
treec56e68d0cadd5c59c7f243be82a7cef277d14b40 /perl.h
parentbdc0bf6fc8e477f7c30b05ea4c2ff791dd0f31af (diff)
downloadperl-9444d2138b6b5264fb9381e43188986db5564e80.tar.gz
Make PL_uudmap a constant global. Remove the run time initialisation
code, and instead use it to generate a header at perl build time. By removing uudmap from the interpreter structure we save 256 bytes per child thread. p4raw-id: //depot/perl@31059
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index b22a3f7944..51155f07ac 100644
--- a/perl.h
+++ b/perl.h
@@ -4058,11 +4058,14 @@ EXTCONST char PL_memory_wrap[]
EXTCONST char PL_uuemap[65]
INIT("`!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_");
-
#ifdef DOINIT
+EXTCONST char PL_uudmap[256] =
+#include "uudmap.h"
+;
EXTCONST char* const PL_sig_name[] = { SIG_NAME };
EXTCONST int PL_sig_num[] = { SIG_NUM };
#else
+EXTCONST char PL_uudmap[256];
EXTCONST char* const PL_sig_name[];
EXTCONST int PL_sig_num[];
#endif