From aad89ecff0130860eaba36a041dad8f60601c479 Mon Sep 17 00:00:00 2001 From: jb Date: Tue, 19 Mar 2013 11:13:32 +0000 Subject: Use C99 bool instead of enum try. 2013-03-19 Janne Blomqvist * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196791 138bc75d-0d04-0410-961f-82ee72b054a4 --- libgfortran/intrinsics/chmod.c | 1 - libgfortran/intrinsics/execute_command_line.c | 1 - 2 files changed, 2 deletions(-) (limited to 'libgfortran/intrinsics') diff --git a/libgfortran/intrinsics/chmod.c b/libgfortran/intrinsics/chmod.c index 363d8031582..eca3e6a2231 100644 --- a/libgfortran/intrinsics/chmod.c +++ b/libgfortran/intrinsics/chmod.c @@ -27,7 +27,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #if defined(HAVE_SYS_STAT_H) -#include #include /* For memcpy. */ #include /* For stat, chmod and umask. */ diff --git a/libgfortran/intrinsics/execute_command_line.c b/libgfortran/intrinsics/execute_command_line.c index fa6ea9fbc34..fd9d4835cb2 100644 --- a/libgfortran/intrinsics/execute_command_line.c +++ b/libgfortran/intrinsics/execute_command_line.c @@ -25,7 +25,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "libgfortran.h" #include -#include #include #ifdef HAVE_UNISTD_H -- cgit v1.2.1