[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2436-g7704e9

From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2436-g7704e90
Date: Wed, 22 Feb 2017 22:55:14 -0500 (EST)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, master has been updated
       via  7704e90c4f3aa4b3ce093bd9d67dee2b70f5acbc (commit)
      from  d564505f72518910bfb835a53b697d64613b6240 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

commit 7704e90c4f3aa4b3ce093bd9d67dee2b70f5acbc
Author: Arnold D. Robbins <address@hidden>
Date:   Thu Feb 23 05:54:44 2017 +0200

    Change return type on some functions from int to bool.

diff --git a/ChangeLog b/ChangeLog
index a7da998..8b87746 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2017-02-23         Arnold D. Robbins     <address@hidden>
+       * awk.h (boolval): Return bool instead of int.
+       * eval.c (eval_condition): Same.
+       * io.c (pty_vs_pipe): Same
+       Thanks to Andrew Schorr for pointing these out.
 2017-02-21         Andrew J. Schorr     <address@hidden>
        * NEWS: Document that mktime now takes an optional utc-flag argument.
diff --git a/awk.h b/awk.h
index 199aba3..aae5e7e 100644
--- a/awk.h
+++ b/awk.h
@@ -1914,7 +1914,7 @@ fixtype(NODE *n)
  * non-null. Otherwise, the value is false.
-static inline int
+static inline bool
 boolval(NODE *t)
        (void) fixtype(t);
diff --git a/eval.c b/eval.c
index ab77016..73bd7fc 100644
--- a/eval.c
+++ b/eval.c
@@ -1510,7 +1510,7 @@ unwind_stack(long n)
 #define pop_stack()    (void) unwind_stack(0)
-static inline int
+static inline bool
 eval_condition(NODE *t)
        if (t == node_Boolean[false])
diff --git a/io.c b/io.c
index d65f2aa..cced126 100644
--- a/io.c
+++ b/io.c
@@ -275,7 +275,7 @@ static IOBUF *iop_finish(IOBUF *iop);
 static int gawk_pclose(struct redirect *rp);
 static int str2mode(const char *mode);
 static int two_way_open(const char *str, struct redirect *rp, int extfd);
-static int pty_vs_pipe(const char *command);
+static bool pty_vs_pipe(const char *command);
 static void find_input_parser(IOBUF *iop);
 static bool find_output_wrapper(awk_output_buf_t *outbuf);
 static void init_output_wrapper(awk_output_buf_t *outbuf);
@@ -3915,7 +3915,7 @@ set_FS:
  * This works by checking if PROCINFO["command", "pty"] exists and is true.
-static int
+static bool
 pty_vs_pipe(const char *command)


Summary of changes:
 ChangeLog | 7 +++++++
 awk.h     | 2 +-
 eval.c    | 2 +-
 io.c      | 4 ++--
 4 files changed, 11 insertions(+), 4 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]