m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

m4 ChangeLog m4/builtin.c m4/m4module.h m4/m4pr...


From: Eric Blake
Subject: m4 ChangeLog m4/builtin.c m4/m4module.h m4/m4pr...
Date: Thu, 06 Sep 2007 22:58:27 +0000

CVSROOT:        /sources/m4
Module name:    m4
Changes by:     Eric Blake <ericb>      07/09/06 22:58:27

Modified files:
        .              : ChangeLog 
        m4             : builtin.c m4module.h m4private.h module.c 
                         symtab.c 
        modules        : load.c m4.c shadow.c 
        src            : freeze.c main.c 
        tests          : modules.at 

Log message:
        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_makeresident, m4_module_refcount): New functions.
        (m4_module_unload, m4__module_next, m4__module_find): Use new
        wrapper.
        (m4__module_open): Populate new wrapper, and associate it with the
        lt_dlhandle.
        (m4__module_exit): Use new wrapper.
        (module_remove): Likewise.  Reclaim storage on last use.
        (module_close): Delete, and inline into module_remove.
        * m4/symtab.c (m4__symtab_remove_module_references): Use new
        wrapper.
        * modules/load.c (load_init): Use new API.
        * modules/m4.c (m4_export_table): Kill unused declaration.
        (m4_init): Use new API.
        * modules/shadow.c (shadow_init): Use new API.
        * src/main.c (main): Adjust callers.
        * src/freeze.c (reload_frozen_state): Likewise.
        * tests/modules.at (unload load module): New test.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/m4/ChangeLog?cvsroot=m4&r1=1.541&r2=1.542
http://cvs.savannah.gnu.org/viewcvs/m4/m4/builtin.c?cvsroot=m4&r1=1.29&r2=1.30
http://cvs.savannah.gnu.org/viewcvs/m4/m4/m4module.h?cvsroot=m4&r1=1.110&r2=1.111
http://cvs.savannah.gnu.org/viewcvs/m4/m4/m4private.h?cvsroot=m4&r1=1.82&r2=1.83
http://cvs.savannah.gnu.org/viewcvs/m4/m4/module.c?cvsroot=m4&r1=1.52&r2=1.53
http://cvs.savannah.gnu.org/viewcvs/m4/m4/symtab.c?cvsroot=m4&r1=1.74&r2=1.75
http://cvs.savannah.gnu.org/viewcvs/m4/modules/load.c?cvsroot=m4&r1=1.24&r2=1.25
http://cvs.savannah.gnu.org/viewcvs/m4/modules/m4.c?cvsroot=m4&r1=1.112&r2=1.113
http://cvs.savannah.gnu.org/viewcvs/m4/modules/shadow.c?cvsroot=m4&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/m4/src/freeze.c?cvsroot=m4&r1=1.68&r2=1.69
http://cvs.savannah.gnu.org/viewcvs/m4/src/main.c?cvsroot=m4&r1=1.116&r2=1.117
http://cvs.savannah.gnu.org/viewcvs/m4/tests/modules.at?cvsroot=m4&r1=1.26&r2=1.27




reply via email to

[Prev in Thread] Current Thread [Next in Thread]