Re: [RfC] (fd)open files on other layers than the default layer.

2003-11-05 Thread Melvin Smith
At 04:58 PM 11/5/2003 +0100, Juergen Boemmels wrote: > I think it works with casts, unless there are cases where our INTVAL > cannot hold a pointer. There are currently 2 cases: Is it always guaranteed that an pointer fits in an INTVAL? I'm not aware of any platform where size_t cannot hold a point

Re: [RfC] (fd)open files on other layers than the default layer.

2003-11-05 Thread Melvin Smith
At 05:06 PM 11/5/2003 +0100, Juergen Boemmels wrote: they should not be a reason for fdopen. The main goal why I wanted to keep fdopen is in cases were parrot is embedded and the bytecode gets called with an external FILE * pointer. This might be for example yyin. But is it needed that this must be

Re: [RfC] (fd)open files on other layers than the default layer.

2003-11-05 Thread Juergen Boemmels
Melvin Smith <[EMAIL PROTECTED]> writes: > >PIOHANDLE is a low level OS handle (UNIX or Win32) and we to > >create a ParrotIO around it. > >PIOHANDLE is a stdio FILE * and we need to create a ParrotIO around it. > > One more comment. I don't even see the possibility of calling fdopen > from t

Re: [RfC] (fd)open files on other layers than the default layer.

2003-11-05 Thread Juergen Boemmels
Melvin Smith <[EMAIL PROTECTED]> writes: > Hey Juergen, > > Here are a couple comments, > > At 03:18 PM 11/4/2003 +0100, Juergen Boemmels wrote: > >currently there is no (simple) way to open a file on an other layer > >than the default layer. But this is necessary if we want to take > >advantage

Re: [RfC] (fd)open files on other layers than the default layer.

2003-11-04 Thread Melvin Smith
At 10:11 AM 11/4/2003 -0500, Melvin Smith wrote: At 03:18 PM 11/4/2003 +0100, Juergen Boemmels wrote: * I needed many casts from PIOHANDLE to FILE * and vice versa. I'm not sure if this one fits all approach of PIOHANDLE is the right way. Maybe its better to make PIOHANDLE a union. But what to

Re: [RfC] (fd)open files on other layers than the default layer.

2003-11-04 Thread Melvin Smith
Hey Juergen, Here are a couple comments, At 03:18 PM 11/4/2003 +0100, Juergen Boemmels wrote: currently there is no (simple) way to open a file on an other layer than the default layer. But this is necessary if we want to take advantage from the layered approach. So i added two new functions: pio

[RfC] (fd)open files on other layers than the default layer.

2003-11-04 Thread Juergen Boemmels
Hello, currently there is no (simple) way to open a file on an other layer than the default layer. But this is necessary if we want to take advantage from the layered approach. So i added two new functions: pio_open_with_layer and pio_fdopen_with_layer which create IO-Objects on different layers.