[ctypes-commit] ctypes/source callproc.c,1.134,1.135
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-03-31 16:12:59
|
Update of /cvsroot/ctypes/ctypes/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10916 Modified Files: callproc.c Log Message: More code removed. Index: callproc.c =================================================================== RCS file: /cvsroot/ctypes/ctypes/source/callproc.c,v retrieving revision 1.134 retrieving revision 1.135 diff -C2 -d -r1.134 -r1.135 *** callproc.c 30 Mar 2005 16:39:25 -0000 1.134 --- callproc.c 31 Mar 2005 16:12:24 -0000 1.135 *************** *** 548,566 **** return 0; } - #if 0 - /* Does this make sense? Now that even Structure and Union types - have an _as_parameter_ property implemented in C, which returns - a PyCArgObject? - */ - if (CDataObject_Check(arg)) { - CDataObject *mem = (CDataObject *)arg; - parm->tag = 'V'; - parm->value.p = mem->b_ptr; - parm->size = mem->b_size; - /* This consumes the refcount of arg */ - parm->obj = arg; - return parm; - } - #endif Py_DECREF(arg); PyErr_Format(PyExc_TypeError, --- 548,551 ---- |