diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-10-28 18:29:36 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-10-28 18:29:36 +0000 |
commit | 0c289d1353d1d6a489307ffba4ca3a6f96e97809 (patch) | |
tree | 6ba2f17b39fe54ccaea4864b8022aa1433ec99e3 | |
parent | f47f16450cc0b7d92fc1f3d3d728aa1b96868710 (diff) | |
download | perl-0c289d1353d1d6a489307ffba4ca3a6f96e97809.tar.gz |
Perl_hv_placeholders_get() actually takes a const HV *hv.
p4raw-id: //depot/perl@34618
-rw-r--r-- | embed.fnc | 2 | ||||
-rw-r--r-- | hv.c | 4 | ||||
-rw-r--r-- | proto.h | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -1797,7 +1797,7 @@ poM |void |hv_kill_backrefs |NN HV *hv #endif Apd |void |hv_clear_placeholders |NN HV *hv ApoR |I32* |hv_placeholders_p |NN HV *hv -ApoR |I32 |hv_placeholders_get |NN HV *hv +ApoR |I32 |hv_placeholders_get |NN const HV *hv Apo |void |hv_placeholders_set |NN HV *hv|I32 ph p |SV* |magic_scalarpack|NN HV *hv|NN MAGIC *mg @@ -2506,10 +2506,10 @@ Perl_hv_placeholders_p(pTHX_ HV *hv) I32 -Perl_hv_placeholders_get(pTHX_ HV *hv) +Perl_hv_placeholders_get(pTHX_ const HV *hv) { dVAR; - MAGIC * const mg = mg_find((SV*)hv, PERL_MAGIC_rhash); + MAGIC * const mg = mg_find((const SV *)hv, PERL_MAGIC_rhash); PERL_ARGS_ASSERT_HV_PLACEHOLDERS_GET; @@ -6189,7 +6189,7 @@ PERL_CALLCONV I32* Perl_hv_placeholders_p(pTHX_ HV *hv) #define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_P \ assert(hv) -PERL_CALLCONV I32 Perl_hv_placeholders_get(pTHX_ HV *hv) +PERL_CALLCONV I32 Perl_hv_placeholders_get(pTHX_ const HV *hv) __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_HV_PLACEHOLDERS_GET \ |