summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-04-14 09:18:01 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-04-14 09:18:01 +0000
commit3b4bd3fd9ce156dd5810f53e7d2c862917be2cb9 (patch)
tree0d6abbb3efc181bb5a827c4c6a1c28e9fd9af4ef /perlio.c
parent3c49ab0895e2c3f761f88c5acb6e1dc985476785 (diff)
downloadperl-3b4bd3fd9ce156dd5810f53e7d2c862917be2cb9.tar.gz
Disable test code (assertions) in CRLF layer.
p4raw-id: //depot/perlio@15904
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlio.c b/perlio.c
index 0f34462c36..7661fc42fb 100644
--- a/perlio.c
+++ b/perlio.c
@@ -3563,7 +3563,6 @@ PerlIOCrlf_set_ptrcnt(pTHX_ PerlIO *f, STDCHAR * ptr, SSize_t cnt)
{
PerlIOBuf *b = PerlIOSelf(f, PerlIOBuf);
PerlIOCrlf *c = PerlIOSelf(f, PerlIOCrlf);
- IV flags = PerlIOBase(f)->flags;
if (!b->buf)
PerlIO_get_base(f);
if (!ptr) {
@@ -3580,10 +3579,11 @@ PerlIOCrlf_set_ptrcnt(pTHX_ PerlIO *f, STDCHAR * ptr, SSize_t cnt)
ptr -= cnt;
}
else {
-#if 1
+#if 0
/*
* Test code - delete when it works ...
*/
+ IV flags = PerlIOBase(f)->flags;
STDCHAR *chk = (c->nl) ? (c->nl+1) : b->end;
if (ptr+cnt == c->nl && c->nl+1 == b->end && *c->nl == 0xd) {
/* Defered CR at end of buffer case - we lied about count */