Skip to content

Commit 65a4548

Browse files
committed
gh-107603: AC only includes pycore_gc.h if needed
Argument Clinic now only includes pycore_gc.h if PyGC_Head is needed, and only includes pycore_runtime.h if _Py_ID() is needed. Add Py_ARGUMENT_CLINIC_AVOID_INTERNAL_CAPI macro to opt-out for the internal C API in Argument Clinic. The following extensions avoids the internal C API by defining the macro Py_ARGUMENT_CLINIC_AVOID_INTERNAL_CAPI: * Modules/_csv.c * Modules/_multiprocessing/posixshmem.c * Modules/_testcapi/exceptions.c * Modules/grpmodule.c * Modules/syslogmodule.c
1 parent 059bd4d commit 65a4548

File tree

140 files changed

+400
-3768
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+400
-3768
lines changed

Include/internal/pycore_global_objects_fini_generated.h

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_global_strings.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,6 @@ struct _Py_global_strings {
412412
STRUCT_FOR_ID(extend)
413413
STRUCT_FOR_ID(extra_tokens)
414414
STRUCT_FOR_ID(f)
415-
STRUCT_FOR_ID(facility)
416415
STRUCT_FOR_ID(factory)
417416
STRUCT_FOR_ID(false)
418417
STRUCT_FOR_ID(family)
@@ -465,7 +464,6 @@ struct _Py_global_strings {
465464
STRUCT_FOR_ID(hi)
466465
STRUCT_FOR_ID(hook)
467466
STRUCT_FOR_ID(id)
468-
STRUCT_FOR_ID(ident)
469467
STRUCT_FOR_ID(ignore)
470468
STRUCT_FOR_ID(imag)
471469
STRUCT_FOR_ID(importlib)
@@ -528,7 +526,6 @@ struct _Py_global_strings {
528526
STRUCT_FOR_ID(lo)
529527
STRUCT_FOR_ID(locale)
530528
STRUCT_FOR_ID(locals)
531-
STRUCT_FOR_ID(logoption)
532529
STRUCT_FOR_ID(loop)
533530
STRUCT_FOR_ID(mapping)
534531
STRUCT_FOR_ID(match)
@@ -564,7 +561,6 @@ struct _Py_global_strings {
564561
STRUCT_FOR_ID(narg)
565562
STRUCT_FOR_ID(ndigits)
566563
STRUCT_FOR_ID(new_file_name)
567-
STRUCT_FOR_ID(new_limit)
568564
STRUCT_FOR_ID(newline)
569565
STRUCT_FOR_ID(newlines)
570566
STRUCT_FOR_ID(next)

Include/internal/pycore_runtime_init_generated.h

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_unicodeobject_generated.h

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)