Cyclone Scheme
0.28.0
|
◆ make_input_port
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 |