diff options
-rw-r--r-- | libgfortran/ChangeLog | 6 | ||||
-rw-r--r-- | libgfortran/io/list_read.c | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 2d1ec43..eff2880 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,9 @@ +2005-11-22 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR libgfortran/24794 + * io/list_read.c (read_character): Add auto completion on short + namelist reads. + 2005-11-21 David Edelsohn <edelsohn@gnu.org> * io/io.h (_LARGE_FILES): Undefine for AIX. diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index be620ae..75f2b65 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -704,6 +704,11 @@ read_character (st_parameter_dt *dtp, int length __attribute__ ((unused))) goto get_string; default: + if (dtp->u.p.namelist_mode) + { + unget_char (dtp,c); + return; + } push_char (dtp, c); goto get_string; } |