factor/native/handle.h

21 lines
400 B
C
Raw Normal View History

2004-07-16 02:26:21 -04:00
typedef struct {
CELL header;
CELL type;
2004-07-16 02:26:21 -04:00
CELL object;
2004-07-24 00:54:57 -04:00
CELL buffer; /* tagged */
CELL buf_mode;
2004-07-24 00:54:57 -04:00
CELL buf_fill;
CELL buf_pos;
2004-07-16 02:26:21 -04:00
} HANDLE;
2004-07-24 00:54:57 -04:00
#define HANDLE_FD 1
#define B_READ 0
#define B_WRITE 1
#define B_NONE 2
HANDLE* untag_handle(CELL type, CELL tagged);
CELL handle(CELL type, CELL object);
2004-07-16 02:26:21 -04:00
void primitive_handlep(void);
2004-07-24 00:54:57 -04:00
void fixup_handle(HANDLE* handle);
void collect_handle(HANDLE* handle);