Skip to content

Commit 5ba260b

Browse files
committed
gh-111903: Update AC to support "pycore_critical_section.h" header
1 parent 1a969b4 commit 5ba260b

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

Modules/_functoolsmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include "Python.h"
22
#include "pycore_call.h" // _PyObject_CallNoArgs()
3-
#include "pycore_critical_section.h" // Py_BEGIN_CRITICAL_SECTION
43
#include "pycore_dict.h" // _PyDict_Pop_KnownHash()
54
#include "pycore_long.h" // _PyLong_GetZero()
65
#include "pycore_moduleobject.h" // _PyModule_GetState()

Modules/_io/bufferedio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "Python.h"
1111
#include "pycore_bytesobject.h" // _PyBytes_Join()
1212
#include "pycore_call.h" // _PyObject_CallNoArgs()
13-
#include "pycore_critical_section.h" // Py_BEGIN_CRITICAL_SECTION()
1413
#include "pycore_object.h" // _PyObject_GC_UNTRACK()
1514
#include "pycore_pyerrors.h" // _Py_FatalErrorFormat()
1615
#include "pycore_pylifecycle.h" // _Py_IsInterpreterFinalizing()

Modules/_io/clinic/bufferedio.c.h

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/clinic/_functoolsmodule.c.h

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/clinic/clinic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5306,6 +5306,8 @@ def at_critical_section(self, *args: str) -> None:
53065306
fail("Up to 2 critical section variables are supported")
53075307
self.target_critical_section.extend(args)
53085308
self.critical_section = True
5309+
if self.critical_section:
5310+
clinic.add_include('pycore_critical_section.h', 'Py_BEGIN_CRITICAL_SECTION()')
53095311

53105312
def at_staticmethod(self) -> None:
53115313
if self.kind is not CALLABLE:

0 commit comments

Comments
 (0)