diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-24 14:31:49 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-24 14:31:49 +0000 |
commit | 8c0134a884f927d58f584b87281e5a27133cbf8f (patch) | |
tree | c8ab595e27dc62b04dc3888d299f0cab124d2f04 /perlio.c | |
parent | 5dd1177c222be3aa5f44de160a952953bc5703a5 (diff) | |
download | perl-8c0134a884f927d58f584b87281e5a27133cbf8f.tar.gz |
PerlIO fixups for Win32:
- provide win33_popenlist() - non-functional as yet.
- avoid need for aTHX in PerlIO_debug calls - even if not
enabled args are still evaluated so Win32 has trouble during fork().
- Add PerlIO/Scalar to list of extensions in win32/makefile.mk
- Fixup makedef.pl for latest set of symbols.
p4raw-id: //depot/perlio@9321
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -684,8 +684,8 @@ PerlIO_push(pTHX_ PerlIO *f,PerlIO_funcs *tab,const char *mode,SV *arg) l->next = *f; l->tab = tab; *f = l; - PerlIO_debug("PerlIO_push f=%p %s %s '%s'\n",f,tab->name, - (mode) ? mode : "(Null)",(arg) ? SvPV_nolen(arg) : "(Null)"); + PerlIO_debug("PerlIO_push f=%p %s %s %p\n",f,tab->name, + (mode) ? mode : "(Null)",arg); if ((*l->tab->Pushed)(f,mode,arg) != 0) { PerlIO_pop(aTHX_ f); @@ -754,7 +754,7 @@ PerlIO_apply_layera(pTHX_ PerlIO *f, const char *mode, AV *layers, IV n) { if (!PerlIO_push(aTHX_ f,tab,mode,PerlIOArg)) { - code -1; + code = -1; break; } } @@ -2306,6 +2306,7 @@ PerlIOBuf_pushed(PerlIO *f, const char *mode, SV *arg) PerlIOBuf *b = PerlIOSelf(f,PerlIOBuf); int fd = PerlIO_fileno(f); Off_t posn; + dTHX; if (fd >= 0 && PerlLIO_isatty(fd)) { PerlIOBase(f)->flags |= PERLIO_F_LINEBUF; |