[pywin32-checkins] pywin32/com/win32comext/adsi/src adsilib.i,1.2,1.3
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2005-05-26 11:35:23
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/adsi/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25596 Modified Files: adsilib.i Log Message: Remove stale confusing comments. Index: adsilib.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32comext/adsi/src/adsilib.i,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** adsilib.i 24 Sep 2004 07:25:12 -0000 1.2 --- adsilib.i 26 May 2005 11:35:13 -0000 1.3 *************** *** 49,71 **** typedef long ADS_SEARCH_HANDLE - /*** - // Some ** special cases. - %typemap(python,freearg) IMsgStore **INPUT - { - if ($source && *$source) (*$source)->Release(); - } - - %typemap(python,arginit) IMsgStore ** { - $target = NULL; - } - - %typemap(python,in) IMsgStore **INPUT(IMsgStore *temp) - { - $target = &temp; - if (!PyCom_InterfaceFromPyInstanceOrObject($source, IID_IMsgStore, (void **)$target, 0)) - return NULL; - } - ***/ - // The types and structures. --- 49,52 ---- *************** *** 143,203 **** if ($source) FreeADsMem($source); } - - /*** - - %typemap(python,ignore) MAPIINIT_0 *OUTPUT (MAPIINIT_0 temp) { - $target = &temp; - } - - %typemap(python,argout) MAPIINIT_0 *OUTPUT { - Py_DECREF($target); - $target = Py_BuildValue("ll", - $source->ulVersion, - $source->ulFlags); - } - - %typemap(python,in) MAPIINIT_0 *INPUT(MAPIINIT_0 temp) - { - $target = &temp; - if ($source==Py_None) - $target = NULL; - else { - if (!PyArg_ParseTuple($source, "ii:MAPIINIT_0 tuple", &($target->ulVersion), &($target->ulFlags))) { - $cleanup; - return NULL; - } - } - } - - // A "MAPISTRINGARRAY" object - not a real type at all - // but suitable for "returned array of strings" - %typemap(python,ignore) TCHAR **OUTPUT_ARRAY(TCHAR *temp) - { - $target = &temp; - } - - %typemap(python,argout) TCHAR **OUTPUT_ARRAY { - $target = PyList_New(0); - for (int __i=0; $source[__i] != NULL ;__i++) { - PyObject *obNew = PyWinObject_FromTCHAR($source[__i]); - PyList_Append($target, obNew); - Py_XDECREF(obNew); - } - MAPIFreeBuffer($source); - } - - %typemap(python,ignore) TCHAR **OUTPUT_MAPI(TCHAR *temp) - { - $target = &temp; - } - - %typemap(python,argout) TCHAR **OUTPUT_MAPI { - if (*$source==NULL) { - $target = Py_None; - Py_INCREF(Py_None); - } else { - $target = PyWinObject_FromTCHAR(*$source); - MAPIFreeBuffer(*$source); - } - } - ***/ \ No newline at end of file --- 124,125 ---- |