comparison modules/sample/sample.c @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents aabb7f5b1c81
children
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
29 } 29 }
30 30
31 /* 31 /*
32 * Each dynamically loaded Emacs module is given a name at compile 32 * Each dynamically loaded Emacs module is given a name at compile
33 * time. This is a short name, and must be a valid part of a C 33 * time. This is a short name, and must be a valid part of a C
34 * identifier. This name is used to contruct the name of several 34 * identifier. This name is used to construct the name of several
35 * functions which must appear in the module source code. 35 * functions which must appear in the module source code.
36 * The first such function, modules_of_XXXX, should load in any dependant 36 * The first such function, modules_of_XXXX, should load in any dependent
37 * modules. This function is optional, and the module will still load if 37 * modules. This function is optional, and the module will still load if
38 * it is not present in the module. 38 * it is not present in the module.
39 * 39 *
40 * The second function, which is NOT optional, is syms_of_XXXX, in which 40 * The second function, which is NOT optional, is syms_of_XXXX, in which
41 * all functions that the module will be provided are declared. This 41 * all functions that the module will be provided are declared. This
58 void 58 void
59 modules_of_sample() 59 modules_of_sample()
60 { 60 {
61 /* 61 /*
62 * This function isn't actually required as we will not be loading 62 * This function isn't actually required as we will not be loading
63 * in any dependant modules, but if we were, we would do something like: 63 * in any dependent modules, but if we were, we would do something like:
64 * emodules_load ("dependant.ell", "sample2", "1.0.0"); 64 * emodules_load ("dependent.ell", "sample2", "1.0.0");
65 */ 65 */
66 } 66 }
67 67
68 void 68 void
69 syms_of_sample() 69 syms_of_sample()