summaryrefslogtreecommitdiff
path: root/reentr.pl
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-12-25 23:46:46 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-12-25 23:48:01 +0100
commitd4222de00860407a7c86f19fdb5531ac98b1b7ad (patch)
tree682c5a3a121dd672fafc173cb5b97aacad443515 /reentr.pl
parent9ae51f7f1f1e30c2bc17d7aef160a83973b69ad0 (diff)
downloadperl-d4222de00860407a7c86f19fdb5531ac98b1b7ad.tar.gz
Lies, damn lies and end-of-block comments
From: Michael G Schwern <schwern@pobox.com> Date: Fri, 26 Sep 2008 00:06:31 -0400 Message-ID: <48DC5FC7.3000807@pobox.com> I was reading reentr.h and noticed a lot of the endif's for the HAS_XXX_R macros were wrongly indented and their comments had the wrong condition. The attached patch fixes the indentation and removes all but the last comment which is shortest and furthest from its start. No point in an end-of-block comment on a one statement block, just falls out of date and obscures the structure. (plus "make regen")
Diffstat (limited to 'reentr.pl')
-rw-r--r--reentr.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/reentr.pl b/reentr.pl
index ea327a09fe..8cc4a5ec6c 100644
--- a/reentr.pl
+++ b/reentr.pl
@@ -751,13 +751,13 @@ EOF
EOF
}
}
- push @wrap, <<EOF;
-# endif /* if defined(PERL_REENTR_API) && (PERL_REENTR_API+0 == 1) */
+ push @wrap, <<EOF; # !defined(xxx) && XXX_R_PROTO == REENTRANT_PROTO_Y_TS
+# endif
EOF
}
- push @wrap, <<EOF;
-# endif /* HAS_\U$func */
+ push @wrap, <<EOF; # defined(PERL_REENTR_API) && (PERL_REENTR_API+0 == 1)
+# endif
EOF
push @wrap, $endif, "\n";