[ctypes-commit] ctypes/source/libffi_msvc prep_cif.c,1.5,1.6
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2004-12-02 20:35:35
|
Update of /cvsroot/ctypes/ctypes/source/libffi_msvc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26353 Modified Files: prep_cif.c Log Message: Revert the last checkin, and leave only a comment. We have a different workaround. Index: prep_cif.c =================================================================== RCS file: /cvsroot/ctypes/ctypes/source/libffi_msvc/prep_cif.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** prep_cif.c 2 Dec 2004 20:24:35 -0000 1.5 --- prep_cif.c 2 Dec 2004 20:35:25 -0000 1.6 *************** *** 117,124 **** /* Make space for the return structure pointer */ if (cif->rtype->type == FFI_TYPE_STRUCT ! #ifdef _MSC_VER ! /* MSVC returns small structures in registers */ ! && cif->rtype->size > 8 ! #endif #ifdef SPARC && (cif->abi != FFI_V9 || cif->rtype->size > 32) --- 117,123 ---- /* Make space for the return structure pointer */ if (cif->rtype->type == FFI_TYPE_STRUCT ! /* MSVC returns small structures in registers. But we have a different ! workaround: pretend int32 or int64 return type, and converting to ! structure afterwards. */ #ifdef SPARC && (cif->abi != FFI_V9 || cif->rtype->size > 32) |