Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19745/com/win32com/src/extensions
Modified Files:
Tag: AMD64
PyFUNCDESC.cpp PySTGMEDIUM.cpp PyTYPEATTR.cpp PyVARDESC.cpp
Log Message:
- Initial work on AMD64 support
Index: PyTYPEATTR.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyTYPEATTR.cpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** PyTYPEATTR.cpp 1 Sep 1999 23:03:33 -0000 1.1
--- PyTYPEATTR.cpp 21 Dec 2006 23:17:15 -0000 1.1.2.1
***************
*** 178,182 ****
// Sequence stuff to provide compatibility with tuples.
! /* static */ int PyTYPEATTR::getlength(PyObject *self)
{
// NEVER CHANGE THIS - you will break all the old
--- 178,182 ----
// Sequence stuff to provide compatibility with tuples.
! /* static */ Py_ssize_t PyTYPEATTR::getlength(PyObject *self)
{
// NEVER CHANGE THIS - you will break all the old
***************
*** 185,189 ****
}
! /* static */ PyObject *PyTYPEATTR::getitem(PyObject *self, int index)
{
PyTYPEATTR *p = (PyTYPEATTR *)self;
--- 185,189 ----
}
! /* static */ PyObject *PyTYPEATTR::getitem(PyObject *self, Py_ssize_t index)
{
PyTYPEATTR *p = (PyTYPEATTR *)self;
Index: PySTGMEDIUM.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PySTGMEDIUM.cpp,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -d -r1.6 -r1.6.2.1
*** PySTGMEDIUM.cpp 20 May 2005 23:25:49 -0000 1.6
--- PySTGMEDIUM.cpp 21 Dec 2006 23:17:15 -0000 1.6.2.1
***************
*** 48,52 ****
case TYMED_HGLOBAL: {
const void * buf = NULL;
! int cb = 0;
if (PyObject_AsReadBuffer(ob,&buf,&cb)==-1)
return PyErr_Format(PyExc_TypeError, "tymed value of %d requires a string/unicode/buffer", tymed);
--- 48,52 ----
case TYMED_HGLOBAL: {
const void * buf = NULL;
! Py_ssize_t cb = 0;
if (PyObject_AsReadBuffer(ob,&buf,&cb)==-1)
return PyErr_Format(PyExc_TypeError, "tymed value of %d requires a string/unicode/buffer", tymed);
Index: PyVARDESC.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyVARDESC.cpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** PyVARDESC.cpp 1 Sep 1999 23:03:33 -0000 1.1
--- PyVARDESC.cpp 21 Dec 2006 23:17:15 -0000 1.1.2.1
***************
*** 185,189 ****
// Sequence stuff to provide compatibility with tuples.
! /* static */ int PyVARDESC::getlength(PyObject *self)
{
// NEVER CHANGE THIS - you will break all the old
--- 185,189 ----
// Sequence stuff to provide compatibility with tuples.
! /* static */ Py_ssize_t PyVARDESC::getlength(PyObject *self)
{
// NEVER CHANGE THIS - you will break all the old
***************
*** 192,196 ****
}
! /* static */ PyObject *PyVARDESC::getitem(PyObject *self, int index)
{
PyVARDESC *p = (PyVARDESC *)self;
--- 192,196 ----
}
! /* static */ PyObject *PyVARDESC::getitem(PyObject *self, Py_ssize_t index)
{
PyVARDESC *p = (PyVARDESC *)self;
Index: PyFUNCDESC.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyFUNCDESC.cpp,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -d -r1.1 -r1.1.2.1
*** PyFUNCDESC.cpp 1 Sep 1999 23:03:32 -0000 1.1
--- PyFUNCDESC.cpp 21 Dec 2006 23:17:15 -0000 1.1.2.1
***************
*** 220,224 ****
// Sequence stuff to provide compatibility with tuples.
! /* static */ int PyFUNCDESC::getlength(PyObject *self)
{
// NEVER CHANGE THIS - you will break all the old
--- 220,224 ----
// Sequence stuff to provide compatibility with tuples.
! /* static */ Py_ssize_t PyFUNCDESC::getlength(PyObject *self)
{
// NEVER CHANGE THIS - you will break all the old
***************
*** 227,231 ****
}
! /* static */ PyObject *PyFUNCDESC::getitem(PyObject *self, int index)
{
PyFUNCDESC *p = (PyFUNCDESC *)self;
--- 227,231 ----
}
! /* static */ PyObject *PyFUNCDESC::getitem(PyObject *self, Py_ssize_t index)
{
PyFUNCDESC *p = (PyFUNCDESC *)self;
|