Mercurial > hg > xemacs-beta
diff src/emodules.c @ 1632:64eaceca611d
[xemacs-hg @ 2003-08-19 02:07:03 by james]
Enable module building and running on Cygwin and MinGW.
author | james |
---|---|
date | Tue, 19 Aug 2003 02:07:16 +0000 |
parents | 20547bbdcf1e |
children | 9fc738581a9d |
line wrap: on
line diff
--- a/src/emodules.c Mon Aug 18 21:52:34 2003 +0000 +++ b/src/emodules.c Tue Aug 19 02:07:16 2003 +0000 @@ -18,10 +18,6 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* This gross hack is so that we can make DEFVAR_foo register with the - portable dumper in core, but not do so in modules. Since the hackery to do - that is in emodules.h, we have to turn it off for this file. */ -#define EMODULES_DO_NOT_REDEFINE #include "emodules.h" #include "sysdll.h" @@ -78,7 +74,7 @@ loaded if it matches that VERSION. This function will check to make sure that the same module is not loaded twice. Modules are searched for in the same way as Lisp files, except that the valid file -extensions are `.so', `.dll' or `.ell'. +extensions are `.so', `.dll', `.ell', or `.dylib'. All symbols in the shared module must be completely resolved in order for this function to be successful. Any modules which the specified @@ -528,9 +524,10 @@ Lisp_Object sym = oblookup (Vobarray, (const Ibyte *)symname, len); Lisp_Subr *subr; - if (SYMBOLP(sym)) + /* Skip autoload cookies */ + if (SYMBOLP (sym) && SUBRP (XSYMBOL (sym)->function)) { - subr = XSUBR( XSYMBOL(sym)->function); + subr = XSUBR (XSYMBOL (sym)->function); subr->doc = xstrdup (doc); } /*