summaryrefslogtreecommitdiff
path: root/modules/mpeval.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mpeval.c')
-rw-r--r--modules/mpeval.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/mpeval.c b/modules/mpeval.c
index 7928a281..49afd765 100644
--- a/modules/mpeval.c
+++ b/modules/mpeval.c
@@ -32,11 +32,6 @@
# include <gmp.h>
#endif
-/* Rename exported symbols for dlpreload()ing. */
-#define m4_builtin_table mpeval_LTX_m4_builtin_table
-#define m4_macro_table mpeval_LTX_m4_macro_table
-
-
/* Maintain each of the builtins implemented in this modules along
with their details in a single table for easy maintenance.
@@ -106,7 +101,7 @@
/* Generate a table for mapping m4 symbol names to handler functions. */
-const m4_builtin m4_builtin_table[] =
+static const m4_builtin m4_builtin_table[] =
{
#define BUILTIN(handler, macros, blind, side, min, max) \
M4BUILTIN_ENTRY (handler, #handler, macros, blind, side, min, max)
@@ -119,7 +114,7 @@ const m4_builtin m4_builtin_table[] =
/* A table for mapping m4 symbol names to simple expansion text. */
-const m4_macro m4_macro_table[] =
+static const m4_macro m4_macro_table[] =
{
/* name text min max */
{ "__mpeval__", "", 0, 0 },
@@ -127,6 +122,13 @@ const m4_macro m4_macro_table[] =
};
+M4INIT_HANDLER (mpeval)
+{
+ m4_install_builtins (context, module, m4_builtin_table);
+ m4_install_macros (context, module, m4_macro_table);
+}
+
+
/* GMP defines mpq_t as a 1-element array of struct. Therefore, `mpq_t'
is not compatible with `const mpq_t'. */
typedef mpq_t number;