develooper Front page | perl.perl5.porters | Postings from February 2001

[PATCH] perlio - unknown layer

Thread Next
From:
Nicholas Clark
Date:
February 25, 2001 16:27
Subject:
[PATCH] perlio - unknown layer
Message ID:
20010226002719.E23333@plum.flirble.org
I fell unknown layers really ought to case PerlIO_apply_layers to
return an error code, rather than 0.

--- perlio.c.orig	Sun Feb 18 19:23:12 2001
+++ perlio.c	Sun Feb 25 23:49:27 2001
@@ -684,8 +684,10 @@
               return -1;
             }
           }
-         else
+         else {
           Perl_warn(aTHX_ "perlio: unknown layer \"%.*s\"",(int)llen,s);
+	  return -1;
+	 }
         }
        s = e;
       }


Nicholas Clark

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