diff options
| author | Jesus Cea <jcea@jcea.es> | 2012-08-03 14:28:37 +0200 |
|---|---|---|
| committer | Jesus Cea <jcea@jcea.es> | 2012-08-03 14:28:37 +0200 |
| commit | e9c5318967e1e62e940b72cd47502a1a3b559b95 (patch) | |
| tree | 34c525b3471a0d8f9ae478c4e4e78142f9081ca4 /Include/node.h | |
| parent | a9a53c7dc055b54133f2dee33f1834d7566de842 (diff) | |
| download | cpython-git-e9c5318967e1e62e940b72cd47502a1a3b559b95.tar.gz | |
Closes #15512: Correct __sizeof__ support for parser
Diffstat (limited to 'Include/node.h')
| -rw-r--r-- | Include/node.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/node.h b/Include/node.h index e23e709fff..9f6760c294 100644 --- a/Include/node.h +++ b/Include/node.h @@ -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) |
