mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
gh-108494: Argument Clinic: fix support of Limited C API (GH-108536)
This commit is contained in:
parent
d90973340b
commit
bc5356bb5d
10 changed files with 147 additions and 114 deletions
|
@ -108,6 +108,7 @@ class cache_struct_converter(CConverter):
|
|||
type = 'PyStructObject *'
|
||||
converter = 'cache_struct_converter'
|
||||
c_default = "NULL"
|
||||
broken_limited_capi = True
|
||||
|
||||
def parse_arg(self, argname, displayname):
|
||||
return """
|
||||
|
@ -120,7 +121,7 @@ class cache_struct_converter(CConverter):
|
|||
def cleanup(self):
|
||||
return "Py_XDECREF(%s);\n" % self.name
|
||||
[python start generated code]*/
|
||||
/*[python end generated code: output=da39a3ee5e6b4b0d input=d6746621c2fb1a7d]*/
|
||||
/*[python end generated code: output=da39a3ee5e6b4b0d input=14e83804f599ed8f]*/
|
||||
|
||||
static int cache_struct_converter(PyObject *, PyObject *, PyStructObject **);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue