[GHC] #9859: Implement `calloc{, Bytes, Array, Array0}` allocators

GHC ghc-devs at haskell.org
Wed Dec 3 22:40:04 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   |
-------------------------------------+-------------------------------------
Changes (by hvr):

 * status:  new => patch
 * cc: core-libraries-committee@… (added)
 * differential:  D527 => Phab:D527
 * component:  libraries/base => Core Libraries
 * version:  7.8.3 =>


Old description:

> Add zero-initialising versions of malloc{,Bytes,Array,Array0}
>
>   * Add calloc and callocBytes to Foreign.Marshal.Alloc.
>   * Add callocArray and callocArray0 to Foreign.Marshal.Array.
>
> Implemented in revision: [https://phabricator.haskell.org/D527]

New description:

 Add zero-initialising versions of malloc{,Bytes,Array,Array0}

   * Add calloc and callocBytes to Foreign.Marshal.Alloc.
   * Add callocArray and callocArray0 to Foreign.Marshal.Array.

 Proposal Discussion:
 https://www.haskell.org/pipermail/libraries/2014-November/024421.html

--

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9859#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list