mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
"Compiling" version
This commit is contained in:
parent
226d79eb4a
commit
3f5da24ea3
72 changed files with 3363 additions and 2061 deletions
|
@ -14,6 +14,11 @@ inserted in the tuple. Similarly, gettupleitem does not increment the
|
|||
returned item's reference count.
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
OB_VARHEAD
|
||||
object *ob_item[1];
|
||||
} tupleobject;
|
||||
|
||||
extern typeobject Tupletype;
|
||||
|
||||
#define is_tupleobject(op) ((op)->ob_type == &Tupletype)
|
||||
|
@ -22,3 +27,6 @@ extern object *newtupleobject PROTO((int size));
|
|||
extern int gettuplesize PROTO((object *));
|
||||
extern object *gettupleitem PROTO((object *, int));
|
||||
extern int settupleitem PROTO((object *, int, object *));
|
||||
|
||||
/* Macro, trading safety for speed */
|
||||
#define GETTUPLEITEM(op, i) ((op)->ob_item[i])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue