From: Simon Marlow Date: Tue, 18 Apr 2006 14:42:14 +0000 (+0000) Subject: HsBool should be HsInt, not StgBool X-Git-Tag: Before_FC_branch_merge~536 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=b3edde6c4e5f0e989db717710729af532ade882f HsBool should be HsInt, not StgBool StgBool is mapped to C's int type. GHC doesn't currently know the size of a C int on the target arch, it's easier to use StgInt instead. I guess nobody ever uses Bool arguments to foreign imports/exports. --- diff --git a/includes/HsFFI.h b/includes/HsFFI.h index 70891a2..cd9f7ed 100644 --- a/includes/HsFFI.h +++ b/includes/HsFFI.h @@ -81,7 +81,7 @@ typedef StgWord32 HsWord32; typedef StgWord64 HsWord64; typedef StgFloat HsFloat; typedef StgDouble HsDouble; -typedef StgBool HsBool; +typedef StgInt HsBool; typedef void* HsPtr; /* this should better match StgAddr */ typedef void (*HsFunPtr)(void); /* this should better match StgAddr */ typedef void* HsForeignPtr; /* ... and this StgForeignPtr */