
h.m.brand at xs4all
May 22, 2008, 6:57 AM
Post #2 of 4
(131 views)
Permalink
|
|
Re: [PATCH] Indented preproc directives in sv.c
[In reply to]
|
|
On Thu, 22 May 2008 09:46:13 -0400, "Jerry D. Hedden" <jdhedden[at]cpan.org> wrote: > I noticed in Perl_sv_free that a couple of preprocessor directives are > not flush with the left margin: > > #ifdef DEBUG_LEAKING_SCALARS_FORK_DUMP > Perl_dump_sv_child(aTHX_ sv); > #else > #ifdef DEBUG_LEAKING_SCALARS > sv_dump(sv); > #endif > #ifdef DEBUG_LEAKING_SCALARS_ABORT > > This looks to be a bug. Is it? If so, the attached patch should fix it. ANSI allows this. Some old AIX preprocessors might choke on it, but that is the only cpp I've ever seen causing trouble -- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using & porting perl 5.6.2, 5.8.x, 5.10.x on HP-UX 10.20, 11.00, 11.11, & 11.23, SuSE 10.1 & 10.2, AIX 5.2, and Cygwin. http://qa.perl.org http://mirrors.develooper.com/hpux/ http://www.test-smoke.org http://www.goldmark.org/jeff/stupid-disclaimers/
|