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

Victor Leikehman lei@haifasphere.co.il
Sun Aug 15 08:55:00 GMT 2004


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.

-- 
  Victor Leikehman
  IBM Research Labs in Haifa, Israel

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: io.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20040815/ec870da4/attachment.ksh>


More information about the Fortran mailing list