Mercurial > cpython-lru_cache-weakref
diff Include/node.h @ 78390:aceb975c4832 2.7
Closes #15512: Correct __sizeof__ support for parser
| author | Jesus Cea <jcea@jcea.es> |
|---|---|
| date | Fri, 03 Aug 2012 14:25:53 +0200 |
| parents | 57322cb2ca11 |
| children | f7248550059c |
line wrap: on
line diff
--- a/Include/node.h Thu Aug 02 20:37:12 2012 +0200 +++ b/Include/node.h Fri Aug 03 14:25:53 2012 +0200 @@ -20,6 +20,9 @@ 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)
