[Git][ghc/ghc][master] Relax the constraint about the foreign function's calling convention of...

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed Jul 5 02:10:54 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
fb140f82 by Hécate Moonlight at 2023-07-04T22:10:34-04:00
Relax the constraint about the foreign function's calling convention of FinalizerPtr to capi as well as ccall.
- - - - -


1 changed file:

- libraries/base/GHC/ForeignPtr.hs


Changes:

=====================================
libraries/base/GHC/ForeignPtr.hs
=====================================
@@ -228,7 +228,7 @@ instance Show (ForeignPtr a) where
 -- finalisation time, gets as an argument a plain pointer variant of the
 -- foreign pointer that the finalizer is associated with.
 --
--- Note that the foreign function /must/ use the @ccall@ calling convention.
+-- Note that the foreign function /must/ either use the @ccall@ or the @capi@ calling convention.
 --
 type FinalizerPtr a        = FunPtr (Ptr a -> IO ())
 type FinalizerEnvPtr env a = FunPtr (Ptr env -> Ptr a -> IO ())



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fb140f822392cd38ce275451d33e818fcdcab81c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fb140f822392cd38ce275451d33e818fcdcab81c
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230704/9109934e/attachment.html>


More information about the ghc-commits mailing list