[Python-checkins] python/dist/src/Include frameobject.h,2.34,2.35

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Sat, 13 Jul 2002 17:27:28 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv28419/Include

Modified Files:
	frameobject.h 
Log Message:
SF patch # 580411, move frame macros from frameobject.h into ceval.c
remove unused macros
use co alias instead of f->f_code in macros


Index: frameobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/frameobject.h,v
retrieving revision 2.34
retrieving revision 2.35
diff -C2 -d -r2.34 -r2.35
*** frameobject.h	29 Aug 2001 23:45:25 -0000	2.34
--- frameobject.h	14 Jul 2002 00:27:25 -0000	2.35
***************
*** 55,78 ****
  /* The rest of the interface is specific for frame objects */
  
- /* Tuple access macros */
- 
- #ifndef Py_DEBUG
- #define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i))
- #define GETITEMNAME(v, i) \
- 	PyString_AS_STRING((PyStringObject *)GETITEM((v), (i)))
- #else
- #define GETITEM(v, i) PyTuple_GetItem((v), (i))
- #define GETITEMNAME(v, i) PyString_AsString(GETITEM(v, i))
- #endif
- 
- #define GETUSTRINGVALUE(s) ((unsigned char *)PyString_AS_STRING(s))
- 
- /* Code access macros */
- 
- #define Getconst(f, i)	(GETITEM((f)->f_code->co_consts, (i)))
- #define Getname(f, i)	(GETITEMNAME((f)->f_code->co_names, (i)))
- #define Getnamev(f, i)	(GETITEM((f)->f_code->co_names, (i)))
- 
- 
  /* Block management functions */
  
--- 55,58 ----