Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
855ef734
Commit
855ef734
authored
Aug 02, 2012
by
Simon Marlow
Browse files
Document that a FinalizerPtr is a pointer to a ccall function (#5254)
It can't be any other calling convention, e.g. stdcall.
parent
d19e3e03
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/base/GHC/ForeignPtr.hs
View file @
855ef734
...
...
@@ -114,6 +114,8 @@ 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.
--
type
FinalizerPtr
a
=
FunPtr
(
Ptr
a
->
IO
()
)
type
FinalizerEnvPtr
env
a
=
FunPtr
(
Ptr
env
->
Ptr
a
->
IO
()
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment