[ctypes-commit] ctypes/source/libffi_msvc prep_cif.c,1.4,1.5
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2004-12-02 20:24:44
|
Update of /cvsroot/ctypes/ctypes/source/libffi_msvc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23785 Modified Files: prep_cif.c Log Message: MSVC returns small structures in registers. Returning small structures does still not work on Windows, but at least the stack is ok now. Index: prep_cif.c =================================================================== RCS file: /cvsroot/ctypes/ctypes/source/libffi_msvc/prep_cif.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** prep_cif.c 25 May 2004 11:38:33 -0000 1.4 --- prep_cif.c 2 Dec 2004 20:24:35 -0000 1.5 *************** *** 117,120 **** --- 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) |