summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes_test.c4
-rw-r--r--Modules/_multiprocessing/posixshmem.c4
-rw-r--r--Modules/_scproxy.c4
-rw-r--r--Modules/_stat.c4
-rw-r--r--Modules/_sysconfig.c4
-rw-r--r--Modules/_testcapi/heaptype_relative.c4
-rw-r--r--Modules/_testcapi/vectorcall_limited.c4
-rw-r--r--Modules/_testclinic_limited.c4
-rw-r--r--Modules/_testimportmultiple.c4
-rw-r--r--Modules/_testinternalcapi/test_critical_sections.c4
-rw-r--r--Modules/_uuidmodule.c4
-rw-r--r--Modules/errnomodule.c4
-rw-r--r--Modules/hashlib.h2
-rw-r--r--Modules/resource.c4
-rw-r--r--Modules/xxlimited.c4
-rw-r--r--Modules/xxlimited_35.c4
16 files changed, 31 insertions, 31 deletions
diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c
index 5869d8f..d33e6fc 100644
--- a/Modules/_ctypes/_ctypes_test.c
+++ b/Modules/_ctypes/_ctypes_test.c
@@ -1,8 +1,8 @@
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030c0000
#endif
diff --git a/Modules/_multiprocessing/posixshmem.c b/Modules/_multiprocessing/posixshmem.c
index cd08a9f..425ce10 100644
--- a/Modules/_multiprocessing/posixshmem.c
+++ b/Modules/_multiprocessing/posixshmem.c
@@ -2,9 +2,9 @@
posixshmem - A Python extension that provides shm_open() and shm_unlink()
*/
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030c0000
#endif
diff --git a/Modules/_scproxy.c b/Modules/_scproxy.c
index 9f7a65c..7920d2c 100644
--- a/Modules/_scproxy.c
+++ b/Modules/_scproxy.c
@@ -4,10 +4,10 @@
*/
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030c0000
#endif
diff --git a/Modules/_stat.c b/Modules/_stat.c
index 9e278d6..1ef1e97 100644
--- a/Modules/_stat.c
+++ b/Modules/_stat.c
@@ -12,10 +12,10 @@
*/
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
// Need limited C API version 3.13 for PyModule_Add() on Windows
#define Py_LIMITED_API 0x030d0000
#endif
diff --git a/Modules/_sysconfig.c b/Modules/_sysconfig.c
index 6f1cc16..2918913 100644
--- a/Modules/_sysconfig.c
+++ b/Modules/_sysconfig.c
@@ -57,12 +57,12 @@ _sysconfig_config_vars_impl(PyObject *module)
}
#endif
-#ifdef Py_NOGIL
+#ifdef Py_GIL_DISABLED
PyObject *py_nogil = _PyLong_GetOne();
#else
PyObject *py_nogil = _PyLong_GetZero();
#endif
- if (PyDict_SetItemString(config, "Py_NOGIL", py_nogil) < 0) {
+ if (PyDict_SetItemString(config, "Py_GIL_DISABLED", py_nogil) < 0) {
Py_DECREF(config);
return NULL;
}
diff --git a/Modules/_testcapi/heaptype_relative.c b/Modules/_testcapi/heaptype_relative.c
index b58d26c..52286f0 100644
--- a/Modules/_testcapi/heaptype_relative.c
+++ b/Modules/_testcapi/heaptype_relative.c
@@ -1,8 +1,8 @@
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
#define Py_LIMITED_API 0x030c0000 // 3.12
#endif
diff --git a/Modules/_testcapi/vectorcall_limited.c b/Modules/_testcapi/vectorcall_limited.c
index 857cb30..0a650f1 100644
--- a/Modules/_testcapi/vectorcall_limited.c
+++ b/Modules/_testcapi/vectorcall_limited.c
@@ -1,10 +1,10 @@
/* Test Vectorcall in the limited API */
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
#define Py_LIMITED_API 0x030c0000 // 3.12
#endif
diff --git a/Modules/_testclinic_limited.c b/Modules/_testclinic_limited.c
index c5d07e1..61bc841 100644
--- a/Modules/_testclinic_limited.c
+++ b/Modules/_testclinic_limited.c
@@ -5,10 +5,10 @@
#undef Py_BUILD_CORE_BUILTIN
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
// For now, only limited C API 3.13 is supported
#define Py_LIMITED_API 0x030d0000
#endif
diff --git a/Modules/_testimportmultiple.c b/Modules/_testimportmultiple.c
index 99d48b6..245e81b 100644
--- a/Modules/_testimportmultiple.c
+++ b/Modules/_testimportmultiple.c
@@ -5,10 +5,10 @@
*/
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
#define Py_LIMITED_API 0x03020000
#endif
diff --git a/Modules/_testinternalcapi/test_critical_sections.c b/Modules/_testinternalcapi/test_critical_sections.c
index 9392096..1f7e311 100644
--- a/Modules/_testinternalcapi/test_critical_sections.c
+++ b/Modules/_testinternalcapi/test_critical_sections.c
@@ -6,7 +6,7 @@
#include "pycore_critical_section.h"
-#ifdef Py_NOGIL
+#ifdef Py_GIL_DISABLED
#define assert_nogil assert
#define assert_gil(x)
#else
@@ -25,7 +25,7 @@ test_critical_sections(PyObject *self, PyObject *Py_UNUSED(args))
assert(d2 != NULL);
// Beginning a critical section should lock the associated object and
- // push the critical section onto the thread's stack (in Py_NOGIL builds).
+ // push the critical section onto the thread's stack (in Py_GIL_DISABLED builds).
Py_BEGIN_CRITICAL_SECTION(d1);
assert_nogil(PyMutex_IsLocked(&d1->ob_mutex));
assert_nogil(_PyCriticalSection_IsActive(PyThreadState_GET()->critical_section));
diff --git a/Modules/_uuidmodule.c b/Modules/_uuidmodule.c
index 1d71605..d8b211c 100644
--- a/Modules/_uuidmodule.c
+++ b/Modules/_uuidmodule.c
@@ -4,10 +4,10 @@
*/
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030c0000
#endif
diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c
index 1e2c55a..8287edb 100644
--- a/Modules/errnomodule.c
+++ b/Modules/errnomodule.c
@@ -1,10 +1,10 @@
/* Errno module */
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030c0000
#endif
diff --git a/Modules/hashlib.h b/Modules/hashlib.h
index 25b2aaa..7105e68 100644
--- a/Modules/hashlib.h
+++ b/Modules/hashlib.h
@@ -58,7 +58,7 @@
PyMutex_Unlock(&(obj)->mutex); \
}
-#ifdef Py_NOGIL
+#ifdef Py_GIL_DISABLED
#define HASHLIB_INIT_MUTEX(obj) \
do { \
(obj)->mutex = (PyMutex){0}; \
diff --git a/Modules/resource.c b/Modules/resource.c
index 87c4460..a4b8f64 100644
--- a/Modules/resource.c
+++ b/Modules/resource.c
@@ -1,8 +1,8 @@
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
// Need limited C API version 3.13 for PySys_Audit()
#define Py_LIMITED_API 0x030d0000
#endif
diff --git a/Modules/xxlimited.c b/Modules/xxlimited.c
index 21d7e9b..19f6121 100644
--- a/Modules/xxlimited.c
+++ b/Modules/xxlimited.c
@@ -63,10 +63,10 @@
*/
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
// Need limited C API version 3.12 for Py_MOD_PER_INTERPRETER_GIL_SUPPORTED
#define Py_LIMITED_API 0x030c0000
#endif
diff --git a/Modules/xxlimited_35.c b/Modules/xxlimited_35.c
index 04673ea..867820a 100644
--- a/Modules/xxlimited_35.c
+++ b/Modules/xxlimited_35.c
@@ -6,10 +6,10 @@
*/
#ifndef _MSC_VER
-#include "pyconfig.h" // Py_NOGIL
+#include "pyconfig.h" // Py_GIL_DISABLED
#endif
-#ifndef Py_NOGIL
+#ifndef Py_GIL_DISABLED
#define Py_LIMITED_API 0x03050000
#endif