mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Rearrange the members of struct _node to put shorter fields towards
the end, in the hope of saving some bytes on 64-bit machines. (Too bad n_nchildren can't be made an unsigned short, but test/test_longexp.py specifically tests for more than 2**16 subtrees at one level.) I don't expect any binary compatibility issues here, unless someone has an old binary of parsermodule.so saved away.
This commit is contained in:
parent
33931ef1a6
commit
73d66925d9
1 changed files with 2 additions and 2 deletions
|
|
@ -8,11 +8,11 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
typedef struct _node {
|
||||
short n_type;
|
||||
char *n_str;
|
||||
struct _node *n_child;
|
||||
int n_lineno;
|
||||
int n_nchildren;
|
||||
struct _node *n_child;
|
||||
short n_type;
|
||||
} node;
|
||||
|
||||
PyAPI_FUNC(node *) PyNode_New(int type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue