summaryrefslogtreecommitdiff
path: root/modules/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/stdlib.c')
-rw-r--r--modules/stdlib.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/stdlib.c b/modules/stdlib.c
index d8f839cf..b01326df 100644
--- a/modules/stdlib.c
+++ b/modules/stdlib.c
@@ -36,12 +36,9 @@
# include "m4private.h"
#endif
-/* Rename exported symbols for dlpreload()ing. */
-#define m4_builtin_table stdlib_LTX_m4_builtin_table
-
/* function macros blind side minargs maxargs */
#define builtin_functions \
- BUILTIN (getcwd, false, false, false, 0, 0 ) \
+ BUILTIN (getcwd, false, false, false, 0, 0 ) \
BUILTIN (getenv, false, true, false, 1, 1 ) \
BUILTIN (getlogin, false, false, false, 0, 0 ) \
BUILTIN (getpid, false, false, false, 0, 0 ) \
@@ -61,7 +58,7 @@
builtin_functions
#undef BUILTIN
-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)
@@ -71,6 +68,13 @@ const m4_builtin m4_builtin_table[] =
{ NULL, NULL, 0, 0, 0 },
};
+
+
+M4INIT_HANDLER (stdlib)
+{
+ m4_install_builtins (context, module, m4_builtin_table);
+}
+
/**
* getcwd()