diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-04-14 09:18:01 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-04-14 09:18:01 +0000 |
commit | 3b4bd3fd9ce156dd5810f53e7d2c862917be2cb9 (patch) | |
tree | 0d6abbb3efc181bb5a827c4c6a1c28e9fd9af4ef /perlio.c | |
parent | 3c49ab0895e2c3f761f88c5acb6e1dc985476785 (diff) | |
download | perl-3b4bd3fd9ce156dd5810f53e7d2c862917be2cb9.tar.gz |
Disable test code (assertions) in CRLF layer.
p4raw-id: //depot/perlio@15904
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |