[pywin32-checkins] pywin32/SWIG/swig_lib/python pywintypes.i,1.2,1.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-11-08 12:18:44
|
Update of /cvsroot/pywin32/pywin32/SWIG/swig_lib/python In directory sc8-pr-cvs1:/tmp/cvs-serv23371 Modified Files: pywintypes.i Log Message: Use WCHAR converters for WCHAR functions, rather than BSTR (which happen to be the same size, but...) Index: pywintypes.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/SWIG/swig_lib/python/pywintypes.i,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pywintypes.i 25 Nov 2002 11:12:09 -0000 1.2 --- pywintypes.i 8 Nov 2003 12:18:40 -0000 1.3 *************** *** 133,137 **** %typemap(python,in) OLECHAR *, WCHAR *{ // Wide string code! ! if (!PyWinObject_AsBstr($source, &$target, FALSE)) return NULL; } --- 133,137 ---- %typemap(python,in) OLECHAR *, WCHAR *{ // Wide string code! ! if (!PyWinObject_AsWCHAR($source, &$target, FALSE)) return NULL; } *************** *** 140,144 **** WCHAR *inNullWideString { // Wide string code! ! if (!PyWinObject_AsBstr($source, &$target, TRUE)) return NULL; } --- 140,144 ---- WCHAR *inNullWideString { // Wide string code! ! if (!PyWinObject_AsWCHAR($source, &$target, TRUE)) return NULL; } *************** *** 149,153 **** %typemap(python,freearg) OLECHAR *, WCHAR *{ // Wide string cleanup ! SysFreeString($source); } --- 149,153 ---- %typemap(python,freearg) OLECHAR *, WCHAR *{ // Wide string cleanup ! PyWinObject_FreeWCHAR($source); } |