Skip to content

Commit 1875938

Browse files
committed
Marcus Holland-Moritz notes that the first argument to
refcounted_he_fetch() can be NULL. p4raw-id: //depot/perl@29884
1 parent 0945d66 commit 1875938

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

embed.fnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ ApdR |SV* |hv_iterval |NN HV* tb|NN HE* entry
312312
Ap |void |hv_ksplit |NN HV* hv|IV newmax
313313
Apdbm |void |hv_magic |NN HV* hv|NULLOK GV* gv|int how
314314
XEdpoM |HV * |refcounted_he_chain_2hv|NULLOK const struct refcounted_he *c
315-
XEpoM |SV * |refcounted_he_fetch|NN const struct refcounted_he *chain \
315+
XEpoM |SV * |refcounted_he_fetch|NULLOK const struct refcounted_he *chain \
316316
|NULLOK SV *keysv|NULLOK const char *key \
317317
|STRLEN klen, int flags, U32 hash
318318
dpoM |void |refcounted_he_free|NULLOK struct refcounted_he *he

proto.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -737,9 +737,7 @@ PERL_CALLCONV void Perl_hv_ksplit(pTHX_ HV* hv, IV newmax)
737737
__attribute__nonnull__(pTHX_1); */
738738

739739
PERL_CALLCONV HV * Perl_refcounted_he_chain_2hv(pTHX_ const struct refcounted_he *c);
740-
PERL_CALLCONV SV * Perl_refcounted_he_fetch(pTHX_ const struct refcounted_he *chain, SV *keysv, const char *key, STRLEN klen, int flags, U32 hash)
741-
__attribute__nonnull__(pTHX_1);
742-
740+
PERL_CALLCONV SV * Perl_refcounted_he_fetch(pTHX_ const struct refcounted_he *chain, SV *keysv, const char *key, STRLEN klen, int flags, U32 hash);
743741
PERL_CALLCONV void Perl_refcounted_he_free(pTHX_ struct refcounted_he *he);
744742
PERL_CALLCONV struct refcounted_he * Perl_refcounted_he_new(pTHX_ struct refcounted_he *const parent, SV *const key, SV *const value);
745743
PERL_CALLCONV SV** Perl_hv_store(pTHX_ HV* tb, const char* key, I32 klen, SV* val, U32 hash);

0 commit comments

Comments
 (0)