| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,9 @@ PyAPI_FUNC(PyObject *) PyList_New(Py_ssize_t size); | |||
| 29 | 29 | PyAPI_FUNC(Py_ssize_t) PyList_Size(PyObject *); | |
| 30 | 30 | ||
| 31 | 31 | PyAPI_FUNC(PyObject *) PyList_GetItem(PyObject *, Py_ssize_t); | |
| 32 | + #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000 | ||
| 32 | 33 | PyAPI_FUNC(PyObject *) PyList_GetItemRef(PyObject *, Py_ssize_t); | |
| 34 | + #endif | ||
| 33 | 35 | PyAPI_FUNC(int) PyList_SetItem(PyObject *, Py_ssize_t, PyObject *); | |
| 34 | 36 | PyAPI_FUNC(int) PyList_Insert(PyObject *, Py_ssize_t, PyObject *); | |
| 35 | 37 | PyAPI_FUNC(int) PyList_Append(PyObject *, PyObject *); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | // Need limited C API version 3.12 for PyType_FromMetaclass() | |
| 2 | 2 | #include "pyconfig.h" // Py_GIL_DISABLED | |
| 3 | - #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API ) | ||
| 3 | + #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API) | ||
| 4 | 4 | # define Py_LIMITED_API 0x030c0000 | |
| 5 | 5 | #endif | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,9 @@ | |||
| 1 | + // Need limited C API version 3.13 for PyList_GetItemRef() | ||
| 2 | + #include "pyconfig.h" // Py_GIL_DISABLED | ||
| 3 | + #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API) | ||
| 4 | + # define Py_LIMITED_API 0x030d0000 | ||
| 5 | + #endif | ||
| 6 | + | ||
| 1 | 7 | #include "parts.h" | |
| 2 | 8 | #include "util.h" | |
| 3 | 9 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | // Need limited C API version 3.13 for Py_GetConstant() | |
| 2 | 2 | #include "pyconfig.h" // Py_GIL_DISABLED | |
| 3 | - #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API ) | ||
| 3 | + #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API) | ||
| 4 | 4 | # define Py_LIMITED_API 0x030d0000 | |
| 5 | 5 | #endif | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ | |||
| 7 | 7 | #include "pyconfig.h" // Py_GIL_DISABLED | |
| 8 | 8 | ||
| 9 | 9 | // Use the limited C API | |
| 10 | - #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API ) | ||
| 10 | + #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API) | ||
| 11 | 11 | // need limited C API version 3.5 for PyModule_AddFunctions() | |
| 12 | 12 | # define Py_LIMITED_API 0x03050000 | |
| 13 | 13 | #endif | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 3 | // Need limited C API version 3.12 for PyObject_Vectorcall() | |
| 4 | 4 | #include "pyconfig.h" // Py_GIL_DISABLED | |
| 5 | - #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API ) | ||
| 5 | + #if !defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API) | ||
| 6 | 6 | # define Py_LIMITED_API 0x030c0000 | |
| 7 | 7 | #endif | |
| 8 | 8 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments