[Python-checkins] CVS: python/dist/src/Python ceval.c,2.285,2.286

Jeremy Hylton jhylton@users.sourceforge.net
2001年10月17日 06:29:32 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv16146
Modified Files:
	ceval.c 
Log Message:
For debug build, check that the stack pointer never exceeds the stack size.
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.285
retrieving revision 2.286
diff -C2 -d -r2.285 -r2.286
*** ceval.c	2001年10月15日 20:51:38	2.285
--- ceval.c	2001年10月17日 13:29:30	2.286
***************
*** 543,547 ****
 
 #ifdef LLTRACE
! #define PUSH(v)		(void)(BASIC_PUSH(v), lltrace && prtrace(TOP(), "push"))
 #define POP()		((void)(lltrace && prtrace(TOP(), "pop")), BASIC_POP())
 #else
--- 543,549 ----
 
 #ifdef LLTRACE
! #define PUSH(v)		{ (void)(BASIC_PUSH(v), \
! lltrace && prtrace(TOP(), "push")); \
! assert(STACK_LEVEL() <= f->f_stacksize); }
 #define POP()		((void)(lltrace && prtrace(TOP(), "pop")), BASIC_POP())
 #else

AltStyle によって変換されたページ (->オリジナル) /