diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-08-10 10:56:24 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-08-10 10:56:24 -0400 |
commit | 46aec4c0db140886ce19d81e99ef106aea9beced (patch) | |
tree | b077f1f79079f4c2c041a729ae54773628f7cdde /extension/intdiv.c | |
parent | d16278e6441adcc416d70c43b2ea6a4474f221c5 (diff) | |
download | egawk-46aec4c0db140886ce19d81e99ef106aea9beced.tar.gz egawk-46aec4c0db140886ce19d81e99ef106aea9beced.tar.bz2 egawk-46aec4c0db140886ce19d81e99ef106aea9beced.zip |
Fix initialization in intdiv extension, since MPFR version check is now automatic.
Diffstat (limited to 'extension/intdiv.c')
-rw-r--r-- | extension/intdiv.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/extension/intdiv.c b/extension/intdiv.c index 77b4290b..78fadd5a 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, "") |