• Alex Petrov's avatar
    Implement `calloc{,Bytes,Array,Array0}` allocators · 08610c1f
    Alex Petrov authored
    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
To find the state of this project's repository at the time of any of these versions, check out the tags..
changelog.md 10.7 KB