Lines Matching refs:vm
138 bc_file_puts(&vm.fout, bc_flush_none, prompt); in bc_read_chars()
139 bc_file_flush(&vm.fout, bc_flush_none); in bc_read_chars()
143 if (bc_read_buf(vec, vm.buf, &vm.buf_len)) { in bc_read_chars()
156 r = read(STDIN_FILENO, vm.buf + vm.buf_len, in bc_read_chars()
157 BC_VM_STDIN_BUF_SIZE - vm.buf_len); in bc_read_chars()
167 if (vm.status == (sig_atomic_t) BC_STATUS_QUIT) BC_JMP; in bc_read_chars()
169 assert(vm.sig); in bc_read_chars()
172 vm.sig = 0; in bc_read_chars()
173 vm.status = (sig_atomic_t) BC_STATUS_SUCCESS; in bc_read_chars()
176 bc_file_puts(&vm.fout, bc_flush_none, bc_program_ready_msg); in bc_read_chars()
177 if (BC_PROMPT) bc_file_puts(&vm.fout, bc_flush_none, prompt); in bc_read_chars()
178 bc_file_flush(&vm.fout, bc_flush_none); in bc_read_chars()
202 vm.buf_len += (size_t) r; in bc_read_chars()
203 vm.buf[vm.buf_len] = '\0'; in bc_read_chars()
206 done = bc_read_buf(vec, vm.buf, &vm.buf_len); in bc_read_chars()
223 if (BC_TTY && !vm.history.badTerm) in bc_read_line()
224 s = bc_history_line(&vm.history, vec, prompt); in bc_read_line()