(py-indent-right, py-outdent-left): new commands, bound to C-c C-r and
[python/dscho.git] / Tools / modulator / Templates / module_tail
blob466c84a3767dfbfbb7be5782251e20b75af82036
2 /* List of methods defined in the module */
4 static struct methodlist $abbrev$_methods[] = {
5  $methodlist$
6  {NULL,         NULL}           /* sentinel */
7 };
10 /* Initialization function for the module (*must* be called init$name$) */
12 void
13 init$name$()
15         object *m, *d;
17         /* Create the module and add the functions */
18         m = initmodule("$name$", $abbrev$_methods);
20         /* Add some symbolic constants to the module */
21         d = getmoduledict(m);
22         ErrorObject = newstringobject("$name$.error");
23         dictinsert(d, "error", ErrorObject);
25         /* XXXX Add constants here */
26         
27         /* Check for errors */
28         if (err_occurred())
29                 fatal("can't initialize module $name$");