[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, feature/api-mpfr, updated. gawk-4.1.0-27
From: |
Andrew J. Schorr |
Subject: |
[gawk-diffs] [SCM] gawk branch, feature/api-mpfr, updated. gawk-4.1.0-2707-g46aec4c |
Date: |
Thu, 10 Aug 2017 10:57:15 -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, feature/api-mpfr has been updated
via 46aec4c0db140886ce19d81e99ef106aea9beced (commit)
from d16278e6441adcc416d70c43b2ea6a4474f221c5 (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=46aec4c0db140886ce19d81e99ef106aea9beced
commit 46aec4c0db140886ce19d81e99ef106aea9beced
Author: Andrew J. Schorr <address@hidden>
Date: Thu Aug 10 10:56:24 2017 -0400
Fix initialization in intdiv extension, since MPFR version check is now
automatic.
diff --git a/extension/ChangeLog b/extension/ChangeLog
index b764357..99a6ac1 100644
--- a/extension/ChangeLog
+++ b/extension/ChangeLog
@@ -1,3 +1,9 @@
+2017-08-10 Andrew J. Schorr <address@hidden>
+
+ * intdiv.c (init_intdiv): Remove function, since dl_load_func now
+ calls check_mpfr_version automatically.
+ (init_func): Initialize to NULL instead of init_intdiv.
+
2017-08-04 Arnold D. Robbins <address@hidden>
* Makefile.am: Update copyright year.
diff --git a/extension/intdiv.c b/extension/intdiv.c
index 77b4290..78fadd5 100644
--- a/extension/intdiv.c
+++ b/extension/intdiv.c
@@ -26,6 +26,7 @@
static const gawk_api_t *api; /* for convenience macros to work */
static awk_ext_id_t *ext_id;
static const char *ext_version = "intdiv extension: version 1.0";
+static awk_bool_t (*init_func)(void) = NULL;
int plugin_is_GPL_compatible;
@@ -197,19 +198,6 @@ static awk_ext_func_t func_table[] = {
{ "intdiv", do_intdiv, 3, 3, awk_false, NULL },
};
-/* init_intdiv --- initialization routine */
-
-static awk_bool_t
-init_intdiv(void)
-{
-#ifdef HAVE_MPFR
- check_mpfr_version(intdiv)
-#endif
- return awk_true;
-}
-
-static awk_bool_t (*init_func)(void) = init_intdiv;
-
/* define the dl_load function using the boilerplate macro */
dl_load_func(func_table, intdiv, "")
-----------------------------------------------------------------------
Summary of changes:
extension/ChangeLog | 6 ++++++
extension/intdiv.c | 14 +-------------
2 files changed, 7 insertions(+), 13 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, feature/api-mpfr, updated. gawk-4.1.0-2707-g46aec4c,
Andrew J. Schorr <=