Skip to content
Hierarchical Allocator for C
Find file
New pull request
Pull request Compare This branch is 4 commits ahead, 6 commits behind apankrat:master.
Fetching latest commit...
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


        halloc 1.2.1


    Hierarchical memory allocation interface - an extension 
    to standard malloc/free interface that simplifies tasks 
    of memory disposal in cases when allocated structures 
    exhibit hierarchical properties.


    Distributed under terms of BSD license. 


    To build libhalloc.a with GNU tools run

    To install in /usr/include and /usr/lib
        make install

    To cleanup the build files 
        make clean



        * fixed a double-free bug in _set_allocator() as per
          Matthew Gregan comments

        * switched to using NULL instead of 0 where applicable


        * added missing <string.h> include to halloc.c

        * improved standard compliance thanks to the feedback
          received from Stan Tobias. Two things were fixed -

        - hblock_t structure no longer uses zero-sized 'data'
          array, which happened to be common, but non-standard

        - secondly, added the code to test the behaviour of 
          realloc(ptr, 0). Standard allows it NOT to act as
          free(), in which case halloc will use its own version
          of allocator calling free() when neccessary.


        * initial public release (rewrite of hhmalloc library)

Copyright (c) 2004-2011, Alex Pankratov ( All rights reserved.
Something went wrong with that request. Please try again.