This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update comment for PerlIOCrlf_pushed wrt 7826b36
authorLeon Timmermans <fawaka@gmail.com>
Fri, 25 Mar 2011 11:55:46 +0000 (12:55 +0100)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 25 Mar 2011 17:27:20 +0000 (10:27 -0700)
7826b36fbbf24cfa659558ee5af3de424faa2d5a changed the behavior of
PerlIOCrlf_pushed but its comment wasn't updated along with it.

perlio.c

index 42bdb84..f2f8729 100644 (file)
--- 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);