mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-12 07:57:22 +00:00
585191310b
darcs-hash:20060206142502-ac50b-ba1c9a4f64ea0f44f65303a125f9ddae5bd31e2f.gz
18 lines
495 B
C
18 lines
495 B
C
/** \file halloc.h
|
|
A hierarchical memory allocation system
|
|
*/
|
|
|
|
/**
|
|
Allocate new memory using specified parent memory context. If \c
|
|
context is null, a new root context is created.
|
|
*/
|
|
void *halloc( void *context, size_t size );
|
|
|
|
/**
|
|
Free memory context and all children. Only root contexts may be
|
|
freed explicitly.
|
|
*/
|
|
void halloc_free( void *context );
|
|
|
|
wchar_t *halloc_wcsdup( void *context, const wchar_t *str );
|
|
wchar_t *halloc_wcsndup( void *context, const wchar_t *in, int c );
|