Cyclone Scheme  0.28.0

◆ make_input_port

#define make_input_port (   p,
  f,
  rl 
)
Value:
port_type p; \
p.hdr.grayed = 0; \
p.hdr.immutable = 0; \
p.tag = port_tag; \
p.fp = f; \
p.mode = 1; \
p.flags = 1; \
p.line_num = 1; \
p.col_num = 1; \
p.buf_idx = 0; \
p.tok_start = 0; \
p.tok_end = 0; \
p.tok_buf = malloc(CYC_IO_BUF_LEN); \
p.tok_buf_len = CYC_IO_BUF_LEN; \
p.mem_buf = malloc(CYC_IO_BUF_LEN); \
p.mem_buf_len = 0; \
p.str_bv_in_mem_buf = NULL; \
p.str_bv_in_mem_buf_len = 0; \
p.read_len = rl;

Create a new input port object in the nursery

gc_color_red
#define gc_color_red
Definition: types.h:297
port_type
The port object type.
Definition: types.h:1096
gc_header_type_t::mark
unsigned char mark
Definition: types.h:268
port_tag
@ port_tag
Definition: types.h:65
port_type::hdr
gc_header_type hdr
Definition: types.h:1097
CYC_IO_BUF_LEN
#define CYC_IO_BUF_LEN
Definition: types.h:1119