[GHC] #9859: Implement `calloc{, Bytes, Array, Array0}` allocators
GHC
ghc-devs at haskell.org
Sat Dec 6 00:35:40 UTC 2014
#9859: Implement `calloc{,Bytes,Array,Array0}` allocators
-------------------------------------+-------------------------------------
Reporter: ifesdjeen | Owner:
Type: feature | Status: patch
request | Milestone: 7.10.1
Priority: normal | Version:
Component: Core | Keywords: ffi
Libraries | Architecture: Unknown/Multiple
Resolution: | Difficulty: Easy (less than 1
Operating System: | hour)
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: Phab:D527 |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp <austin@…>):
In [changeset:"08610c1fdc7816c74faed40f8a7d3c4b4758709e/ghc"]:
{{{
#!CommitTicketReference repository="ghc"
revision="08610c1fdc7816c74faed40f8a7d3c4b4758709e"
Implement `calloc{,Bytes,Array,Array0}` allocators
Summary:
This adds zero-initialising versions of `malloc{,Bytes,Array,Array0}`
* Add `calloc` and `callocBytes` to `Foreign.Marshal.Alloc`.
* Add `callocArray` and `callocArray0` to `Foreign.Marshal.Array`.
Reviewers: ekmett, duncan, austin, hvr
Reviewed By: austin, hvr
Subscribers: ezyang, simonmar, ekmett, duncan, thomie, carter
Projects: #ghc
Differential Revision: https://phabricator.haskell.org/D527
GHC Trac Issues: #9859
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9859#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list