qse/ase/stx/object.h

28 lines
594 B
C
Raw Normal View History

2005-05-06 17:18:29 +00:00
/*
2005-05-08 07:39:51 +00:00
* $Id: object.h,v 1.2 2005-05-08 07:39:51 bacon Exp $
2005-05-06 17:18:29 +00:00
*/
#ifndef _XP_STX_OBJECT_H_
#define _XP_STX_OBJECT_H_
2005-05-08 07:39:51 +00:00
#include <xp/stx/stx.h>
2005-05-06 17:18:29 +00:00
#define XP_STX_IS_SMALLINT(x) (((x) & 0x01) == 0x01)
#define XP_STX_TO_SMALLINT(x) ((x) << 1) | 0x01)
#define XP_STX_FROM_SMALLINT(x) ((x) >> 1)
2005-05-08 07:39:51 +00:00
#ifdef __cplusplus
extern "C" {
#endif
xp_stx_word_t xp_stx_alloc_object (xp_stx_t* stx, xp_size_t n);
xp_stx_word_t xp_stx_alloc_byte_object (xp_stx_t* stx, xp_size_t n);
xp_stx_word_t xp_stx_alloc_string_object (
xp_stx_t* stx, xp_stx_char_t* str, xp_size_t n);
#ifdef __cplusplus
}
#endif
2005-05-06 17:18:29 +00:00
#endif