develooper Front page | perl.perl5.porters | Postings from October 2013

Re: [perl #120314] t/re/fold_grind.t spews tons of "Attempt to freetemp prematurely" warnings on DEBUGGING but ultimately passes

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
October 28, 2013 01:51
Subject:
Re: [perl #120314] t/re/fold_grind.t spews tons of "Attempt to freetemp prematurely" warnings on DEBUGGING but ultimately passes
Message ID:
CA+vYcVxbuOF6QKFKroWorL6sdvAUCVy-ufXcsFGYTw_9SUCkxg@mail.gmail.com
On Thu, Oct 24, 2013 at 11:24 PM, Father Chrysostomos via RT
<perlbug-followup@perl.org> wrote:

> could someone comment on my patch that makes even C++ have a C-style bool under -DDEBUGGING? :-)

If I'm reading it right, it seems to me that when DEBUGGING is defined
you're redefining bool to char even if the compiler already defines it
(either via stdbool.h for a C compiler or as a native type for a C++
compiler).   Wouldn't that introduce a lot of bugs if you built an
extension that used external libraries that depended on bool being a
particular size that didn't happen to be the same size as a char?

Thread Previous | 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