summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Timmermans <fawaka@gmail.com>2011-03-25 12:55:46 +0100
committerFather Chrysostomos <sprout@cpan.org>2011-03-25 10:27:20 -0700
commit5da08ab0c45e6850ad1ad3d66f3796f19bf0eaae (patch)
tree9e446a06fd837b362948e7d5b2bb155865114d49
parent2703c26dfadb73c5713e0c28ad8579537dfa4674 (diff)
downloadperl-5da08ab0c45e6850ad1ad3d66f3796f19bf0eaae.tar.gz
Update comment for PerlIOCrlf_pushed wrt 7826b36
7826b36fbbf24cfa659558ee5af3de424faa2d5a changed the behavior of PerlIOCrlf_pushed but its comment wasn't updated along with it.
-rw-r--r--perlio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/perlio.c b/perlio.c
index 42bdb849b4..f2f8729567 100644
--- a/perlio.c
+++ b/perlio.c
@@ -4544,10 +4544,8 @@ PerlIOCrlf_pushed(pTHX_ PerlIO *f, const char *mode, SV *arg, PerlIO_funcs *tab)
PerlIOBase(f)->flags);
#endif
{
- /* Enable the first CRLF capable layer you can find, but if none
- * found, the one we just pushed is fine. This results in at
- * any given moment at most one CRLF-capable layer being enabled
- * in the whole layer stack. */
+ /* If the old top layer is a CRLF layer, reactivate it (if
+ * necessary) and remove this new layer from the stack */
PerlIO *g = PerlIONext(f);
if (PerlIOValid(g)) {
PerlIOl *b = PerlIOBase(g);