summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2006-04-13 11:27:52 +0100
committerNicholas Clark <nick@ccl4.org>2006-04-13 10:09:20 +0000
commit8ee4cf2435c265a68309f8b98520e063bbdc8e42 (patch)
tree4cccc083bc5bf66ad70fa6b597d427c4b54f36b4
parent32fc9b6af894c845c5b239287596b88571b3fcdf (diff)
downloadperl-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.fnc2
-rw-r--r--mg.c2
-rw-r--r--perl.c2
-rw-r--r--pp_ctl.c2
-rw-r--r--proto.h4
-rw-r--r--util.c2
6 files changed, 7 insertions, 7 deletions
diff --git a/embed.fnc b/embed.fnc
index 9133ed5bf1..689ac51545 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -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
diff --git a/mg.c b/mg.c
index 19219026f5..d7105b51ce 100644
--- a/mg.c
+++ b/mg.c
@@ -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))
diff --git a/perl.c b/perl.c
index 83baacea04..a8fd47fab5 100644
--- a/perl.c
+++ b/perl.c
@@ -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)
diff --git a/pp_ctl.c b/pp_ctl.c
index 19c2ac5fa7..5288c66d80 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -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 ;
diff --git a/proto.h b/proto.h
index 71534818a0..2f5e23e7aa 100644
--- a/proto.h
+++ b/proto.h
@@ -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)
diff --git a/util.c b/util.c
index abd0db9c80..32aac26ffd 100644
--- a/util.c
+++ b/util.c
@@ -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;