2005-05-06 15:54:47 +00:00
|
|
|
/*
|
2005-05-08 10:31:25 +00:00
|
|
|
* $Id: memory.h,v 1.5 2005-05-08 10:31:24 bacon Exp $
|
2005-05-06 15:54:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _XP_STX_MEMORY_H_
|
|
|
|
#define _XP_STX_MEMORY_H_
|
|
|
|
|
2005-05-08 07:39:51 +00:00
|
|
|
#include <xp/stx/stx.h>
|
2005-05-06 17:18:29 +00:00
|
|
|
|
2005-05-06 15:54:47 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
xp_stx_memory_t* xp_stx_memory_open (
|
|
|
|
xp_stx_memory_t* mem, xp_stx_word_t capacity);
|
|
|
|
void xp_stx_memory_close (xp_stx_memory_t* mem);
|
|
|
|
|
2005-05-08 10:31:25 +00:00
|
|
|
void xp_stx_memory_gc (xp_stx_memory_t* mem);
|
|
|
|
xp_stx_word_t xp_stx_memory_alloc (xp_stx_memory_t* mem, xp_stx_word_t size);
|
|
|
|
void xp_stx_memory_dealloc (xp_stx_memory_t* mem, xp_stx_word_t object_index);
|
2005-05-06 15:54:47 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|