Start python3

This commit is contained in:
unknown
2020-04-14 21:56:46 +02:00
parent cef16a9f64
commit 3f56b25f46
46 changed files with 256 additions and 1146 deletions

View File

@@ -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);
}