mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Closes #15512: Correct __sizeof__ support for parser
This commit is contained in:
parent
1fa9f7b3d1
commit
3e3192d8f7
5 changed files with 103 additions and 4 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