[Python-checkins] CVS: python/dist/src/Include frameobject.h,2.32,2.33
Tim Peters
tim_one@users.sourceforge.net
Fri, 22 Jun 2001 22:26:58 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv4915/python/dist/src/Include
Modified Files:
frameobject.h
Log Message:
PyFrameObject: rename f_stackbottom to f_stacktop, since it points to
the next free valuestack slot, not to the base (in America, stacks push
and pop at the top -- they mutate at the bottom in Australia <winK>).
eval_frame(): assert that f_stacktop isn't NULL upon entry.
frame_delloc(): avoid ordered pointer comparisons involving f_stacktop
when f_stacktop is NULL.
Index: frameobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/frameobject.h,v
retrieving revision 2.32
retrieving revision 2.33
diff -C2 -r2.32 -r2.33
*** frameobject.h 2001/06/18 22:08:13 2.32
--- frameobject.h 2001/06/23 05:26:56 2.33
***************
*** 22,27 ****
PyObject *f_locals; /* local symbol table (PyDictObject) */
PyObject **f_valuestack; /* points after the last local */
! PyObject **f_stackbottom; /* points to the last item on the stack if
! frame has yielded. */
PyObject *f_trace; /* Trace function */
PyObject *f_exc_type, *f_exc_value, *f_exc_traceback;
--- 22,29 ----
PyObject *f_locals; /* local symbol table (PyDictObject) */
PyObject **f_valuestack; /* points after the last local */
! /* Next free slot in f_valuestack. Frame creation sets to f_valuestack.
! Frame evaluation usually NULLs it, but a frame that yields sets it
! to the current stack top. */
! PyObject **f_stacktop;
PyObject *f_trace; /* Trace function */
PyObject *f_exc_type, *f_exc_value, *f_exc_traceback;