Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
1631:1bf7b032a45d | 1632:64eaceca611d |
---|---|
71 * shared modules use different versions of DEFSUBR() and DEFVAR_LISP() | 71 * shared modules use different versions of DEFSUBR() and DEFVAR_LISP() |
72 * and friends, we need these two functions to insert the documentation | 72 * and friends, we need these two functions to insert the documentation |
73 * into the right place. These functions will be called by the module | 73 * into the right place. These functions will be called by the module |
74 * init code, generated by ellcc during initialization mode. | 74 * init code, generated by ellcc during initialization mode. |
75 */ | 75 */ |
76 extern void emodules_doc_subr (const char *objname, const char *docstr); | 76 extern MODULE_API void emodules_doc_subr (const char *objname, |
77 extern void emodules_doc_sym (const char *objname, const char *docstr); | 77 const char *docstr); |
78 extern MODULE_API void emodules_doc_sym (const char *objname, | |
79 const char *docstr); | |
78 | 80 |
79 #define CDOCSUBR(Fname, DOC) emodules_doc_subr (Fname, DOC) | 81 #define CDOCSUBR(Fname, DOC) emodules_doc_subr (Fname, DOC) |
80 #define CDOCSYM(Sname, DOC) emodules_doc_sym (Sname, DOC) | 82 #define CDOCSYM(Sname, DOC) emodules_doc_sym (Sname, DOC) |
81 #endif /* EMODULES_GATHER_VERSION */ | 83 #endif /* EMODULES_GATHER_VERSION */ |
82 | 84 |
83 /* We should not expose module entities to the portable dumper. */ | 85 /* We should not expose module entities to the portable dumper. */ |
84 #if defined(PDUMP) && !defined(EMODULES_DO_NOT_REDEFINE) | 86 #if defined(PDUMP) && defined(EMACS_MODULE) |
85 #undef dump_add_root_struct_ptr | 87 #undef dump_add_root_struct_ptr |
86 #define dump_add_root_struct_ptr(varaddr,descaddr) DO_NOTHING | 88 #define dump_add_root_struct_ptr(varaddr,descaddr) DO_NOTHING |
87 #undef dump_add_opaque | 89 #undef dump_add_opaque |
88 #define dump_add_opaque(varaddr,size) DO_NOTHING | 90 #define dump_add_opaque(varaddr,size) DO_NOTHING |
89 #undef dump_add_root_block | 91 #undef dump_add_root_block |
96 #define dump_add_root_lisp_object(varaddr) DO_NOTHING | 98 #define dump_add_root_lisp_object(varaddr) DO_NOTHING |
97 #undef dump_add_weak_object_chain | 99 #undef dump_add_weak_object_chain |
98 #define dump_add_weak_object_chain(varaddr) DO_NOTHING | 100 #define dump_add_weak_object_chain(varaddr) DO_NOTHING |
99 #undef staticpro | 101 #undef staticpro |
100 #define staticpro(DSF_location) staticpro_nodump(DSF_location) | 102 #define staticpro(DSF_location) staticpro_nodump(DSF_location) |
103 #undef unstaticpro | |
104 #define unstaticpro(DSF_location) unstaticpro_nodump(DFS_location) | |
101 | 105 |
102 #undef DEFSYMBOL | 106 #undef DEFSYMBOL |
103 #define DEFSYMBOL(name) DEFSYMBOL_NO_DUMP (name) | 107 #define DEFSYMBOL(name) DEFSYMBOL_NO_DUMP (name) |
104 #undef DEFSYMBOL_MULTIWORD_PREDICATE | 108 #undef DEFSYMBOL_MULTIWORD_PREDICATE |
105 #define DEFSYMBOL_MULTIWORD_PREDICATE(name) \ | 109 #define DEFSYMBOL_MULTIWORD_PREDICATE(name) \ |
106 DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP (name) | 110 DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP (name) |
107 #undef defsymbol | 111 #undef defsymbol |
108 #define defsymbol(location,name) defsymbol_nodump (location, name) | 112 #define defsymbol(location,name) defsymbol_nodump (location, name) |
109 #endif | 113 |
114 #endif /* defined(PDUMP) && defined(EMACS_MODULE) */ | |
110 | 115 |
111 #endif /* EMODULES_HDR */ | 116 #endif /* EMODULES_HDR */ |