factor/native/handle.h

17 lines
332 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_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
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);