diff options
author | Andy Lester <andy@petdance.com> | 2005-03-13 08:20:05 -0600 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-03-14 14:35:33 +0000 |
commit | 35a4481cfdbca4941ab3a4206dc266f3e71c2385 (patch) | |
tree | c23e069f4598fa792835ff005405575a8e7605a5 /hv.c | |
parent | 38366c114d966e1bfc88beb6923273d54aa6e78d (diff) | |
download | perl-35a4481cfdbca4941ab3a4206dc266f3e71c2385.tar.gz |
Adding const qualifiers
Message-ID: <20050313202005.GA23535@petdance.com>
p4raw-id: //depot/perl@24037
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -90,7 +90,7 @@ S_more_he(pTHX) STATIC HEK * S_save_hek_flags(pTHX_ const char *str, I32 len, U32 hash, int flags) { - int flags_masked = flags & HVhek_MASK; + const int flags_masked = flags & HVhek_MASK; char *k; register HEK *hek; @@ -1999,7 +1999,7 @@ S_unshare_hek_or_pvn(pTHX_ HEK *hek, const char *str, I32 len, U32 hash) break; } } else { - int flags_masked = k_flags & HVhek_MASK; + const int flags_masked = k_flags & HVhek_MASK; for (entry = *oentry; entry; i=0, oentry = &HeNEXT(entry), entry = *oentry) { if (HeHASH(entry) != hash) /* strings can't be equal */ continue; @@ -2075,7 +2075,7 @@ S_share_hek_flags(pTHX_ const char *str, I32 len, register U32 hash, int flags) register HE **oentry; register I32 i = 1; I32 found = 0; - int flags_masked = flags & HVhek_MASK; + const int flags_masked = flags & HVhek_MASK; /* what follows is the moral equivalent of: |