Created
March 26, 2022 10:07
-
-
Save thierry-FreeBSD/2ed017e6183538a4fdfee3ab2bd00769 to your computer and use it in GitHub Desktop.
Support of Python-3.9 for https://github.com/bjodah/symcxx/ (WIP)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- symcxx/_symcxx.cpp.orig 2018-07-02 12:52:18 UTC | |
+++ symcxx/_symcxx.cpp | |
@@ -48521,7 +48521,9 @@ static PyTypeObject __pyx_type_6symcxx_7_symcxx__Matri | |
sizeof(struct __pyx_obj_6symcxx_7_symcxx__Matrix), /*tp_basicsize*/ | |
0, /*tp_itemsize*/ | |
__pyx_tp_dealloc_6symcxx_7_symcxx__Matrix, /*tp_dealloc*/ | |
+#if PY_VERSION_HEX < 0x03090000 | |
0, /*tp_print*/ | |
+#endif | |
0, /*tp_getattr*/ | |
0, /*tp_setattr*/ | |
#if PY_MAJOR_VERSION < 3 | |
@@ -48818,7 +48820,9 @@ static PyTypeObject __pyx_type_6symcxx_7_symcxx_PyName | |
sizeof(struct __pyx_obj_6symcxx_7_symcxx_PyNameSpace), /*tp_basicsize*/ | |
0, /*tp_itemsize*/ | |
__pyx_tp_dealloc_6symcxx_7_symcxx_PyNameSpace, /*tp_dealloc*/ | |
+#if PY_VERSION_HEX < 0x03090000 | |
0, /*tp_print*/ | |
+#endif | |
0, /*tp_getattr*/ | |
0, /*tp_setattr*/ | |
#if PY_MAJOR_VERSION < 3 | |
@@ -48929,7 +48933,9 @@ static PyTypeObject __pyx_type_6symcxx_7_symcxx___pyx_ | |
sizeof(struct __pyx_obj_6symcxx_7_symcxx___pyx_scope_struct____get__), /*tp_basicsize*/ | |
0, /*tp_itemsize*/ | |
__pyx_tp_dealloc_6symcxx_7_symcxx___pyx_scope_struct____get__, /*tp_dealloc*/ | |
+#if PY_VERSION_HEX < 0x03090000 | |
0, /*tp_print*/ | |
+#endif | |
0, /*tp_getattr*/ | |
0, /*tp_setattr*/ | |
#if PY_MAJOR_VERSION < 3 | |
@@ -49047,7 +49053,9 @@ static PyTypeObject __pyx_type_6symcxx_7_symcxx___pyx_ | |
sizeof(struct __pyx_obj_6symcxx_7_symcxx___pyx_scope_struct_1_Matrix), /*tp_basicsize*/ | |
0, /*tp_itemsize*/ | |
__pyx_tp_dealloc_6symcxx_7_symcxx___pyx_scope_struct_1_Matrix, /*tp_dealloc*/ | |
+#if PY_VERSION_HEX < 0x03090000 | |
0, /*tp_print*/ | |
+#endif | |
0, /*tp_getattr*/ | |
0, /*tp_setattr*/ | |
#if PY_MAJOR_VERSION < 3 | |
@@ -49151,7 +49159,9 @@ static PyTypeObject __pyx_type_6symcxx_7_symcxx___pyx_ | |
sizeof(struct __pyx_obj_6symcxx_7_symcxx___pyx_scope_struct_2_lambdify), /*tp_basicsize*/ | |
0, /*tp_itemsize*/ | |
__pyx_tp_dealloc_6symcxx_7_symcxx___pyx_scope_struct_2_lambdify, /*tp_dealloc*/ | |
+#if PY_VERSION_HEX < 0x03090000 | |
0, /*tp_print*/ | |
+#endif | |
0, /*tp_getattr*/ | |
0, /*tp_setattr*/ | |
#if PY_MAJOR_VERSION < 3 | |
@@ -49329,7 +49339,9 @@ static PyTypeObject __pyx_type___pyx_array = { | |
sizeof(struct __pyx_array_obj), /*tp_basicsize*/ | |
0, /*tp_itemsize*/ | |
__pyx_tp_dealloc_array, /*tp_dealloc*/ | |
+#if PY_VERSION_HEX < 0x03090000 | |
0, /*tp_print*/ | |
+#endif | |
0, /*tp_getattr*/ | |
0, /*tp_setattr*/ | |
#if PY_MAJOR_VERSION < 3 | |
@@ -49437,7 +49449,9 @@ static PyTypeObject __pyx_type___pyx_MemviewEnum = { | |
sizeof(struct __pyx_MemviewEnum_obj), /*tp_basicsize*/ | |
0, /*tp_itemsize*/ | |
__pyx_tp_dealloc_Enum, /*tp_dealloc*/ | |
+#if PY_VERSION_HEX < 0x03090000 | |
0, /*tp_print*/ | |
+#endif | |
0, /*tp_getattr*/ | |
0, /*tp_setattr*/ | |
#if PY_MAJOR_VERSION < 3 | |
@@ -49687,7 +49701,9 @@ static PyTypeObject __pyx_type___pyx_memoryview = { | |
sizeof(struct __pyx_memoryview_obj), /*tp_basicsize*/ | |
0, /*tp_itemsize*/ | |
__pyx_tp_dealloc_memoryview, /*tp_dealloc*/ | |
+#if PY_VERSION_HEX < 0x03090000 | |
0, /*tp_print*/ | |
+#endif | |
0, /*tp_getattr*/ | |
0, /*tp_setattr*/ | |
#if PY_MAJOR_VERSION < 3 | |
@@ -49814,7 +49830,9 @@ static PyTypeObject __pyx_type___pyx_memoryviewslice = | |
sizeof(struct __pyx_memoryviewslice_obj), /*tp_basicsize*/ | |
0, /*tp_itemsize*/ | |
__pyx_tp_dealloc__memoryviewslice, /*tp_dealloc*/ | |
+#if PY_VERSION_HEX < 0x03090000 | |
0, /*tp_print*/ | |
+#endif | |
0, /*tp_getattr*/ | |
0, /*tp_setattr*/ | |
#if PY_MAJOR_VERSION < 3 | |
@@ -50956,7 +50974,9 @@ static int __Pyx_modinit_type_init_code(void) { | |
__Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); | |
/*--- Type init code ---*/ | |
if (PyType_Ready(&__pyx_type_6symcxx_7_symcxx__Matrix) < 0) __PYX_ERR(0, 183, __pyx_L1_error) | |
+#if PY_VERSION_HEX < 0x03090000 | |
__pyx_type_6symcxx_7_symcxx__Matrix.tp_print = 0; | |
+#endif | |
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6symcxx_7_symcxx__Matrix.tp_dictoffset && __pyx_type_6symcxx_7_symcxx__Matrix.tp_getattro == PyObject_GenericGetAttr)) { | |
__pyx_type_6symcxx_7_symcxx__Matrix.tp_getattro = __Pyx_PyObject_GenericGetAttr; | |
} | |
@@ -50966,7 +50986,9 @@ static int __Pyx_modinit_type_init_code(void) { | |
__pyx_vtabptr_6symcxx_7_symcxx_PyNameSpace = &__pyx_vtable_6symcxx_7_symcxx_PyNameSpace; | |
__pyx_vtable_6symcxx_7_symcxx_PyNameSpace.rebuild = (struct __pyx_obj_6symcxx_7_symcxx__Matrix *(*)(struct __pyx_obj_6symcxx_7_symcxx_PyNameSpace *, PyObject *, struct __pyx_obj_6symcxx_7_symcxx__Matrix *, struct __pyx_opt_args_6symcxx_7_symcxx_11PyNameSpace_rebuild *__pyx_optional_args))__pyx_f_6symcxx_7_symcxx_11PyNameSpace_rebuild; | |
if (PyType_Ready(&__pyx_type_6symcxx_7_symcxx_PyNameSpace) < 0) __PYX_ERR(0, 359, __pyx_L1_error) | |
+#if PY_VERSION_HEX < 0x03090000 | |
__pyx_type_6symcxx_7_symcxx_PyNameSpace.tp_print = 0; | |
+#endif | |
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6symcxx_7_symcxx_PyNameSpace.tp_dictoffset && __pyx_type_6symcxx_7_symcxx_PyNameSpace.tp_getattro == PyObject_GenericGetAttr)) { | |
__pyx_type_6symcxx_7_symcxx_PyNameSpace.tp_getattro = __Pyx_PyObject_GenericGetAttr; | |
} | |
@@ -50975,19 +50997,25 @@ static int __Pyx_modinit_type_init_code(void) { | |
if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6symcxx_7_symcxx_PyNameSpace) < 0) __PYX_ERR(0, 359, __pyx_L1_error) | |
__pyx_ptype_6symcxx_7_symcxx_PyNameSpace = &__pyx_type_6symcxx_7_symcxx_PyNameSpace; | |
if (PyType_Ready(&__pyx_type_6symcxx_7_symcxx___pyx_scope_struct____get__) < 0) __PYX_ERR(0, 205, __pyx_L1_error) | |
+#if PY_VERSION_HEX < 0x03090000 | |
__pyx_type_6symcxx_7_symcxx___pyx_scope_struct____get__.tp_print = 0; | |
+#endif | |
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6symcxx_7_symcxx___pyx_scope_struct____get__.tp_dictoffset && __pyx_type_6symcxx_7_symcxx___pyx_scope_struct____get__.tp_getattro == PyObject_GenericGetAttr)) { | |
__pyx_type_6symcxx_7_symcxx___pyx_scope_struct____get__.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; | |
} | |
__pyx_ptype_6symcxx_7_symcxx___pyx_scope_struct____get__ = &__pyx_type_6symcxx_7_symcxx___pyx_scope_struct____get__; | |
if (PyType_Ready(&__pyx_type_6symcxx_7_symcxx___pyx_scope_struct_1_Matrix) < 0) __PYX_ERR(0, 798, __pyx_L1_error) | |
+#if PY_VERSION_HEX < 0x03090000 | |
__pyx_type_6symcxx_7_symcxx___pyx_scope_struct_1_Matrix.tp_print = 0; | |
+#endif | |
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6symcxx_7_symcxx___pyx_scope_struct_1_Matrix.tp_dictoffset && __pyx_type_6symcxx_7_symcxx___pyx_scope_struct_1_Matrix.tp_getattro == PyObject_GenericGetAttr)) { | |
__pyx_type_6symcxx_7_symcxx___pyx_scope_struct_1_Matrix.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; | |
} | |
__pyx_ptype_6symcxx_7_symcxx___pyx_scope_struct_1_Matrix = &__pyx_type_6symcxx_7_symcxx___pyx_scope_struct_1_Matrix; | |
if (PyType_Ready(&__pyx_type_6symcxx_7_symcxx___pyx_scope_struct_2_lambdify) < 0) __PYX_ERR(0, 847, __pyx_L1_error) | |
+#if PY_VERSION_HEX < 0x03090000 | |
__pyx_type_6symcxx_7_symcxx___pyx_scope_struct_2_lambdify.tp_print = 0; | |
+#endif | |
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_6symcxx_7_symcxx___pyx_scope_struct_2_lambdify.tp_dictoffset && __pyx_type_6symcxx_7_symcxx___pyx_scope_struct_2_lambdify.tp_getattro == PyObject_GenericGetAttr)) { | |
__pyx_type_6symcxx_7_symcxx___pyx_scope_struct_2_lambdify.tp_getattro = __Pyx_PyObject_GenericGetAttrNoDict; | |
} | |
@@ -50995,12 +51023,16 @@ static int __Pyx_modinit_type_init_code(void) { | |
__pyx_vtabptr_array = &__pyx_vtable_array; | |
__pyx_vtable_array.get_memview = (PyObject *(*)(struct __pyx_array_obj *))__pyx_array_get_memview; | |
if (PyType_Ready(&__pyx_type___pyx_array) < 0) __PYX_ERR(1, 104, __pyx_L1_error) | |
+#if PY_VERSION_HEX < 0x03090000 | |
__pyx_type___pyx_array.tp_print = 0; | |
+#endif | |
if (__Pyx_SetVtable(__pyx_type___pyx_array.tp_dict, __pyx_vtabptr_array) < 0) __PYX_ERR(1, 104, __pyx_L1_error) | |
if (__Pyx_setup_reduce((PyObject*)&__pyx_type___pyx_array) < 0) __PYX_ERR(1, 104, __pyx_L1_error) | |
__pyx_array_type = &__pyx_type___pyx_array; | |
if (PyType_Ready(&__pyx_type___pyx_MemviewEnum) < 0) __PYX_ERR(1, 278, __pyx_L1_error) | |
+#if PY_VERSION_HEX < 0x03090000 | |
__pyx_type___pyx_MemviewEnum.tp_print = 0; | |
+#endif | |
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_MemviewEnum.tp_dictoffset && __pyx_type___pyx_MemviewEnum.tp_getattro == PyObject_GenericGetAttr)) { | |
__pyx_type___pyx_MemviewEnum.tp_getattro = __Pyx_PyObject_GenericGetAttr; | |
} | |
@@ -51015,7 +51047,9 @@ static int __Pyx_modinit_type_init_code(void) { | |
__pyx_vtable_memoryview.convert_item_to_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *))__pyx_memoryview_convert_item_to_object; | |
__pyx_vtable_memoryview.assign_item_from_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *, PyObject *))__pyx_memoryview_assign_item_from_object; | |
if (PyType_Ready(&__pyx_type___pyx_memoryview) < 0) __PYX_ERR(1, 329, __pyx_L1_error) | |
+#if PY_VERSION_HEX < 0x03090000 | |
__pyx_type___pyx_memoryview.tp_print = 0; | |
+#endif | |
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryview.tp_dictoffset && __pyx_type___pyx_memoryview.tp_getattro == PyObject_GenericGetAttr)) { | |
__pyx_type___pyx_memoryview.tp_getattro = __Pyx_PyObject_GenericGetAttr; | |
} | |
@@ -51028,7 +51062,9 @@ static int __Pyx_modinit_type_init_code(void) { | |
__pyx_vtable__memoryviewslice.__pyx_base.assign_item_from_object = (PyObject *(*)(struct __pyx_memoryview_obj *, char *, PyObject *))__pyx_memoryviewslice_assign_item_from_object; | |
__pyx_type___pyx_memoryviewslice.tp_base = __pyx_memoryview_type; | |
if (PyType_Ready(&__pyx_type___pyx_memoryviewslice) < 0) __PYX_ERR(1, 960, __pyx_L1_error) | |
+#if PY_VERSION_HEX < 0x03090000 | |
__pyx_type___pyx_memoryviewslice.tp_print = 0; | |
+#endif | |
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type___pyx_memoryviewslice.tp_dictoffset && __pyx_type___pyx_memoryviewslice.tp_getattro == PyObject_GenericGetAttr)) { | |
__pyx_type___pyx_memoryviewslice.tp_getattro = __Pyx_PyObject_GenericGetAttr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment