qse/ase/stx/method.h

36 lines
648 B
C
Raw Normal View History

2005-07-04 11:32:41 +00:00
/*
2005-08-18 15:28:18 +00:00
* $Id: method.h,v 1.5 2005-08-18 15:28:18 bacon Exp $
2005-07-04 11:32:41 +00:00
*/
#ifndef _XP_STX_METHOD_H_
#define _XP_STX_METHOD_H_
2005-08-18 15:28:18 +00:00
#include <xp/stx/stx.h>
2005-07-04 11:32:41 +00:00
2005-07-05 09:02:13 +00:00
#define XP_STX_METHOD_SIZE 3
2005-07-04 11:32:41 +00:00
#define XP_STX_METHOD_TEXT 0
2005-07-05 09:02:13 +00:00
#define XP_STX_METHOD_SELECTOR 1
2005-07-04 11:32:41 +00:00
#define XP_STX_METHOD_BYTECODES 2
2005-07-05 09:02:13 +00:00
struct xp_stx_method_t
{
xp_stx_objhdr_t header;
xp_word_t text;
xp_word_t selector; /* is this necessary? */
xp_word_t bytecodes;
2005-08-16 15:49:04 +00:00
xp_word_t temporaries; /* number of temporaries required */
2005-07-05 09:02:13 +00:00
xp_word_t literals[1];
};
typedef struct xp_stx_method_t xp_stx_method_t;
2005-07-04 11:32:41 +00:00
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif