2 /* List of methods defined in the module */
4 static struct methodlist $abbrev$_methods[] = {
6 {NULL, NULL} /* sentinel */
10 /* Initialization function for the module (*must* be called init$name$) */
17 /* Create the module and add the functions */
18 m = initmodule("$name$", $abbrev$_methods);
20 /* Add some symbolic constants to the module */
22 ErrorObject = newstringobject("$name$.error");
23 dictinsert(d, "error", ErrorObject);
25 /* XXXX Add constants here */
27 /* Check for errors */
29 fatal("can't initialize module $name$");