@@ -513,9 +513,9 @@ whether it is valid to call C<HvAUX()>.
513513/* Flags for hv_iternext_flags. */
514514#define HV_ITERNEXT_WANTPLACEHOLDERS 0x01 /* Don't skip placeholders. */
515515
516- #define Perl_hv_iternext ( mTHX , hv ) Perl_hv_iternext_flags(aTHX_ hv, 0)
517- #define Perl_hv_magic ( mTHX , hv , gv , how ) Perl_sv_magic(aTHX_ MUTABLE_SV(hv), MUTABLE_SV(gv), how, NULL, 0)
518- #define Perl_hv_undef ( mTHX , hv ) Perl_hv_undef_flags(aTHX_ hv, 0)
516+ #define hv_iternext ( hv ) hv_iternext_flags( hv, 0)
517+ #define hv_magic ( hv , gv , how ) sv_magic( MUTABLE_SV(hv), MUTABLE_SV(gv), how, NULL, 0)
518+ #define hv_undef ( hv ) Perl_hv_undef_flags(aTHX_ hv, 0)
519519
520520#define Perl_sharepvn (pv , len , hash ) HEK_KEY(share_hek(pv, len, hash))
521521#define sharepvn (pv , len , hash ) Perl_sharepvn(pv, len, hash)
@@ -527,41 +527,41 @@ whether it is valid to call C<HvAUX()>.
527527 ->shared_he_he.he_valu.hent_refcount), \
528528 hek)
529529
530- #define Perl_hv_store_ent ( mTHX , hv , keysv , val , hash ) \
531- ((HE *) Perl_hv_common(aTHX_ (hv), (keysv), NULL, 0, 0, HV_FETCH_ISSTORE, \
530+ #define hv_store_ent ( hv , keysv , val , hash ) \
531+ ((HE *) hv_common( (hv), (keysv), NULL, 0, 0, HV_FETCH_ISSTORE, \
532532 (val), (hash)))
533533
534- #define Perl_hv_exists_ent ( mTHX , hv , keysv , hash ) \
535- cBOOL(Perl_hv_common(aTHX_ (hv), (keysv), NULL, 0, 0, HV_FETCH_ISEXISTS, 0, (hash)))
536- #define Perl_hv_fetch_ent ( mTHX , hv , keysv , lval , hash ) \
537- ((HE *) Perl_hv_common(aTHX_ (hv), (keysv), NULL, 0, 0, \
534+ #define hv_exists_ent ( hv , keysv , hash ) \
535+ cBOOL(hv_common( (hv), (keysv), NULL, 0, 0, HV_FETCH_ISEXISTS, 0, (hash)))
536+ #define hv_fetch_ent ( hv , keysv , lval , hash ) \
537+ ((HE *) hv_common( (hv), (keysv), NULL, 0, 0, \
538538 ((lval) ? HV_FETCH_LVALUE : 0), NULL, (hash)))
539- #define Perl_hv_delete_ent ( mTHX , hv , key , flags , hash ) \
540- (MUTABLE_SV(Perl_hv_common(aTHX_ (hv), (key), NULL, 0, 0, (flags) | HV_DELETE, \
539+ #define hv_delete_ent ( hv , key , flags , hash ) \
540+ (MUTABLE_SV(hv_common( (hv), (key), NULL, 0, 0, (flags) | HV_DELETE, \
541541 NULL, (hash))))
542542
543- #define Perl_hv_store_flags ( mTHX , hv , key , klen , val , hash , flags ) \
544- ((SV**) Perl_hv_common(aTHX_ (hv), NULL, (key), (klen), (flags), \
543+ #define hv_store_flags ( hv , key , klen , val , hash , flags ) \
544+ ((SV**) hv_common( (hv), NULL, (key), (klen), (flags), \
545545 (HV_FETCH_ISSTORE|HV_FETCH_JUST_SV), (val), \
546546 (hash)))
547547
548- #define Perl_hv_store ( mTHX , hv , key , klen , val , hash ) \
549- ((SV**) Perl_hv_common_key_len(aTHX_ (hv), (key), (klen), \
548+ #define hv_store ( hv , key , klen , val , hash ) \
549+ ((SV**) hv_common_key_len( (hv), (key), (klen), \
550550 (HV_FETCH_ISSTORE|HV_FETCH_JUST_SV), \
551551 (val), (hash)))
552552
553553
554554
555- #define Perl_hv_exists ( mTHX , hv , key , klen ) \
556- cBOOL(Perl_hv_common_key_len(aTHX_ (hv), (key), (klen), HV_FETCH_ISEXISTS, NULL, 0))
555+ #define hv_exists ( hv , key , klen ) \
556+ cBOOL(hv_common_key_len( (hv), (key), (klen), HV_FETCH_ISEXISTS, NULL, 0))
557557
558- #define Perl_hv_fetch ( mTHX , hv , key , klen , lval ) \
559- ((SV**) Perl_hv_common_key_len(aTHX_ (hv), (key), (klen), (lval) \
558+ #define hv_fetch ( hv , key , klen , lval ) \
559+ ((SV**) hv_common_key_len( (hv), (key), (klen), (lval) \
560560 ? (HV_FETCH_JUST_SV | HV_FETCH_LVALUE) \
561561 : HV_FETCH_JUST_SV, NULL, 0))
562562
563- #define Perl_hv_delete ( mTHX , hv , key , klen , flags ) \
564- (MUTABLE_SV(Perl_hv_common_key_len(aTHX_ (hv), (key), (klen), \
563+ #define hv_delete ( hv , key , klen , flags ) \
564+ (MUTABLE_SV(hv_common_key_len( (hv), (key), (klen), \
565565 (flags) | HV_DELETE, NULL, 0)))
566566
567567/* Provide 's' suffix subs for constant strings (and avoid needing to count
@@ -590,8 +590,8 @@ whether it is valid to call C<HvAUX()>.
590590#define hv_name_sets (hv , name , flags ) \
591591 hv_name_set((hv),ASSERT_IS_LITERAL(name),(sizeof(name)-1), flags)
592592
593- #define Perl_hv_stores ( mTHX , hv , key , val ) \
594- Perl_hv_store(aTHX, (hv), ASSERT_IS_LITERAL(key), (sizeof(key)-1), (val), 0)
593+ #define hv_stores ( hv , key , val ) \
594+ hv_store( (hv), ASSERT_IS_LITERAL(key), (sizeof(key)-1), (val), 0)
595595
596596#ifdef PERL_CORE
597597# define hv_storehek (hv , hek , val ) \
@@ -731,7 +731,7 @@ Creates a new HV. The reference count is set to 1.
731731=cut
732732*/
733733
734- #define Perl_newHV ( mTHX ) MUTABLE_HV(Perl_newSV_type(aTHX_ SVt_PVHV))
734+ #define newHV ( ) MUTABLE_HV(newSV_type( SVt_PVHV))
735735
736736#include "hv_func.h"
737737
0 commit comments