mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-116417: Add _testlimitedcapi C extension (#116419)
Add a new C extension "_testlimitedcapi" which is only built with the limited C API. Move heaptype_relative.c and vectorcall_limited.c from Modules/_testcapi/ to Modules/_testlimitedcapi/. * configure: add _testlimitedcapi test extension. * Update generate_stdlib_module_names.py. * Update make check-c-globals. Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
d9ccde28c4
commit
d9bcdda39c
23 changed files with 394 additions and 109 deletions
45
configure
generated
vendored
45
configure
generated
vendored
|
|
@ -671,6 +671,8 @@ MODULE__TESTBUFFER_FALSE
|
|||
MODULE__TESTBUFFER_TRUE
|
||||
MODULE__TESTINTERNALCAPI_FALSE
|
||||
MODULE__TESTINTERNALCAPI_TRUE
|
||||
MODULE__TESTLIMITEDCAPI_FALSE
|
||||
MODULE__TESTLIMITEDCAPI_TRUE
|
||||
MODULE__TESTCLINIC_LIMITED_FALSE
|
||||
MODULE__TESTCLINIC_LIMITED_TRUE
|
||||
MODULE__TESTCLINIC_FALSE
|
||||
|
|
@ -27301,6 +27303,7 @@ SRCDIRS="\
|
|||
Modules/_sre \
|
||||
Modules/_testcapi \
|
||||
Modules/_testinternalcapi \
|
||||
Modules/_testlimitedcapi \
|
||||
Modules/_xxtestfuzz \
|
||||
Modules/cjkcodecs \
|
||||
Modules/expat \
|
||||
|
|
@ -30771,6 +30774,44 @@ fi
|
|||
printf "%s\n" "$py_cv_module__testclinic_limited" >&6; }
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testlimitedcapi" >&5
|
||||
printf %s "checking for stdlib extension module _testlimitedcapi... " >&6; }
|
||||
if test "$py_cv_module__testlimitedcapi" != "n/a"
|
||||
then :
|
||||
|
||||
if test "$TEST_MODULES" = yes
|
||||
then :
|
||||
if true
|
||||
then :
|
||||
py_cv_module__testlimitedcapi=yes
|
||||
else $as_nop
|
||||
py_cv_module__testlimitedcapi=missing
|
||||
fi
|
||||
else $as_nop
|
||||
py_cv_module__testlimitedcapi=disabled
|
||||
fi
|
||||
|
||||
fi
|
||||
as_fn_append MODULE_BLOCK "MODULE__TESTLIMITEDCAPI_STATE=$py_cv_module__testlimitedcapi$as_nl"
|
||||
if test "x$py_cv_module__testlimitedcapi" = xyes
|
||||
then :
|
||||
|
||||
|
||||
|
||||
|
||||
fi
|
||||
if test "$py_cv_module__testlimitedcapi" = yes; then
|
||||
MODULE__TESTLIMITEDCAPI_TRUE=
|
||||
MODULE__TESTLIMITEDCAPI_FALSE='#'
|
||||
else
|
||||
MODULE__TESTLIMITEDCAPI_TRUE='#'
|
||||
MODULE__TESTLIMITEDCAPI_FALSE=
|
||||
fi
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testlimitedcapi" >&5
|
||||
printf "%s\n" "$py_cv_module__testlimitedcapi" >&6; }
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5
|
||||
printf %s "checking for stdlib extension module _testinternalcapi... " >&6; }
|
||||
if test "$py_cv_module__testinternalcapi" != "n/a"
|
||||
|
|
@ -31557,6 +31598,10 @@ if test -z "${MODULE__TESTCLINIC_LIMITED_TRUE}" && test -z "${MODULE__TESTCLINIC
|
|||
as_fn_error $? "conditional \"MODULE__TESTCLINIC_LIMITED\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
fi
|
||||
if test -z "${MODULE__TESTLIMITEDCAPI_TRUE}" && test -z "${MODULE__TESTLIMITEDCAPI_FALSE}"; then
|
||||
as_fn_error $? "conditional \"MODULE__TESTLIMITEDCAPI\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
fi
|
||||
if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then
|
||||
as_fn_error $? "conditional \"MODULE__TESTINTERNALCAPI\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue