5 asdl_seq_new(int size
, PyArena
*arena
)
8 size_t n
= sizeof(asdl_seq
) +
9 (size
? (sizeof(void *) * (size
- 1)) : 0);
11 seq
= (asdl_seq
*)PyArena_Malloc(arena
, n
);
22 asdl_int_seq_new(int size
, PyArena
*arena
)
24 asdl_int_seq
*seq
= NULL
;
25 size_t n
= sizeof(asdl_seq
) +
26 (size
? (sizeof(int) * (size
- 1)) : 0);
28 seq
= (asdl_int_seq
*)PyArena_Malloc(arena
, n
);