At 5:17 PM +0100 7/11/02, Nick Ing-Simmons wrote:
>Craig A. Berry <[EMAIL PROTECTED]> writes:
>>+ pio_fp = PerlIO_importFILE(fp,&("r\000w\000r+"[2*i]));
>
>That is devious, and next line would imply there is a 4th case.
Yes, it is devious, but on the other hand it's exactly what's in the
preceding fdopen call and has apparently been working for eight years
or so. I'll try to look into it, but a complete, robust mapping of
open() type flags values onto fdopen() type mode values is not
something I'm going to get done before RC3.
>
>> fh = newFH(pio_fp,"<>++"[i]);
>> ST(0) = (fh ? sv_2mortal(fh) : &PL_sv_undef);
> > }
> >[end of patch]
--
________________________________________
Craig A. Berry
mailto:[EMAIL PROTECTED]
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser