summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-21 00:25:00 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-21 00:25:00 +0000
commit2ba999ece4e8727143f109b401921cec33e5b6dc (patch)
tree3b90703fd22dbbbcaaf2d62c7a808ccc2245a4e7 /malloc.c
parent1d860e8540fc3e1d7f817d85d4429f8631e61cdf (diff)
downloadperl-2ba999ece4e8727143f109b401921cec33e5b6dc.tar.gz
misplaced braces
p4raw-id: //depot/perl@5175
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c28
1 files changed, 17 insertions, 11 deletions
diff --git a/malloc.c b/malloc.c
index d2041e5fa5..9c6a6d83e1 100644
--- a/malloc.c
+++ b/malloc.c
@@ -1520,25 +1520,28 @@ Perl_mfree(void *mp)
if (!bad_free_warn)
return;
#ifdef RCHECK
+#ifdef PERL_CORE
{
dTHX;
-#ifdef PERL_CORE
if (!PERL_IS_ALIVE || !PL_curcop || ckWARN_d(WARN_MALLOC))
Perl_warner(aTHX_ WARN_MALLOC, "%s free() ignored",
ovp->ov_rmagic == RMAGIC - 1 ?
"Duplicate" : "Bad");
+ }
#else
- warn("%s free() ignored",
- ovp->ov_rmagic == RMAGIC - 1 ? "Duplicate" : "Bad");
+ warn("%s free() ignored",
+ ovp->ov_rmagic == RMAGIC - 1 ? "Duplicate" : "Bad");
#endif
#else
#ifdef PERL_CORE
+ {
+ dTHX;
if (!PERL_IS_ALIVE || !PL_curcop || ckWARN_d(WARN_MALLOC))
Perl_warner(aTHX_ WARN_MALLOC, "%s", "Bad free() ignored");
+ }
#else
- warn("%s", "Bad free() ignored");
+ warn("%s", "Bad free() ignored");
#endif
- }
#endif
return; /* sanity */
}
@@ -1617,28 +1620,31 @@ Perl_realloc(void *mp, size_t nbytes)
if (!bad_free_warn)
return Nullch;
#ifdef RCHECK
+#ifdef PERL_CORE
{
dTHX;
-#ifdef PERL_CORE
if (!PERL_IS_ALIVE || !PL_curcop || ckWARN_d(WARN_MALLOC))
Perl_warner(aTHX_ WARN_MALLOC, "%srealloc() %signored",
(ovp->ov_rmagic == RMAGIC - 1 ? "" : "Bad "),
ovp->ov_rmagic == RMAGIC - 1
? "of freed memory " : "");
+ }
#else
- warn("%srealloc() %signored",
- (ovp->ov_rmagic == RMAGIC - 1 ? "" : "Bad "),
- ovp->ov_rmagic == RMAGIC - 1 ? "of freed memory " : "");
+ warn("%srealloc() %signored",
+ (ovp->ov_rmagic == RMAGIC - 1 ? "" : "Bad "),
+ ovp->ov_rmagic == RMAGIC - 1 ? "of freed memory " : "");
#endif
#else
#ifdef PERL_CORE
+ {
+ dTHX;
if (!PERL_IS_ALIVE || !PL_curcop || ckWARN_d(WARN_MALLOC))
Perl_warner(aTHX_ WARN_MALLOC, "%s",
"Bad realloc() ignored");
+ }
#else
- warn("%s", "Bad realloc() ignored");
+ warn("%s", "Bad realloc() ignored");
#endif
- }
#endif
return Nullch; /* sanity */
}