static PyMethodDef methods[] = {
#define METHNAME(func) meth_##func
- METH (_ego, "_ego(ARGV0)")
+ METH (_ego, "_ego(ARGV0)")
#undef METHNAME
{ 0 }
};
static void init_random(void)
{
-#if PY_MAJOR_VERSION >= 3 || (PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION >= 6)
+#if PY_VERSION_HEX >= 0x02060000
char *seed;
uint32 r;
EXPORT void init_base(void)
{
PyObject *mod;
+
+ modname = PyString_FromString("catacomb");
addmethods(methods);
INIT_MODULES;
init_random();