aboutsummaryrefslogtreecommitdiffstats
path: root/jython-tosca-parser/src/main/resources/Lib/site-packages/pbr-1.8.0-py2.7.egg/pbr/tests/testpackage/src/testext.c
blob: 872d43c04fb5ac9bb95e01c0fab773454f169d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <Python.h>


static PyMethodDef TestextMethods[] = {
    {NULL, NULL, 0, NULL}
};


#if PY_MAJOR_VERSION >=3
static struct PyModuleDef testextmodule = {
    PyModuleDef_HEAD_INIT,
    "testext",
    -1,
    TestextMethods
};

PyObject*
PyInit_testext(void)
{
    return PyModule_Create(&testextmodule);
}
#else
PyMODINIT_FUNC
inittestext(void)
{
    Py_InitModule("testext", TestextMethods);
}
#endif