X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Femodules.c;h=b8f2e6ee7e32efa494232733d252ec74319c3db6;hp=1a5d896fec11c74eaddb66b06e20b706e4e3196c;hb=976b002b16336930724ae22476014583ad022e7d;hpb=eb1f7fa6e0f89ff92b86f02c7cbdee048edd8b0d diff --git a/src/emodules.c b/src/emodules.c index 1a5d896..b8f2e6e 100644 --- a/src/emodules.c +++ b/src/emodules.c @@ -42,6 +42,8 @@ typedef struct _emodules_list dll_handle dlhandle; /* Dynamic lib handle */ } emodules_list; +static Lisp_Object Vmodule_extensions; + static int emodules_depth; static dll_handle dlhandle; static emodules_list *modules; @@ -334,7 +336,8 @@ emodules_load(CONST char *module, CONST char *modname, CONST char *modver) GCPRO2(filename, foundname); filename = build_string (tmod); - fd = locate_file(Vmodule_load_path, filename, ":.ell:.so:.dll", &foundname, -1); + fd = locate_file(Vmodule_load_path, filename, Vmodule_extensions, + &foundname, -1); UNGCPRO; if (fd < 0) @@ -567,6 +570,10 @@ the correctness of a dynamic module, which can have unpredictable results when a dynamic module is loaded. */); + /* #### Export this to Lisp */ + Vmodule_extensions = build_string (":.ell:.so:.dll"); + staticpro (&Vmodule_extensions); + load_modules_quietly = 0; emodules_depth = 0; modules = (emodules_list *)0;