Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

halloc.h File Reference


Detailed Description

Hashtable-tracked allocator.

Small chunks are allocated via walloc(),

Author:
Christian Biere
Date:
2006

#include "common.h"

Go to the source code of this file.

Defines

#define HFREE_NULL(p)

Functions

void * halloc (size_t size) WARN_UNUSED_RESULT G_GNUC_MALLOC
void * halloc0 (size_t size) WARN_UNUSED_RESULT G_GNUC_MALLOC
void hfree (void *ptr)
void * hrealloc (void *old, size_t size) WARN_UNUSED_RESULT G_GNUC_MALLOC
void halloc_init (void)
void hdestroy (void)
size_t halloc_bytes_allocated (void)
size_t halloc_chunks_allocated (void)


Define Documentation

#define HFREE_NULL  ) 
 

Value:

G_STMT_START {          \
    if (p) {            \
        hfree(p);       \
        p = NULL;       \
    }                   \
} G_STMT_END


Function Documentation

void* halloc size_t  size  ) 
 

void* halloc0 size_t  size  ) 
 

size_t halloc_bytes_allocated void   ) 
 

size_t halloc_chunks_allocated void   ) 
 

void halloc_init void   ) 
 

void hdestroy void   ) 
 

void hfree void *  ptr  ) 
 

void* hrealloc void *  old,
size_t  size
 


Generated on Sat Jun 30 17:53:27 2007 for gtk-gnutella by  doxygen 1.3.9.1