Wrap lt_dlhandle in struct m4_module.
commit4ebe196152aec5144a84dda60ccfcc5422945907
authorEric Blake <ebb9@byu.net>
Thu, 6 Sep 2007 22:58:25 +0000 (6 22:58 +0000)
committerEric Blake <ebb9@byu.net>
Sat, 6 Oct 2007 13:08:48 +0000 (6 07:08 -0600)
tree1f9b7454ee0a035428672e5768dc46a147e06ea4
parentc6e5f016bf148e28dc6907a07b271a080ba4792d
Wrap lt_dlhandle in struct m4_module.
* m4/m4module.h (includes): No longer require clients to know
about lt_dlhandle.
(m4_module): New opaque declaration.
(m4_export): Delete unused type.
(M4INIT_HANDLER, M4FINISH_HANDLER, m4_module_init_func)
(m4_module_finish_func, m4_module_load, m4_get_module_name)
(m4_builtin_find_by_name, m4_builtin_find_by_func): Use new
wrapper.
(m4_module_makeresident, m4_module_refcount): New declarations.
* m4/m4private.h (includes): Move <ltdl.h> here.
(m4_module): New declaration.  Simple for now, but intended for
growth.
(m4__module_open, m4__module_next, m4__module_find)
(m4__symtab_remove_module_references): Use new wrapper.
* m4/builtin.c (m4_builtin_find_by_name, m4_builtin_find_by_func):
Likewise.
* m4/module.c (m4_get_module_name, m4_module_import)
(m4_module_load): Likewise.
(install_builtin_table, install_macro_table): Likewise.  Also,
change return type since these always returned NULL and no one
used the result.
(m4_module_makereside
12 files changed:
ChangeLog
m4/builtin.c
m4/m4module.h
m4/m4private.h
m4/module.c
m4/symtab.c
modules/load.c
modules/m4.c
modules/shadow.c
src/freeze.c
src/main.c
tests/modules.at