comparison src/emodules.h @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 8de8e3f6228a
children 943eaba38521
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
58 /* 58 /*
59 * Load in a C module. The first argument is the name of the .so file, the 59 * Load in a C module. The first argument is the name of the .so file, the
60 * second is the name of the module, and the third is the module version. 60 * second is the name of the module, and the third is the module version.
61 * If the module name is NULL, we will always reload the .so. If it is not 61 * If the module name is NULL, we will always reload the .so. If it is not
62 * NULL, we check to make sure we haven't loaded it before. If the version 62 * NULL, we check to make sure we haven't loaded it before. If the version
63 * is specified, we check to make sure we didnt load the module of the 63 * is specified, we check to make sure we didn't load the module of the
64 * specified version before. We also use these as checks when we open the 64 * specified version before. We also use these as checks when we open the
65 * module to make sure we have the right module. 65 * module to make sure we have the right module.
66 */ 66 */
67 extern void emodules_load (CONST char *module, CONST char *name, CONST char *version); 67 extern void emodules_load (const char *module, const char *name, const char *version);
68 68
69 /* 69 /*
70 * Because subrs and symbols added by a dynamic module are not part of 70 * Because subrs and symbols added by a dynamic module are not part of
71 * the make-docfile process, we need a clean way to get the variables 71 * the make-docfile process, we need a clean way to get the variables
72 * and functions documented. Since people dont like the idea of making 72 * and functions documented. Since people don't like the idea of making
73 * shared modules use different versions of DEFSUBR() and DEFVAR_LISP() 73 * shared modules use different versions of DEFSUBR() and DEFVAR_LISP()
74 * and friends, we need these two functions to insert the documentation 74 * and friends, we need these two functions to insert the documentation
75 * into the right place. These functions will be called by the module 75 * into the right place. These functions will be called by the module
76 * init code, generated by ellcc during initialization mode. 76 * init code, generated by ellcc during initialization mode.
77 */ 77 */
78 extern void emodules_doc_subr (CONST char *objname, CONST char *docstr); 78 extern void emodules_doc_subr (const char *objname, const char *docstr);
79 extern void emodules_doc_sym (CONST char *objname, CONST char *docstr); 79 extern void emodules_doc_sym (const char *objname, const char *docstr);
80 80
81 #define CDOCSUBR(Fname, DOC) emodules_doc_subr (Fname, DOC) 81 #define CDOCSUBR(Fname, DOC) emodules_doc_subr (Fname, DOC)
82 #define CDOCSYM(Sname, DOC) emodules_doc_sym (Sname, DOC) 82 #define CDOCSYM(Sname, DOC) emodules_doc_sym (Sname, DOC)
83 #endif /* EMODULES_GATHER_VERSION */ 83 #endif /* EMODULES_GATHER_VERSION */
84 84