Start python3
This commit is contained in:
13
ext/rle.c
13
ext/rle.c
@@ -938,10 +938,19 @@ static PyMethodDef rle_methods[] =
|
||||
{"bitmap_decompress", bitmap_decompress_wrapper, METH_VARARGS, "decompress bitmap from microsoft rle algorithm."},
|
||||
{NULL, NULL, 0, NULL}
|
||||
};
|
||||
|
||||
static struct PyModuleDef rle =
|
||||
{
|
||||
PyModuleDef_HEAD_INIT,
|
||||
"rle", /* name of module */
|
||||
"", /* module documentation, may be NULL */
|
||||
-1, /* size of per-interpreter state of the module, or -1 if the module keeps state in global variables. */
|
||||
rle_methods
|
||||
};
|
||||
|
||||
PyMODINIT_FUNC
|
||||
initrle(void)
|
||||
PyInit_rle(void)
|
||||
{
|
||||
(void) Py_InitModule("rle", rle_methods);
|
||||
(void) PyModule_Create(&rle);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user