Lines Matching refs:BC_HIST_BUF_LEN

633 	size_t colpos, len = BC_HIST_BUF_LEN(h), pos = h->pos;  in bc_history_refresh()
665 bc_file_write(&vm.fout, bc_flush_none, buf, BC_HIST_BUF_LEN(h)); in bc_history_refresh()
685 if (h->pos == BC_HIST_BUF_LEN(h)) { in bc_history_edit_insert()
695 len = BC_HIST_BUF_LEN(h) + h->extras.len - 1; in bc_history_edit_insert()
711 size_t amt = BC_HIST_BUF_LEN(h) - h->pos; in bc_history_edit_insert()
718 h->buf.v[BC_HIST_BUF_LEN(h)] = '\0'; in bc_history_edit_insert()
741 if (h->pos == BC_HIST_BUF_LEN(h)) return; in bc_history_edit_right()
743 h->pos += bc_history_nextLen(h->buf.v, BC_HIST_BUF_LEN(h), h->pos, NULL); in bc_history_edit_right()
753 size_t len = BC_HIST_BUF_LEN(h); in bc_history_edit_wordEnd()
768 size_t len = BC_HIST_BUF_LEN(h); in bc_history_edit_wordStart()
795 if (h->pos == BC_HIST_BUF_LEN(h)) return; in bc_history_edit_end()
797 h->pos = BC_HIST_BUF_LEN(h); in bc_history_edit_end()
839 h->pos = BC_HIST_BUF_LEN(h); in bc_history_edit_next()
850 size_t chlen, len = BC_HIST_BUF_LEN(h); in bc_history_edit_delete()
859 h->buf.v[BC_HIST_BUF_LEN(h)] = '\0'; in bc_history_edit_delete()
866 size_t chlen, len = BC_HIST_BUF_LEN(h); in bc_history_edit_backspace()
876 h->buf.v[BC_HIST_BUF_LEN(h)] = '\0'; in bc_history_edit_backspace()
894 BC_HIST_BUF_LEN(h) - old_pos + 1); in bc_history_edit_deletePrevWord()
905 size_t next_end = h->pos, len = BC_HIST_BUF_LEN(h); in bc_history_edit_deleteNextWord()
923 ncl = bc_history_nextLen(h->buf.v, BC_HIST_BUF_LEN(h), h->pos, NULL); in bc_history_swap()
928 if (pcl && h->pos != BC_HIST_BUF_LEN(h) && pcl < 5 && ncl < 5) { in bc_history_swap()
1332 bc_vec_string(vec, BC_HIST_BUF_LEN(h), h->buf.v); in bc_history_line()