File: testsimple.c

package info (click to toggle)
python-auditwheel 6.6.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 980 kB
  • sloc: python: 6,165; ansic: 304; cpp: 66; sh: 28; makefile: 25; f90: 12
file content (26 lines) | stat: -rw-r--r-- 561 bytes parent folder | download
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
#include <Python.h>

static PyObject *
run(PyObject *self, PyObject *args)
{
    (void)self;
    (void)args;
    return PyLong_FromLong(0);
}

/* Module initialization */
PyMODINIT_FUNC PyInit_testsimple(void)
{
    static PyMethodDef module_methods[] = {
        {"run", (PyCFunction)run, METH_NOARGS, "run."},
        {NULL}  /* Sentinel */
    };
    static struct PyModuleDef moduledef = {
        PyModuleDef_HEAD_INIT,
        "testsimple",
        "testsimple module",
        -1,
        module_methods,
    };
    return PyModule_Create(&moduledef);
}