summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-10-05 20:31:23 +0000
committerNicholas Clark <nick@ccl4.org>2007-10-05 20:31:23 +0000
commit618b9757aa96db62da872255c9caeb6443086539 (patch)
tree4ffcbd40e46f844bae72d6530a1542a69da03059 /perl.h
parent5e7aa789c35577c2a092ac2f2d75bcee74e9b7f1 (diff)
downloadperl-618b9757aa96db62da872255c9caeb6443086539.tar.gz
PL_cshname is actually a constant value known at compile time.
PL_cshlen can be calculated by the compiler. So eliminate both as interpreter variables, and the code that calculates PL_cshlen at runtime. p4raw-id: //depot/perl@32035
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 3371a7f6f9..31a0c58e18 100644
--- a/perl.h
+++ b/perl.h
@@ -4113,6 +4113,12 @@ EXTCONST char PL_no_localize_ref[]
EXTCONST char PL_memory_wrap[]
INIT("panic: memory wrap");
+#ifdef CSH
+EXTCONST char PL_cshname[]
+ INIT(CSH);
+# define PL_cshlen (sizeof(CSH "") - 1)
+#endif
+
EXTCONST char PL_uuemap[65]
INIT("`!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_");