develooper Front page | perl.perl5.porters | Postings from March 2006

recent changes have some unmatching of parameters and types

Thread Next
From:
SADAHIRO Tomoyuki
Date:
March 31, 2006 17:16
Subject:
recent changes have some unmatching of parameters and types
Message ID:
20060401101641.D8D3.BQW10602@nifty.com

Hello. I found 3 instances following in perl-current@27656.

[patch 27643] parent, key, value: non const vs const
## embed.fnc(306)
dpoM	|struct refcounted_he *|refcounted_he_new \
				|NULLOK struct refcounted_he *parent \
				|NULLOK SV *key|NULLOK SV *value
## hv.c(2613)
struct refcounted_he *
Perl_refcounted_he_new(pTHX_ struct refcounted_he *const parent,
		       SV *const key, SV *const value) {

[Change 27580] send: const*const vs const* (one of embed.fnc seems wrong.)
## embed.fnc(1372)
s	|STRLEN	|sv_pos_u2b_midway|NN const U8 *const start \
		|NN const U8 *const send|STRLEN uoffset|STRLEN uend
## sv.c(5365)
static STRLEN
S_sv_pos_u2b_midway(pTHX_ const U8 *const start, const U8 *send,
		      STRLEN uoffset, STRLEN uend)


[Change 27643] PerlInterpreter* proto_perl vs CLONE_PARAMS* param
## proto.h(724)
PERL_CALLCONV struct refcounted_he *
    Perl_refcounted_he_dup(pTHX_ const struct refcounted_he *const he,
    CLONE_PARAMS* param)
			__attribute__nonnull__(pTHX_2);

## sv.c(10872)
    PL_compiling.cop_hints
	= Perl_refcounted_he_dup(aTHX_ PL_compiling.cop_hints, proto_perl);

Regards,
SADAHIRO Tomoyuki



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About