aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/intrinsics
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2013-03-19 13:13:32 +0200
committerJanne Blomqvist <jb@gcc.gnu.org>2013-03-19 13:13:32 +0200
commitf5e3ed2d42244eae5a54bc22642a9bbf6be5dd32 (patch)
treedcc5c9502972eb9dff14e321035a33826c97e179 /libgfortran/intrinsics
parent7469b1dc52d5cbd23c0b6e998adfe159c5034b28 (diff)
downloadgcc-f5e3ed2d42244eae5a54bc22642a9bbf6be5dd32.zip
gcc-f5e3ed2d42244eae5a54bc22642a9bbf6be5dd32.tar.gz
gcc-f5e3ed2d42244eae5a54bc22642a9bbf6be5dd32.tar.bz2
Use C99 bool instead of enum try.
2013-03-19 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. From-SVN: r196791
Diffstat (limited to 'libgfortran/intrinsics')
-rw-r--r--libgfortran/intrinsics/chmod.c1
-rw-r--r--libgfortran/intrinsics/execute_command_line.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/libgfortran/intrinsics/chmod.c b/libgfortran/intrinsics/chmod.c
index 363d803..eca3e6a 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 <stdbool.h>
#include <string.h> /* For memcpy. */
#include <sys/stat.h> /* For stat, chmod and umask. */
diff --git a/libgfortran/intrinsics/execute_command_line.c b/libgfortran/intrinsics/execute_command_line.c
index fa6ea9f..fd9d483 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 <string.h>
-#include <stdbool.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H