Main Page | Modules | Class List | File List | Class Members | File Members

memory_stack.h File Reference

#include <gandalf/common/misc_defs.h>
#include <stddef.h>

Go to the source code of this file.

Classes

struct  Gan_MemoryStack
 Structure to hold state of stack memory blocks. More...

Typedefs

typedef double Gan_BigType
 Big C type for byte alignment.
typedef Gan_MemoryStack Gan_MemoryStack
 Structure to hold state of stack memory blocks.

Functions

Gan_MemoryStackgan_memory_stack_alloc (int nblocks, size_t bsize)
 Macro: Allocate and initialise temporary memory allocation structure.
void * gan_ms_malloc_object (Gan_MemoryStack *ms, TYPE obj_type)
 Macro: Dynamically allocate one item of a specific type with "stack" memory.
void * gan_ms_malloc_array (Gan_MemoryStack *ms, TYPE obj_type, size_t size)
 Macro: Dynamically allocate n items of a specific type with "stack" memory.


Detailed Description

Module: Stack-style first-in first-out memory allocation module

Part of: Gandalf Library

Version:
1.2
Date:
2005/08/22 08:52:18
Author:
jps
Copyright: (c) 2002 Imagineer Software Limited
Generated on Fri Mar 17 12:44:52 2006 by  doxygen 1.3.9.1