modules: speed up multiple includes of the same module.
commit7781a595d8236fe0cc6bd2f2fdd2d67c5707eb50
authorGary V. Vaughan <gary@gnu.org>
Fri, 20 Sep 2013 14:54:01 +0000 (20 21:54 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 20 Sep 2013 14:54:01 +0000 (20 21:54 +0700)
treeefaee266eb78d7672265fcdb085cf7b5173bf3a9
parent7b5142a2fd0939e5209e1d375843b8e9d94eb114
modules: speed up multiple includes of the same module.

* m4/module.c (m4_module_load): If we already have the module
loaded, reuse that.  Otherwise, open the module afresh and
register it's builtins and macros on success.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
m4/module.c