[Patch, libfortran] Get rid of "enum try"

Janne Blomqvist blomqvist.janne@gmail.com
Thu Jan 17 23:19:00 GMT 2013


the attached patch gets rid of the "enum try" in the Fortran runtime
library, replacing its usage with the standard C99 _Bool/bool.

Regtested on x86_64-unknown-linux-gnu, Ok for trunk?

2013-01-18  Janne Blomqvist  <jb@gcc.gnu.org>

	* libgfortran.h: Include stdbool.h.
	(enum try): Remove.
	(notify_std): Change return type to bool.
	* intrinsics/chmod.c: Don't include stdbool.h.
	* intrinsics/execute_command_line.c: Likewise.
	* io/format.c: Likewise.
	* io/list_read.c (nml_parse_qualifier): Change return type to bool.
	(nml_read_obj): Likewise.
	(nml_get_obj_data): Likewise.
	* io/transfer.c (read_block_form): Fix comment.
	(write_buf): Change return type to bool.
	* io/write.c: Don't include stdbool.h.
	* io/write_float.def (output_float): Change return type to bool.
	(output_float_FMT_G_ ## x): Change type of result variable.
	* runtime/error.c (notify_std): Change return type to bool.

Janne Blomqvist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stdbool.diff
Type: application/octet-stream
Size: 17277 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130117/bd503381/attachment.obj>

More information about the Gcc-patches mailing list