[Stackless-checkins] CVS: slpdev/src/2.3/dev/Stackless/core extract_slp_methods.py, 1.1, 1.2 stackless_methods.h, 1.3, 1.4
Christian Tismer
tismer at centera.de
Sat Jul 10 02:54:26 CEST 2004
Update of /home/cvs/slpdev/src/2.3/dev/Stackless/core
In directory centera.de:/tmp/cvs-serv23770/Stackless/core
Modified Files:
extract_slp_methods.py stackless_methods.h
Log Message:
forgot to update these...
Index: extract_slp_methods.py
===================================================================
RCS file: /home/cvs/slpdev/src/2.3/dev/Stackless/core/extract_slp_methods.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** extract_slp_methods.py 2 Jun 2004 23:14:53 -0000 1.1
--- extract_slp_methods.py 10 Jul 2004 00:54:22 -0000 1.2
***************
*** 45,53 ****
typedef struct {
! PyTypeObject *type;
size_t offset;
} _stackless_method;
#define MFLAG_OFS(meth) offsetof(PyTypeObject, slpflags.meth)
static _stackless_method _stackless_methtable[] = {\
--- 45,55 ----
typedef struct {
! void *type;
size_t offset;
} _stackless_method;
+ #define MFLAG_IND 0x8000
#define MFLAG_OFS(meth) offsetof(PyTypeObject, slpflags.meth)
+ #define MFLAG_OFS_IND(meth) MFLAG_OFS(meth) + MFLAG_IND
static _stackless_method _stackless_methtable[] = {\
***************
*** 66,71 ****
tabs += "\t"
lng += 8
! print >> f, "\t{%s,%sMFLAG_OFS(%s)}," % \
! (typ.strip(), tabs, meth.strip())
print >> f, "\t{0, 0} /* sentinel */"
print >> f, "};"
--- 68,77 ----
tabs += "\t"
lng += 8
! ind = ""
! if typ[0] != "&":
! typ = "&" + typ
! ind = "_IND"
! print >> f, "\t{%s,%sMFLAG_OFS%s(%s)}," % \
! (typ, tabs, ind, meth)
print >> f, "\t{0, 0} /* sentinel */"
print >> f, "};"
Index: stackless_methods.h
===================================================================
RCS file: /home/cvs/slpdev/src/2.3/dev/Stackless/core/stackless_methods.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** stackless_methods.h 10 Jul 2004 00:45:25 -0000 1.3
--- stackless_methods.h 10 Jul 2004 00:54:22 -0000 1.4
***************
*** 6,14 ****
typedef struct {
! PyTypeObject *type;
size_t offset;
} _stackless_method;
#define MFLAG_OFS(meth) offsetof(PyTypeObject, slpflags.meth)
static _stackless_method _stackless_methtable[] = {
--- 6,16 ----
typedef struct {
! void *type;
size_t offset;
} _stackless_method;
+ #define MFLAG_IND 0x8000
#define MFLAG_OFS(meth) offsetof(PyTypeObject, slpflags.meth)
+ #define MFLAG_OFS_IND(meth) MFLAG_OFS(meth) + MFLAG_IND
static _stackless_method _stackless_methtable[] = {
***************
*** 27,31 ****
{&PyGenerator_Type, MFLAG_OFS(tp_iternext)},
/* from channelobject.c */
! {PyChannel_TypePtr, MFLAG_OFS(tp_iternext)},
{0, 0} /* sentinel */
};
--- 29,33 ----
{&PyGenerator_Type, MFLAG_OFS(tp_iternext)},
/* from channelobject.c */
! {&PyChannel_TypePtr, MFLAG_OFS_IND(tp_iternext)},
{0, 0} /* sentinel */
};
_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins
More information about the Stackless-checkins
mailing list