diff options
author | Thomas Heller <theller@ctypes.org> | 2008-02-13 20:40:44 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2008-02-13 20:40:44 (GMT) |
commit | 13394e907dc452537120b051cb4cdafe4900f334 (patch) | |
tree | e13a8e2f903ce01c206dd9c94243d66758d02e0f /Modules/_ctypes/stgdict.c | |
parent | 2bc6b5eb369b70a068f8de8728914467bb35b017 (diff) | |
download | cpython-13394e907dc452537120b051cb4cdafe4900f334.zip cpython-13394e907dc452537120b051cb4cdafe4900f334.tar.gz cpython-13394e907dc452537120b051cb4cdafe4900f334.tar.bz2 |
Merged revisions 60767,60768 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r60767 | thomas.heller | 2008-02-13 21:21:53 +0100 (Mi, 13 Feb 2008) | 1 line
Add pickle support to ctypes types.
........
r60768 | thomas.heller | 2008-02-13 21:36:51 +0100 (Mi, 13 Feb 2008) | 1 line
Make the test somewhat clearer (I hope).
........
Diffstat (limited to 'Modules/_ctypes/stgdict.c')
-rw-r--r-- | Modules/_ctypes/stgdict.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_ctypes/stgdict.c b/Modules/_ctypes/stgdict.c index 9914cab..0ad5840 100644 --- a/Modules/_ctypes/stgdict.c +++ b/Modules/_ctypes/stgdict.c @@ -402,6 +402,8 @@ StructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct) return -1; } stgdict->ffi_type_pointer.elements[ffi_ofs + i] = &dict->ffi_type_pointer; + if (dict->flags & (TYPEFLAG_ISPOINTER | TYPEFLAG_HASPOINTER)) + stgdict->flags |= TYPEFLAG_HASPOINTER; dict->flags |= DICTFLAG_FINAL; /* mark field type final */ if (PyTuple_Size(pair) == 3) { /* bits specified */ switch(dict->ffi_type_pointer.type) { |