[pywin32-checkins] pywin32/com/win32com/src/include PyRecord.h, NONE, 1.1.2.2 PythonCOM.h, 1.27.2.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-12-19 02:34:03
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/include In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16356/win32com/src/include Modified Files: Tag: py3k PythonCOM.h Added Files: Tag: py3k PyRecord.h Log Message: merge rich-compare, PyRecord and other misc changes from trunk Index: PythonCOM.h =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/include/PythonCOM.h,v retrieving revision 1.27.2.3 retrieving revision 1.27.2.4 diff -C2 -d -r1.27.2.3 -r1.27.2.4 *** PythonCOM.h 2 Nov 2008 12:43:47 -0000 1.27.2.3 --- PythonCOM.h 19 Dec 2008 02:33:56 -0000 1.27.2.4 *************** *** 220,223 **** --- 220,225 ---- static int setattro(PyObject *op, PyObject *obname, PyObject *v); static int cmp(PyObject *ob1, PyObject *ob2); + static PyObject *richcmp(PyObject *ob1, PyObject *ob2, int op); + }; --- NEW FILE: PyRecord.h --- #ifndef __PYRECORD_H__ #define __PYRECORD_H__ class PyRecordBuffer; // @object PyRecord|An object that represents a COM User Defined Type. // @comm Once created or obtained from other methods, you can simply // get and set attributes. class PyRecord : public PyObject { public: PyRecord(IRecordInfo *ri, PVOID data, PyRecordBuffer *owner); ~PyRecord(); static void tp_dealloc(PyObject *ob); static PyObject *getattro(PyObject *self, PyObject *obname); static int setattro(PyObject *self, PyObject *obname, PyObject *v); static PyObject *tp_repr(PyObject *self); static PyObject *tp_richcompare(PyObject *ob1, PyObject *ob2, int op); static struct PyMethodDef methods[]; static PyTypeObject Type; IRecordInfo *pri; void *pdata; PyRecordBuffer *owner; }; #endif // __PYRECORD_H__ |