Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asciidtype/asciidtype/src/asciidtype_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PyInit__asciidtype_main(void)
if (_import_array() < 0) {
return NULL;
}
if (import_experimental_dtype_api(5) < 0) {
if (import_experimental_dtype_api(6) < 0) {
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion metadatadtype/metadatadtype/src/metadatadtype_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PyInit__metadatadtype_main(void)
if (_import_array() < 0) {
return NULL;
}
if (import_experimental_dtype_api(5) < 0) {
if (import_experimental_dtype_api(6) < 0) {
return NULL;
}

Expand Down
21 changes: 9 additions & 12 deletions mpfdtype/mpfdtype/src/mpfdtype_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@
#include "umath.h"
#include "terrible_hacks.h"


static struct PyModuleDef moduledef = {
PyModuleDef_HEAD_INIT,
.m_name = "mpfdtype_main",
.m_size = -1,
PyModuleDef_HEAD_INIT,
.m_name = "mpfdtype_main",
.m_size = -1,
};


/* Module initialization function */
PyMODINIT_FUNC PyInit__mpfdtype_main(void)
PyMODINIT_FUNC
PyInit__mpfdtype_main(void)
{
if (_import_array() < 0) {
return NULL;
}
if (import_experimental_dtype_api(5) < 0) {
if (import_experimental_dtype_api(6) < 0) {
return NULL;
}

Expand All @@ -36,17 +35,15 @@ PyMODINIT_FUNC PyInit__mpfdtype_main(void)
goto error;
}

if (PyModule_AddObject(m,
"MPFloat", (PyObject *)&MPFloat_Type) < 0) {
if (PyModule_AddObject(m, "MPFloat", (PyObject *)&MPFloat_Type) < 0) {
goto error;
}

if (init_mpf_dtype() < 0) {
goto error;
}

if (PyModule_AddObject(m,
"MPFDType", (PyObject *)&MPFDType) < 0) {
if (PyModule_AddObject(m, "MPFDType", (PyObject *)&MPFDType) < 0) {
goto error;
}

Expand All @@ -60,7 +57,7 @@ PyMODINIT_FUNC PyInit__mpfdtype_main(void)

return m;

error:
error:
Py_DECREF(m);
return NULL;
}
2 changes: 1 addition & 1 deletion quaddtype/quaddtype/src/quaddtype_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PyInit__quaddtype_main(void)
return NULL;

// Fail to init if the experimental DType API version 5 isn't supported
if (import_experimental_dtype_api(5) < 0) {
if (import_experimental_dtype_api(6) < 0) {
PyErr_SetString(PyExc_ImportError,
"Error encountered importing the experimental dtype API.");
return NULL;
Expand Down
2 changes: 1 addition & 1 deletion stringdtype/stringdtype/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PyInit__main(void)
if (_import_array() < 0) {
return NULL;
}
if (import_experimental_dtype_api(5) < 0) {
if (import_experimental_dtype_api(6) < 0) {
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion unytdtype/unytdtype/src/unytdtype_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ PyInit__unytdtype_main(void)
if (_import_array() < 0) {
return NULL;
}
if (import_experimental_dtype_api(5) < 0) {
if (import_experimental_dtype_api(6) < 0) {
return NULL;
}

Expand Down