diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-05-17 17:18:18 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2002-05-17 17:18:18 +0000 |
commit | 44798d05173226aecbb6247375cc88a9dd809540 (patch) | |
tree | 2d010284ef25bf840b8a21d4354119f4701fb911 /perliol.h | |
parent | ec3f2d8be8ce8cf45558045599c51ca3f4d57e3e (diff) | |
download | perl-44798d05173226aecbb6247375cc88a9dd809540.tar.gz |
Fix the crlf.t buffer leak
- actually a generic PerlIOBuf_xxx derived leak-on-pop, but :crlf
flagged it because it is more often popped without stream
being closed.
- Define non-noop PerlIOBuf_popped(), use it and export it.
p4raw-id: //depot/perlio@16657
Diffstat (limited to 'perliol.h')
-rw-r--r-- | perliol.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -167,6 +167,7 @@ extern PerlIO *PerlIOBuf_open(pTHX_ PerlIO_funcs *self, const char *mode, int fd, int imode, int perm, PerlIO *old, int narg, SV **args); extern IV PerlIOBuf_pushed(pTHX_ PerlIO *f, const char *mode, SV *arg); +extern IV PerlIOBuf_popped(pTHX_ PerlIO *f); extern PerlIO *PerlIOBuf_dup(pTHX_ PerlIO *f, PerlIO *o, CLONE_PARAMS *param, int flags); extern SSize_t PerlIOBuf_read(pTHX_ PerlIO *f, void *vbuf, Size_t count); extern SSize_t PerlIOBuf_unread(pTHX_ PerlIO *f, const void *vbuf, Size_t count); |