[patch, fortran] Large transfer support for IO library
Janne Blomqvist
jblomqvi@cc.hut.fi
Mon Oct 3 07:22:00 GMT 2005
On Sun, Oct 02, 2005 at 04:45:25PM -0700, Jerry DeLisle wrote:
> Janne Blomqvist wrote:
> > /*********************************************************************
> > memory stream functions - These are used for internal files
> >
> >@@ -641,6 +794,60 @@ mem_alloc_w_at (unix_stream * s, int *le
> > }
> >
> >
> >+/* Stream read function for internal units. This is not actually used
> >+ at the moment, as all internal IO is formatted and the formatted IO
> >+ routines use mem_alloc_r_at function. */
> >+
>
> What are your plans here? It is my understanding, for example, that the
> standard requires all I/O to internal character array units to be
> sequential formatted. No other method is permitted. Am I missing
> something here?
Just making sure we don't segfault if at some point some of the
formatted transfer routines start to use sread/swrite. Or #2 of the
"ten commandments for C programmers": "Thou shalt not follow the NULL
pointer, for chaos and madness await thee at its end."
However, considering that at the moment there is no way to test
mem_read/mem_write one could perhaps replace them with a simple
implementation that only calls internal_error ("Not implemented yet"),
or something like that.
--
Janne Blomqvist
More information about the Fortran
mailing list