From c4a108fd8eba44c9aac67f2c482754c2f975fdf6 Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Wed, 23 Nov 2005 02:02:31 +0000 Subject: re PR libfortran/24794 (problem with namelist input of character array) 2005-11-22 Jerry DeLisle PR libgfortran/24794 * io/list_read.c (read_character): Add auto completion on short namelist reads. From-SVN: r107394 --- libgfortran/ChangeLog | 6 ++++++ libgfortran/io/list_read.c | 5 +++++ 2 files changed, 11 insertions(+) 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 + + PR libgfortran/24794 + * io/list_read.c (read_character): Add auto completion on short + namelist reads. + 2005-11-21 David Edelsohn * 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; } -- cgit v1.1