[ctypes-commit] ctypes/source ctypes.h,1.72,1.73
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-03-09 18:23:58
|
Update of /cvsroot/ctypes/ctypes/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30563 Modified Files: ctypes.h Log Message: Another todo comment. Index: ctypes.h =================================================================== RCS file: /cvsroot/ctypes/ctypes/source/ctypes.h,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** ctypes.h 9 Mar 2005 13:30:18 -0000 1.72 --- ctypes.h 9 Mar 2005 18:23:33 -0000 1.73 *************** *** 152,155 **** --- 152,163 ---- typedef struct { PyDictObject dict; /* first part identical to PyDictObject */ + /* The size and align fields are unneeded, they are in ffi_type as well. As + an experiment shows, it's trivial to get rid of them, the only thing to + remember is that in ArrayType_new the ffi_type fields must be filled in - + so far it was unneeded because libffi doesn't support arrays at all + (because they are passed as pointers to function calls anyway). But it's + too much risk to change that now, and there are other fields which doen't + belong into this structure anyway. Maybe in ctypes 2.0... (ctypes 2000?) + */ int size; /* number of bytes */ int align; /* alignment requirements */ |