OSDN Git Service

* io/list_read.c (snprintf): Define if HAVE_SNPRINTF isn't defined.
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Apr 2008 09:00:31 +0000 (09:00 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Apr 2008 09:00:31 +0000 (09:00 +0000)
commit965cb93b29875511b84df37d9037d965476192aa
tree6adbb3fdbc2fa0e1f069fddef84052635c7be029
parent649d77323271c2a533d55a5f21c6c44d2dccc432
* io/list_read.c (snprintf): Define if HAVE_SNPRINTF isn't defined.
(nml_read_obj): Add nml_err_msg_size argument.  Pass it down to
recursive call.  Use snprintf instead of sprintf when %s nl->var_name
is used.
(nml_get_obj_data): Add nml_err_msg_size argument.  Pass it down to
nml_read_obj call.  Use snprintf instead of sprintf when %s
nl->var_name is used.  Pass nml_err_msg to nml_parse_qualifier instead
of parse_err_msg array.  Append " for namelist variable " and
nl->var_name to it.
(namelist_read): Increase size of nml_err_msg array to 200.  Pass
sizeof nml_err_msg as extra argument to nml_get_obj_data.

* gfortran.dg/namelist_47.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134132 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/namelist_47.f90 [new file with mode: 0644]
libgfortran/ChangeLog
libgfortran/io/list_read.c