diff options
author | Steve Hay <SteveHay@planit.com> | 2006-04-13 11:27:52 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-13 10:09:20 +0000 |
commit | 8ee4cf2435c265a68309f8b98520e063bbdc8e42 (patch) | |
tree | 4cccc083bc5bf66ad70fa6b597d427c4b54f36b4 | |
parent | 32fc9b6af894c845c5b239287596b88571b3fcdf (diff) | |
download | perl-8ee4cf2435c265a68309f8b98520e063bbdc8e42.tar.gz |
Re: [PATCH] add pTHX_ parameter to new_warnings_bitfield()
Message-ID: <443E1998.9090909@uk.radan.com>
Date: Thu, 13 Apr 2006 10:27:52 +0100
p4raw-id: //depot/perl@27784
-rw-r--r-- | embed.fnc | 2 | ||||
-rw-r--r-- | mg.c | 2 | ||||
-rw-r--r-- | perl.c | 2 | ||||
-rw-r--r-- | pp_ctl.c | 2 | ||||
-rw-r--r-- | proto.h | 4 | ||||
-rw-r--r-- | util.c | 2 |
6 files changed, 7 insertions, 7 deletions
@@ -1666,7 +1666,7 @@ Ap |GV* |gv_SVadd |NN GV* gv #endif Apo |bool |ckwarn |U32 w Apo |bool |ckwarn_d |U32 w -nopMa |STRLEN *|new_warnings_bitfield|NULLOK STRLEN *buffer \ +opMa |STRLEN *|new_warnings_bitfield|NULLOK STRLEN *buffer \ |NN const char *const bits|STRLEN size p |void |offer_nice_chunk |NN void *chunk|U32 chunk_size @@ -2286,7 +2286,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg) const char *const p = SvPV_const(sv, len); PL_compiling.cop_warnings - = Perl_new_warnings_bitfield(PL_compiling.cop_warnings, + = Perl_new_warnings_bitfield(aTHX_ PL_compiling.cop_warnings, p, len); if (isWARN_on(PL_compiling.cop_warnings, WARN_ONCE)) @@ -2038,7 +2038,7 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit) if (PL_taint_warn && PL_dowarn != G_WARN_ALL_OFF) { PL_compiling.cop_warnings - = Perl_new_warnings_bitfield(NULL, WARN_TAINTstring, WARNsize); + = Perl_new_warnings_bitfield(aTHX_ NULL, WARN_TAINTstring, WARNsize); } if (!scriptname) @@ -3370,7 +3370,7 @@ PP(pp_require) PL_compiling.cop_warnings = pWARN_NONE ; else if (PL_taint_warn) { PL_compiling.cop_warnings - = Perl_new_warnings_bitfield(NULL, WARN_TAINTstring, WARNsize); + = Perl_new_warnings_bitfield(aTHX_ NULL, WARN_TAINTstring, WARNsize); } else PL_compiling.cop_warnings = pWARN_STD ; @@ -4294,10 +4294,10 @@ PERL_CALLCONV GV* Perl_gv_SVadd(pTHX_ GV* gv) #endif PERL_CALLCONV bool Perl_ckwarn(pTHX_ U32 w); PERL_CALLCONV bool Perl_ckwarn_d(pTHX_ U32 w); -PERL_CALLCONV STRLEN * Perl_new_warnings_bitfield(STRLEN *buffer, const char *const bits, STRLEN size) +PERL_CALLCONV STRLEN * Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits, STRLEN size) __attribute__malloc__ __attribute__warn_unused_result__ - __attribute__nonnull__(2); + __attribute__nonnull__(pTHX_2); PERL_CALLCONV void Perl_offer_nice_chunk(pTHX_ void *chunk, U32 chunk_size) @@ -1533,7 +1533,7 @@ Perl_ckwarn_d(pTHX_ U32 w) /* Set buffer=NULL to get a new one. */ STRLEN * -Perl_new_warnings_bitfield(STRLEN *buffer, const char *const bits, +Perl_new_warnings_bitfield(pTHX_ STRLEN *buffer, const char *const bits, STRLEN size) { const MEM_SIZE len_wanted = sizeof(STRLEN) + size; |