Debian Codegraph @

pypy/module/cpyext/test/date.c

raw symbols SCIP
1 #include "Python.h"
2
3 static PyMethodDef date_functions[] = {
4 {NULL, NULL}
5 };
6
7 static struct PyModuleDef moduledef = {
8 PyModuleDef_HEAD_INIT,
9 "date",
10 "Module Doc",
11 -1,
12 date_functions,
13 };
14
15 PyMODINIT_FUNC
16 PyInit_date(void)
17 {
18 PyObject *module, *othermodule;
19 module = PyModule_Create(&moduledef);
20 othermodule = PyImport_ImportModule("apple.banana");
21 if (!othermodule)
22 return NULL;
23 Py_DECREF(othermodule);
24 return module;
25 }