Lines Matching refs:vm
54 #include <vm.h>
146 bc_file_puts(&vm->fout, bc_flush_none, prompt);
147 bc_file_flush(&vm->fout, bc_flush_none);
151 if (bc_read_buf(vec, vm->buf, &vm->buf_len))
165 r = read(STDIN_FILENO, vm->buf + vm->buf_len,
166 BC_VM_STDIN_BUF_SIZE - vm->buf_len);
178 if (vm->status == (sig_atomic_t) BC_STATUS_QUIT) BC_JMP;
180 assert(vm->sig != 0);
182 sig = (int) vm->sig;
185 vm->sig = 0;
186 vm->status = (sig_atomic_t) BC_STATUS_SUCCESS;
194 bc_file_puts(&vm->fout, bc_flush_none,
198 bc_file_puts(&vm->fout, bc_flush_none, prompt);
200 bc_file_flush(&vm->fout, bc_flush_none);
226 vm->buf_len += (size_t) r;
227 vm->buf[vm->buf_len] = '\0';
230 done = bc_read_buf(vec, vm->buf, &vm->buf_len);
248 if (BC_TTY && !vm->history.badTerm)
250 s = bc_history_line(&vm->history, vec, prompt);