Searched refs:BC_HIST_BUF_LEN (Results 1 – 2 of 2) sorted by relevance
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()[all …]
115 #define BC_HIST_BUF_LEN(h) ((h)->buf.len - 1) macro