gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2716-ge214ae


From: Andrew J. Schorr
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2716-ge214ae0
Date: Wed, 16 Aug 2017 07:46:25 -0400 (EDT)

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  e214ae0d1541e857e59dbc95d62c675bb88c593d (commit)
      from  39c0dd124b19b49e002bc5c79edc703df51ffd3b (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 -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=e214ae0d1541e857e59dbc95d62c675bb88c593d

commit e214ae0d1541e857e59dbc95d62c675bb88c593d
Author: Andrew J. Schorr <address@hidden>
Date:   Wed Aug 16 07:45:57 2017 -0400

    Fix API bug preventing builds in the absence of MPFR.

diff --git a/ChangeLog b/ChangeLog
index 997b9f8..c48abc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-16         Andrew J. Schorr     <address@hidden>
+
+       * gawkapi.c (assign_number): Add 'ifdef HAVE_MPFR' tests to get this
+       to build in the absence of MPFR.
+
 2017-08-13         Arnold D. Robbins     <address@hidden>
 
        * gawkapi.h (gawk_api_major_version): Reset to 2 after merging
diff --git a/gawkapi.c b/gawkapi.c
index 0abcb88..dc566df 100644
--- a/gawkapi.c
+++ b/gawkapi.c
@@ -493,11 +493,14 @@ static inline void
 assign_number(NODE *node, awk_value_t *val)
 {
        val->val_type = AWK_NUMBER;
+#ifdef HAVE_MPFR
        switch (node->flags & (MPFN|MPZN)) {
        case 0:
+#endif
                val->num_value = node->numbr;
                val->num_type = AWK_NUMBER_TYPE_DOUBLE;
                val->num_ptr = NULL;
+#ifdef HAVE_MPFR
                break;
        case MPFN:
                val->num_value = mpfr_get_d(node->mpg_numbr, ROUND_MODE);
@@ -513,6 +516,7 @@ assign_number(NODE *node, awk_value_t *val)
                fatal(_("node_to_awk_value: detected invalid numeric flags 
combination `%s'; please file a bug report."), flags2str(node->flags));
                break;
        }
+#endif
 }
 
 /* assign_regex --- return a regex node */

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog | 5 +++++
 gawkapi.c | 4 ++++
 2 files changed, 9 insertions(+)


hooks/post-receive
-- 
gawk



reply via email to

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