Mercurial > hg > xemacs-beta
diff src/emodules.h @ 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 | 848225013a08 |
children | 34abfb24e891 |
line wrap: on
line diff
--- a/src/emodules.h Mon Aug 18 21:52:34 2003 +0000 +++ b/src/emodules.h Tue Aug 19 02:07:16 2003 +0000 @@ -73,15 +73,17 @@ * into the right place. These functions will be called by the module * init code, generated by ellcc during initialization mode. */ -extern void emodules_doc_subr (const char *objname, const char *docstr); -extern void emodules_doc_sym (const char *objname, const char *docstr); +extern MODULE_API void emodules_doc_subr (const char *objname, + const char *docstr); +extern MODULE_API void emodules_doc_sym (const char *objname, + const char *docstr); #define CDOCSUBR(Fname, DOC) emodules_doc_subr (Fname, DOC) #define CDOCSYM(Sname, DOC) emodules_doc_sym (Sname, DOC) #endif /* EMODULES_GATHER_VERSION */ /* We should not expose module entities to the portable dumper. */ -#if defined(PDUMP) && !defined(EMODULES_DO_NOT_REDEFINE) +#if defined(PDUMP) && defined(EMACS_MODULE) #undef dump_add_root_struct_ptr #define dump_add_root_struct_ptr(varaddr,descaddr) DO_NOTHING #undef dump_add_opaque @@ -98,6 +100,8 @@ #define dump_add_weak_object_chain(varaddr) DO_NOTHING #undef staticpro #define staticpro(DSF_location) staticpro_nodump(DSF_location) +#undef unstaticpro +#define unstaticpro(DSF_location) unstaticpro_nodump(DFS_location) #undef DEFSYMBOL #define DEFSYMBOL(name) DEFSYMBOL_NO_DUMP (name) @@ -106,6 +110,7 @@ DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP (name) #undef defsymbol #define defsymbol(location,name) defsymbol_nodump (location, name) -#endif + +#endif /* defined(PDUMP) && defined(EMACS_MODULE) */ #endif /* EMODULES_HDR */