[libgfortran/patch] Support NAMELIST I/O of derived type variables (library side)

Paul Brook paul@codesourcery.com
Wed Aug 18 01:24:00 GMT 2004


On Sunday 15 August 2004 09:55, Victor Leikehman wrote:
> 2004-08-15  Victor Leikehman  <lei@il.ibm.com>
>
> 	* io/transfer.c (st_set_nml_var), io/write.c (namelist_write): Take into
> 	account the possibility that st_set_nml_var is called with nulls in
> 	var_name and var_name_len.  This happens when passing anonymous fields
> 	of derived type variables. For strings, use string_length field instead
> 	of len. io/io.h (struct namelist_type): New field string_length.
> 	(st_set_nml_var_char): New argument string_length.

Changed to use gfc_strlen_type, and applied.
You should have submitted both this an the compiler side of the patch as one 
patch, as one will not work without the other.

Paul



More information about the Fortran mailing list