Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

c_allocator.c File Reference

#include <stdlib.h>
#include "base/c_allocator.h"
#include "debug/malloc.h"

Functions

int32_t * base_malloc (size_t intSize, void *data)
 Default allocator function based on malloc.
void base_free (void *mem, size_t unused1, void *unused2)
 Default deallocator function based on free.

Variables

allocator_t base_mallocator
 Default allocator type based on malloc.

Function Documentation

void base_free void *  mem,
size_t  unused1,
void *  unused2
 

Default deallocator function based on free.

Parameters:
mem,: memory to deallocate
unused1,unused2,: unused parameters, only to comply with deallocator_f.

int32_t* base_malloc size_t  intSize,
void *  unused
 

Default allocator function based on malloc.

Parameters:
intSize,: size to allocate in ints
unused,: not used, only to comply with allocator_f
Returns:
int32_t[intSize] allocated by malloc


Variable Documentation

allocator_t base_mallocator
 

Initial value:

{
    allocData:NULL,
    allocFunction:base_malloc,
    deallocFunction:base_free
}
Default allocator type based on malloc.


Generated on Fri Jun 30 00:02:30 2006 for Module base by  doxygen 1.4.2