This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
:ADDPATCH fortran: This introduces a capability of setting data conversion on unformatted data files on a per-unit basis via environment variables. Regression-tested on i686-pc-linux-gnu. I would love to introduce a test case, but I don't know of any possiblity of setting environment variables from the dejagnu framework. OK for mainline and 4.1 after a few days? 2005-01-15 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/23815 gfortran.texi: Document the GFORTRAN_CONVERT_UNIT environment variable. invoke.texi: Mention the "Runtime" chapter. 2005-01-15 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/23815 runtime/environ.c (init_unformatted): Add GFORTRAN_CONVERT_UNIT environment variable. (top level): Add defines, type and static variables for GFORTRAN_CONVERT_UNIT handling. (search_unit): New function. (match_word): New function. (match_integer): New function. (next_token): New function. (push_token): New function. (mark_single): New function. (mark_range): New funciton. (do_parse): New function. (init_unformatted): New function. (get_unformatted_convert): New function. io/open.c (st_open): Call get_unformatted_convert to get unit default; if CONVERT_NONE is returned, check for the presence of a CONVERT specifier and use it. io/io.h (top level): Add CONVERT_NONE to unit_convert, to signal "nothing has been set". (top level): Add prototype for get_unformatted_convert.
Attachment:
env-4.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |