Skip to content

Commit 0a4d64e

Browse files
corona10aisk
authored andcommitted
pythongh-111903: Update AC to support "pycore_critical_section.h" header (pythongh-112251)
1 parent 7146788 commit 0a4d64e

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

Modules/_functoolsmodule.c

-1
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

-1
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

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_io/clinic/textio.c.h

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_io/textio.c

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "Python.h"
1010
#include "pycore_call.h" // _PyObject_CallMethod()
1111
#include "pycore_codecs.h" // _PyCodecInfo_GetIncrementalDecoder()
12-
#include "pycore_critical_section.h" // Py_BEGIN_CRITICAL_SECTION()
1312
#include "pycore_fileutils.h" // _Py_GetLocaleEncoding()
1413
#include "pycore_interp.h" // PyInterpreterState.fs_codec
1514
#include "pycore_long.h" // _PyLong_GetZero()

Modules/clinic/_functoolsmodule.c.h

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/clinic/clinic.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,8 @@ def output_templates(
11111111
if include:
11121112
clinic.add_include(include.filename, include.reason,
11131113
condition=include.condition)
1114-
1114+
if f.critical_section:
1115+
clinic.add_include('pycore_critical_section.h', 'Py_BEGIN_CRITICAL_SECTION()')
11151116
has_option_groups = parameters and (parameters[0].group or parameters[-1].group)
11161117
simple_return = (f.return_converter.type == 'PyObject *'
11171118
and not f.critical_section)

0 commit comments

Comments
 (0)