diff options
author | Gary V. Vaughan <gary@gnu.org> | 2013-09-20 16:01:31 +0700 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2013-09-20 21:41:58 +0700 |
commit | b466ccc6137f2255220c87f74baf86a67884a3d8 (patch) | |
tree | 208fdb52d5f50d07b06ba612920055519599b44f /tests/options.at | |
parent | aeb92bcb25e253b55650961f341640f93ec3b54e (diff) | |
download | m4-b466ccc6137f2255220c87f74baf86a67884a3d8.tar.gz |
modules: allow only a single function access point.
Exporting non-function symbols barely works on Windows, so change
the module loading API to use a single function access point which
is then responsible for calling back to install symbols and macros.
* m4/m4module.h, m4/m4module.c (m4_install_builtins)
(m4_install_macros): New APIs for saving builtins and macros into
the module struct.
* m4/m4module.c (install_macro_table, install_builtin_table):
Adjust accordingly.
(m4__module_open): Simplify accordingly.
* m4/m4private.h (BUILTIN_SYMBOL, MACRO_SYMBOL): Remove.
* modules/gnu.c, modules/import.c, modules/m4.c, modules/modtest.c,
modules/mpeval.c, modules/shadow.c, modules/time.c,
modules/traditional.c (m4_builtin_table, m4_macro_table): Make
static, and remove LTX symbol mangling macros.
(M4INIT_HANDLER): Call m4_install_builtins and/or m4_install_macros.
* tests/options.at: Now that init_func is always called, adjust
expected debug output.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'tests/options.at')
-rw-r--r-- | tests/options.at | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/options.at b/tests/options.at index 5848fa80..8503f8fc 100644 --- a/tests/options.at +++ b/tests/options.at @@ -423,9 +423,11 @@ dnl Test all flags. AT_CHECK_M4([-dV in], [0], [[3 0 ]], [[m4debug: module m4: opening file +m4debug: module m4: init hook called m4debug: module m4: opened m4debug: module m4: builtins loaded m4debug: module gnu: opening file +m4debug: module gnu: init hook called m4debug: module gnu: opened m4debug: module gnu: builtins loaded m4debug: module gnu: macros loaded |