Home GnuPG

Add gpgrt_set_alloc_func.
7fdca61bcf60Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add gpgrt_set_alloc_func.

* src/visibility.c (gpgrt_set_alloc_func): New.
* configure.ac (_ESTREAM_PRINTF_REALLOC): Define.
(_ESTREAM_PRINTF_EXTRA_INCLUDE): Define.
* src/estream.c (mem_alloc, mem_realloc, mem_free): Simplify.
(_gpgrt_free): Remove.
* src/init.c (custom_realloc): New var.
(_gpgrt_set_alloc_func): New.
(_gpgrt_realloc, _gpgrt_malloc, _gpgrt_free): New.
* src/visibility.h (gpg_err_deinit): Mark as visible.

Details

Provenance
wernerAuthored on Aug 26 2014, 5:56 PM
Parents
rEd9d5b61a9f70: Export missing init functions.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rE7fdca61bcf60: Add gpgrt_set_alloc_func. (authored by Werner Koch <wk@gnupg.org>).Aug 26 2014, 5:56 PM