mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Closes #15512: Correct __sizeof__ support for parser
This commit is contained in:
parent
a9a53c7dc0
commit
e9c5318967
5 changed files with 85 additions and 1 deletions
|
@ -20,6 +20,9 @@ PyAPI_FUNC(node *) PyNode_New(int type);
|
|||
PyAPI_FUNC(int) PyNode_AddChild(node *n, int type,
|
||||
char *str, int lineno, int col_offset);
|
||||
PyAPI_FUNC(void) PyNode_Free(node *n);
|
||||
#ifndef Py_LIMITED_API
|
||||
Py_ssize_t _PyNode_SizeOf(node *n);
|
||||
#endif
|
||||
|
||||
/* Node access functions */
|
||||
#define NCH(n) ((n)->n_nchildren)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue