diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-01-08 20:54:31 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-01-08 20:54:31 +0000 |
commit | 2fd1c6b8c969281de42d3830c930f0cea98c16de (patch) | |
tree | c37eb99e3569434559e3c29830144d73250c5c0c /hv.c | |
parent | 338196225c6d8ddee7f9a4fda43997b5052acf9d (diff) | |
download | perl-2fd1c6b8c969281de42d3830c930f0cea98c16de.tar.gz |
[win32] change#398 breaks ENV_IS_CASELESS, fix it
p4raw-link: @398 on //depot/perl: 0a0bb7c7269ef911ca3981a2b5365150a9ad4cfe
p4raw-id: //depot/win32/perl@412
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -442,13 +442,13 @@ hv_delete(HV *hv, char *key, U32 klen, I32 flags) } return Nullsv; /* element cannot be deleted */ } - } #ifdef ENV_IS_CASELESS - else if (mg_find((SV*)hv,'E')) { - sv = sv_2mortal(newSVpv(key,klen)); - key = strupr(SvPVX(sv)); - } + else if (mg_find((SV*)hv,'E')) { + sv = sv_2mortal(newSVpv(key,klen)); + key = strupr(SvPVX(sv)); + } #endif + } } xhv = (XPVHV*)SvANY(hv); if (!xhv->xhv_array) @@ -512,15 +512,15 @@ hv_delete_ent(HV *hv, SV *keysv, I32 flags, U32 hash) } return Nullsv; /* element cannot be deleted */ } - } #ifdef ENV_IS_CASELESS - else if (mg_find((SV*)hv,'E')) { - key = SvPV(keysv, klen); - keysv = sv_2mortal(newSVpv(key,klen)); - (void)strupr(SvPVX(keysv)); - hash = 0; - } + else if (mg_find((SV*)hv,'E')) { + key = SvPV(keysv, klen); + keysv = sv_2mortal(newSVpv(key,klen)); + (void)strupr(SvPVX(keysv)); + hash = 0; + } #endif + } } xhv = (XPVHV*)SvANY(hv); if (!xhv->xhv_array) |