Granted I haven't gotten my hands dirty with the guts of parrot yet, but it
looks good to me, and makes sense.

Thanks for the fix though, it works great now :)

However, it did introduce a warning (on Win32):

io.ops(59) : warning C4022: 'PIO_fdopen' : pointer mismatch for actual
parameter
2

-----Original Message-----
From: Juergen Boemmels [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 17, 2003 1:48 PM
To: Perl6 Internals
Subject: [CVS ci] Change of fdopen sematics (Part 1)

Hello,

Nobody yet commented to my proposed change of fdopen semantics
http://groups.google.de/groups?selm=m2ptifuukf.fsf%40helium.physik.uni-kl.de
so I checked in the part.

This change mainly changes the semantics of getfd
The returned value is no longer the index in the
interpreter->piodata->table but the real OS handle.
fdopen takes an OS-filehandle; this means fdopen P0, 0, "<" is only
valid under UNIX. (It never worked on other systems anyway).
The only way to portable open stdin is now getstdin P0.

Furthermore fdopend handles are not closed automatically when they are
destroyed, but only flushed. But they can be closed explicitly.

The tests are updated to follow the new semantics. Now the tests
t/pmc/io_3.pasm and t/pmc/io_4.pasm pass on stdio and hopefully also
WIN32.

bye
boe
-- 
Juergen Boemmels                        [EMAIL PROTECTED]
Fachbereich Physik                      Tel: ++49-(0)631-205-2817
Universitaet Kaiserslautern             Fax: ++49-(0)631-205-3906
PGP Key fingerprint = 9F 56 54 3D 45 C1 32 6F  23 F6 C7 2F 85 93 DD 47


Reply via email to