[pywin32-checkins] pywin32/com/win32com/src/extensions PyIPropertyStorage.cpp, 1.13, 1.13.2.1
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2008-10-01 09:38:04
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21566/com/win32com/src/extensions Modified Files: Tag: py3k PyIPropertyStorage.cpp Log Message: Use Python's PyUnicode_GET_SIZE() instead of our own private and potentially confusing PyUnicode_Size function (soon to be removed from a pywintypes near you!) Index: PyIPropertyStorage.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyIPropertyStorage.cpp,v retrieving revision 1.13 retrieving revision 1.13.2.1 diff -C2 -d -r1.13 -r1.13.2.1 *** PyIPropertyStorage.cpp 22 Aug 2007 19:57:40 -0000 1.13 --- PyIPropertyStorage.cpp 1 Oct 2008 09:37:52 -0000 1.13.2.1 *************** *** 25,29 **** PyObject *sub = PyTuple_GET_ITEM(tuple, i); if (PyUnicode_Check(sub)) ! cChars += PyUnicode_Size(sub) + 1; else if (PyString_Check(sub)) cChars += PyString_Size(sub) + 1; --- 25,29 ---- PyObject *sub = PyTuple_GET_ITEM(tuple, i); if (PyUnicode_Check(sub)) ! cChars += PyUnicode_GET_SIZE(sub) + 1; else if (PyString_Check(sub)) cChars += PyString_Size(sub) + 1; |