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:
008fb0c
)
Stas would prefer not to have MOD_PERL defines in perl.
author
Nicholas Clark
<nick@ccl4.org>
Mon, 3 Nov 2003 07:04:36 +0000
(07:04 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Mon, 3 Nov 2003 07:04:36 +0000
(07:04 +0000)
p4raw-id: //depot/perl@21639
hv.c
patch
|
blob
|
blame
|
history
hv.h
patch
|
blob
|
blame
|
history
diff --git
a/hv.c
b/hv.c
index
09476f0
..
53bfa1f
100644
(file)
--- a/
hv.c
+++ b/
hv.c
@@
-18,6
+18,7
@@
#include "EXTERN.h"
#define PERL_IN_HV_C
+#define PERL_HASH_INTERNAL_ACCESS
#include "perl.h"
#define HV_MAX_LENGTH_BEFORE_SPLIT 14
diff --git
a/hv.h
b/hv.h
index
0fcda5e
..
81044c9
100644
(file)
--- a/
hv.h
+++ b/
hv.h
@@
-89,7
+89,8
@@
struct xpvhv {
(hash) = (hash_PeRlHaSh + (hash_PeRlHaSh << 15)); \
} STMT_END
-#if defined (PERL_IN_HV_C) || defined (MOD_PERL)
+/* Only hv.c and mod_perl should be doing this. */
+#ifdef PERL_HASH_INTERNAL_ACCESS
#define PERL_HASH_INTERNAL(hash,str,len) \
STMT_START { \
register const char *s_PeRlHaSh_tmp = str; \