mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-84436: Immortalize in _PyStructSequence_InitBuiltinWithFlags() (gh-104054)
This also does some cleanup.
This commit is contained in:
parent
d448fcb032
commit
59bc36aacd
8 changed files with 74 additions and 59 deletions
|
|
@ -15,7 +15,7 @@ PyAPI_FUNC(PyTypeObject *) _PyStructSequence_NewType(
|
|||
PyStructSequence_Desc *desc,
|
||||
unsigned long tp_flags);
|
||||
|
||||
PyAPI_FUNC(int) _PyStructSequence_InitBuiltinWithFlags(
|
||||
extern int _PyStructSequence_InitBuiltinWithFlags(
|
||||
PyTypeObject *type,
|
||||
PyStructSequence_Desc *desc,
|
||||
unsigned long tp_flags);
|
||||
|
|
@ -27,7 +27,7 @@ _PyStructSequence_InitBuiltin(PyTypeObject *type,
|
|||
return _PyStructSequence_InitBuiltinWithFlags(type, desc, 0);
|
||||
}
|
||||
|
||||
extern void _PyStructSequence_FiniType(PyTypeObject *type);
|
||||
extern void _PyStructSequence_FiniBuiltin(PyTypeObject *type);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue