head	1.1;
access;
symbols;
locks
	amk:1.1; strict;
comment	@# @;


1.1
date	96.06.20.21.31.23;	author amk;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@
/* List of methods defined in the module */

static PyMethodDef $abbrev$_methods[] = {
	$methodlist$
	{NULL,		NULL}		/* sentinel */
};

#ifdef $name$_TAIL
#include "$abbrev$_tail.i"
#endif


/* Initialization function for the module (*must* be called init$name$) */

#ifdef __cplusplus
extern "C"
#endif
void
init$name$()
{
	PyObject *m, *d;

	/* Create the module and add the functions */
	m = Py_InitModule("$name$", $abbrev$_methods);

	/* Add some symbolic constants to the module */
	d = PyModule_GetDict(m);
	ErrorObject = PyString_FromString("$name$.error");
	PyDict_SetItemString(d, "error", ErrorObject);

	/* XXXX Add constants here */
#ifdef $abbrev$_constants
	$abbrev$_constants(d)
#endif
	
	/* Check for errors */
	if (PyErr_Occurred())
		Py_FatalError("can't initialize module $name$");
}
@
