Main Page | Namespace List | Class List | File List | Class Members | File Members | Related Pages

alloc.c File Reference

#include "alloc.h"
#include "error.h"

Include dependency graph for alloc.c:

Include dependency graph

Go to the source code of this file.

Classes

union  aligned

Defines

#define ALIGNMENT   16 /* XXX: assuming that this alignment is enough */
#define SPACE   4096 /* must be multiple of ALIGNMENT */
#define space   ((char *) realspace)

Functions

char * malloc ()
void free ()
char * alloc (unsigned int n)
void alloc_free (char *x)


Define Documentation

#define ALIGNMENT   16 /* XXX: assuming that this alignment is enough */
 

Definition at line 6 of file alloc.c.

Referenced by alloc().

#define space   ((char *) realspace)
 

Definition at line 13 of file alloc.c.

Referenced by alloc(), and alloc_free().

#define SPACE   4096 /* must be multiple of ALIGNMENT */
 

Definition at line 8 of file alloc.c.

Referenced by alloc_free().


Function Documentation

char* alloc unsigned int  n  ) 
 

Definition at line 16 of file alloc.c.

References ALIGNMENT, errno, error_nomem, malloc(), and space.

Here is the call graph for this function:

void alloc_free char *  x  ) 
 

Definition at line 27 of file alloc.c.

References free(), SPACE, and space.

Here is the call graph for this function:

void free  ) 
 

Referenced by alloc_free().

char* malloc  ) 
 

Referenced by alloc().


Generated on Mon Apr 26 09:49:22 2004 for ConstantDataStore by doxygen 1.3.6-20040222