Main Page | Modules | Namespace List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

balloc.c File Reference

#include "basic/basicInternal.h"
#include <stdarg.h>
#include <stdlib.h>

Defines

#define IN_BALLOC
#define ROUNDUP4(size)   ((size) % 4) ? (size) + (4 - ((size) % 4)) : (size)

Functions

static int ballocGetSize (int size, int *q)
int bopen (void *buf, int bufsize, int flags)
void bclose ()
void * balloc (B_ARGS_DEC, int size)
void bfree (B_ARGS_DEC, void *mp)
void bfreeSafe (B_ARGS_DEC, void *mp)
char_tbstrdup (B_ARGS_DEC, char_t *s)
void * brealloc (B_ARGS_DEC, void *mp, int newsize)
void bstats (int handle, void(*writefn)(int handle, char_t *fmt,...))

Variables

static bTypebQhead [B_MAX_CLASS]
static char * bFreeBuf
static char * bFreeNext
static int bFreeSize
static int bFreeLeft
static int bFlags = B_USE_MALLOC
static int bopenCount = 0

Define Documentation

#define IN_BALLOC
 

#define ROUNDUP4 size   )     ((size) % 4) ? (size) + (4 - ((size) % 4)) : (size)
 


Function Documentation

void* balloc B_ARGS_DEC  ,
int  size
 

static int ballocGetSize int  size,
int *  q
[static]
 

void bclose  ) 
 

void bfree B_ARGS_DEC  ,
void *  mp
 

void bfreeSafe B_ARGS_DEC  ,
void *  mp
 

int bopen void *  buf,
int  bufsize,
int  flags
 

void* brealloc B_ARGS_DEC  ,
void *  mp,
int  newsize
 

void bstats int  handle,
void(*)(int handle, char_t *fmt,...)  writefn
 

char_t* bstrdup B_ARGS_DEC  ,
char_t s
 


Variable Documentation

int bFlags = B_USE_MALLOC [static]
 

char* bFreeBuf [static]
 

int bFreeLeft [static]
 

char* bFreeNext [static]
 

int bFreeSize [static]
 

int bopenCount = 0 [static]
 

bType* bQhead[B_MAX_CLASS] [static]
 


Generated on Thu Mar 2 16:11:28 2006 for VDK Blacksheep by  doxygen 1.4.1