modules: store module name in the module struct.
commit1d0cc3149668703ee990fdd562582dccc73c8864
authorGary V. Vaughan <gary@gnu.org>
Fri, 20 Sep 2013 10:26:42 +0000 (20 17:26 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 20 Sep 2013 14:41:58 +0000 (20 21:41 +0700)
tree9ad04620a6f606622706f83fda65df71e4fea34b
parentb466ccc6137f2255220c87f74baf86a67884a3d8
modules: store module name in the module struct.

* m4/m4private.h (m4_module): Add name field.
* m4/module.c (m4__module_open): Save the name field.
* m4/path.c (m4_load_filename): Pass the raw filename to
m4_module_load.
* m4/module.c (m4_get_module_name): Replace all the ltdl
twiddling with returning the saved name field.

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