diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-04-24 23:10:05 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-04-24 23:10:05 +0000 |
commit | 9444d2138b6b5264fb9381e43188986db5564e80 (patch) | |
tree | c56e68d0cadd5c59c7f243be82a7cef277d14b40 /perl.h | |
parent | bdc0bf6fc8e477f7c30b05ea4c2ff791dd0f31af (diff) | |
download | perl-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |