]> granicus.if.org Git - python/commitdiff
Make frames a PyVarObject instead of a PyObject.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Wed, 29 Aug 2001 23:45:25 +0000 (23:45 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Wed, 29 Aug 2001 23:45:25 +0000 (23:45 +0000)
Include/frameobject.h

index e2bf7a1ef609674ccc330c5bb09b8ff5e1af05d2..ac02f92386d90003fbea017ed998ef2d0f7530fc 100644 (file)
@@ -14,7 +14,7 @@ typedef struct {
 } PyTryBlock;
 
 typedef struct _frame {
-    PyObject_HEAD
+    PyObject_VAR_HEAD
     struct _frame *f_back;     /* previous frame, or NULL */
     PyCodeObject *f_code;      /* code segment */
     PyObject *f_builtins;      /* builtin symbol table (PyDictObject) */
@@ -34,7 +34,6 @@ typedef struct _frame {
                                   in this scope */
     int f_iblock;              /* index in f_blockstack */
     PyTryBlock f_blockstack[CO_MAXBLOCKS]; /* for try and loop blocks */
-    int f_size;                 /* size of localsplus */
     int f_nlocals;             /* number of locals */
     int f_ncells;
     int f_nfreevars;