Michael G Schwern <[EMAIL PROTECTED]> writes:
>On Mon, Aug 04, 2003 at 11:19:42AM +0100, Steve Hay wrote:
>> Why isn't the typemap file distributed as part of ExtUtils-MakeMaker?
>
>typemap is very specific to the version of Perl, or so it is said.
Not really. There are some changes for PerlIO * v
== NULL )
> XSRETURN_UNDEF;
>+PerlIOBase((PerlIO*)RETVAL)->flags &= ~PERLIO_F_CANWRITE;
>
> OUTPUT:
> RETVAL
Import attempts to find out how FD that FILE * is using is open
but that really isn't sufficient.
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/
dio && PerlIOBase(f)->flags & PERLIO_F_CANWRITE) {
> return PerlSIO_fflush(stdio);
> }
> else {
>End of Patch.
>
>
>NI-S will probably find this patch very wrong :-)
Should be harmless. A :stdio layer without a FILE * "should never happen".
Your patch prevents it doing fflush(NULL) if it does.
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/
> >> mode=0xb828 "w") at util.c:2080
>
> doug> looks like something along the lines of:
> doug> open my $foo, '|-' or ...;
>
>This is indeed done by Mail::Mailer.
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/