diff options
author | Steven Schubiger <schubiger@cpan.org> | 2008-03-02 23:09:51 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-03-11 10:06:19 +0000 |
commit | 23f13727cccc413356361bc2912b89c4e0603e5f (patch) | |
tree | 7b177465c2c970d6c08eb08e6550f3c15744bf65 /proto.h | |
parent | 1842fafe88147d90b1a41de07040f8fdc9d95179 (diff) | |
download | perl-23f13727cccc413356361bc2912b89c4e0603e5f.tar.gz |
Re: [PATCH] sv.c: consting
Message-ID: <20080302210951.GD10705@refcnt.homeunix.org>
p4raw-id: //depot/perl@33471
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -373,7 +373,7 @@ PERL_CALLCONV void Perl_warner_nocontext(U32 err, const char* pat, ...) #define PERL_ARGS_ASSERT_WARNER_NOCONTEXT \ assert(pat) -PERL_CALLCONV SV* Perl_newSVpvf_nocontext(const char* pat, ...) +PERL_CALLCONV SV* Perl_newSVpvf_nocontext(const char *const pat, ...) __attribute__format__(__printf__,1,2) __attribute__nonnull__(1); #define PERL_ARGS_ASSERT_NEWSVPVF_NOCONTEXT \ @@ -2142,14 +2142,14 @@ PERL_CALLCONV OP* Perl_newPVOP(pTHX_ I32 type, I32 flags, char* pv) __attribute__malloc__ __attribute__warn_unused_result__; -PERL_CALLCONV SV* Perl_newRV(pTHX_ SV* sv) +PERL_CALLCONV SV* Perl_newRV(pTHX_ SV *const sv) __attribute__malloc__ __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_NEWRV \ assert(sv) -PERL_CALLCONV SV* Perl_newRV_noinc(pTHX_ SV* sv) +PERL_CALLCONV SV* Perl_newRV_noinc(pTHX_ SV *const sv) __attribute__malloc__ __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); @@ -2174,31 +2174,31 @@ PERL_CALLCONV OP* Perl_newSVOP(pTHX_ I32 type, I32 flags, SV* sv) #define PERL_ARGS_ASSERT_NEWSVOP \ assert(sv) -PERL_CALLCONV SV* Perl_newSViv(pTHX_ IV i) +PERL_CALLCONV SV* Perl_newSViv(pTHX_ const IV i) __attribute__malloc__ __attribute__warn_unused_result__; -PERL_CALLCONV SV* Perl_newSVuv(pTHX_ UV u) +PERL_CALLCONV SV* Perl_newSVuv(pTHX_ const UV u) __attribute__malloc__ __attribute__warn_unused_result__; -PERL_CALLCONV SV* Perl_newSVnv(pTHX_ NV n) +PERL_CALLCONV SV* Perl_newSVnv(pTHX_ const NV n) __attribute__malloc__ __attribute__warn_unused_result__; -PERL_CALLCONV SV* Perl_newSVpv(pTHX_ const char* s, STRLEN len) +PERL_CALLCONV SV* Perl_newSVpv(pTHX_ const char *const s, const STRLEN len) __attribute__malloc__ __attribute__warn_unused_result__; -PERL_CALLCONV SV* Perl_newSVpvn(pTHX_ const char* s, STRLEN len) +PERL_CALLCONV SV* Perl_newSVpvn(pTHX_ const char *const s, const STRLEN len) __attribute__malloc__ __attribute__warn_unused_result__; -PERL_CALLCONV SV* Perl_newSVpvn_flags(pTHX_ const char* s, STRLEN len, U32 flags) +PERL_CALLCONV SV* Perl_newSVpvn_flags(pTHX_ const char *const s, const STRLEN len, const U32 flags) __attribute__malloc__ __attribute__warn_unused_result__; -PERL_CALLCONV SV* Perl_newSVhek(pTHX_ const HEK *hek) +PERL_CALLCONV SV* Perl_newSVhek(pTHX_ const HEK *const hek) __attribute__malloc__ __attribute__warn_unused_result__; @@ -2206,7 +2206,7 @@ PERL_CALLCONV SV* Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash) __attribute__malloc__ __attribute__warn_unused_result__; -PERL_CALLCONV SV* Perl_newSVpvf(pTHX_ const char* pat, ...) +PERL_CALLCONV SV* Perl_newSVpvf(pTHX_ const char *const pat, ...) __attribute__malloc__ __attribute__warn_unused_result__ __attribute__format__(__printf__,pTHX_1,pTHX_2) @@ -2214,7 +2214,7 @@ PERL_CALLCONV SV* Perl_newSVpvf(pTHX_ const char* pat, ...) #define PERL_ARGS_ASSERT_NEWSVPVF \ assert(pat) -PERL_CALLCONV SV* Perl_vnewSVpvf(pTHX_ const char* pat, va_list* args) +PERL_CALLCONV SV* Perl_vnewSVpvf(pTHX_ const char *const pat, va_list *const args) __attribute__malloc__ __attribute__warn_unused_result__ __attribute__nonnull__(pTHX_1); @@ -2226,7 +2226,7 @@ PERL_CALLCONV SV* Perl_newSVrv(pTHX_ SV* rv, const char* classname) #define PERL_ARGS_ASSERT_NEWSVRV \ assert(rv) -PERL_CALLCONV SV* Perl_newSVsv(pTHX_ SV* old) +PERL_CALLCONV SV* Perl_newSVsv(pTHX_ SV *const old) __attribute__malloc__ __attribute__warn_unused_result__; @@ -2974,13 +2974,13 @@ PERL_CALLCONV bool Perl_sv_2bool(pTHX_ SV *const sv) #define PERL_ARGS_ASSERT_SV_2BOOL \ assert(sv) -PERL_CALLCONV CV* Perl_sv_2cv(pTHX_ SV* sv, HV** st, GV** gvp, I32 lref) +PERL_CALLCONV CV* Perl_sv_2cv(pTHX_ SV* sv, HV **const st, GV **const gvp, const I32 lref) __attribute__nonnull__(pTHX_2) __attribute__nonnull__(pTHX_3); #define PERL_ARGS_ASSERT_SV_2CV \ assert(st); assert(gvp) -PERL_CALLCONV IO* Perl_sv_2io(pTHX_ SV* sv) +PERL_CALLCONV IO* Perl_sv_2io(pTHX_ SV *const sv) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_SV_2IO \ assert(sv) @@ -2999,7 +2999,7 @@ STATIC char* S_glob_2pv(pTHX_ GV* const gv, STRLEN * const len) #endif /* PERL_CALLCONV IV Perl_sv_2iv(pTHX_ SV *sv); */ PERL_CALLCONV IV Perl_sv_2iv_flags(pTHX_ SV *const sv, const I32 flags); -PERL_CALLCONV SV* Perl_sv_2mortal(pTHX_ SV* sv); +PERL_CALLCONV SV* Perl_sv_2mortal(pTHX_ SV *const sv); PERL_CALLCONV NV Perl_sv_2nv(pTHX_ SV *const sv); PERL_CALLCONV SV* Perl_sv_2num(pTHX_ SV *const sv) __attribute__nonnull__(pTHX_1); @@ -3058,7 +3058,7 @@ PERL_CALLCONV char* Perl_sv_pvbyten(pTHX_ SV *sv, STRLEN *lp) #define PERL_ARGS_ASSERT_SV_PVBYTEN \ assert(sv); assert(lp) -PERL_CALLCONV I32 Perl_sv_true(pTHX_ SV *sv); +PERL_CALLCONV I32 Perl_sv_true(pTHX_ SV *const sv); PERL_CALLCONV void Perl_sv_add_arena(pTHX_ char *const ptr, const U32 size, const U32 flags) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_SV_ADD_ARENA \ @@ -3265,7 +3265,7 @@ PERL_CALLCONV void Perl_sv_replace(pTHX_ SV *const sv, SV *const nsv) assert(sv); assert(nsv) PERL_CALLCONV void Perl_sv_report_used(pTHX); -PERL_CALLCONV void Perl_sv_reset(pTHX_ const char* s, HV* stash) +PERL_CALLCONV void Perl_sv_reset(pTHX_ const char* s, HV *const stash) __attribute__nonnull__(pTHX_1); #define PERL_ARGS_ASSERT_SV_RESET \ assert(s) |