OSDN Git Service

2006-04-12 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Apr 2006 06:24:58 +0000 (06:24 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Apr 2006 06:24:58 +0000 (06:24 +0000)
commit2ec86d631f71e9d159c2a6f23778b2027f9e6dca
treec763d2334fb0ded7d39d7fef5c1d53dabe519ab2
parent9522889c72c7d546906cc0e1f739a20bcf006a24
2006-04-12  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/26766
* io/io.h: Add bit to identify associated unit as internal.
* io/unit.c (get_external_unit): Renamed the find_unit_1 function to
reflect the external unit functionality vs internal unit.
(get_internal_unit): New function to allocate and initialize an internal
unit structure.
(get_unit): Use get_internal_unit and get_external_unit.
(is_internal_unit): Revised to use new bit added in io.h.
* io/transfer.c (data_transfer_init): Fix line width.
(st_read_done): Free memory allocated for internal unit.
(st_write_done): Add test to only flush and truncate when not an
internal unit.  Free memory allocated for internal unit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112914 138bc75d-0d04-0410-961f-82ee72b054a4
libgfortran/ChangeLog
libgfortran/io/io.h
libgfortran/io/transfer.c
libgfortran/io/unit.c