2005-05-06 15:54:47 +00:00
|
|
|
/*
|
2005-08-18 15:28:18 +00:00
|
|
|
* $Id: memory.h,v 1.8 2005-08-18 15:28:18 bacon Exp $
|
2005-05-06 15:54:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _XP_STX_MEMORY_H_
|
|
|
|
#define _XP_STX_MEMORY_H_
|
|
|
|
|
2005-08-18 15:28:18 +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 (
|
2005-06-08 16:00:51 +00:00
|
|
|
xp_stx_memory_t* mem, xp_word_t capacity);
|
2005-05-06 15:54:47 +00:00
|
|
|
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);
|
2005-06-08 16:00:51 +00:00
|
|
|
xp_word_t xp_stx_memory_alloc (xp_stx_memory_t* mem, xp_word_t size);
|
|
|
|
void xp_stx_memory_dealloc (xp_stx_memory_t* mem, xp_word_t object_index);
|
2005-05-06 15:54:47 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|