ab 599 src/simh/linehistory.c abInit(struct abuf *ab) ab 601 src/simh/linehistory.c ab->b = NULL; ab 602 src/simh/linehistory.c ab->len = 0; ab 606 src/simh/linehistory.c abAppend(struct abuf *ab, const char *s, int len) ab 613 src/simh/linehistory.c char *new = realloc(ab->b, 1 + ab->len + len); ab 620 src/simh/linehistory.c memcpy(new + ab->len, s, len); ab 621 src/simh/linehistory.c ab->b = new; ab 622 src/simh/linehistory.c ab->len += len; ab 626 src/simh/linehistory.c abFree(const struct abuf *ab) ab 628 src/simh/linehistory.c free(ab->b); ab 639 src/simh/linehistory.c refreshShowHints(struct abuf *ab, const struct linenoiseState *l, int plen) ab 671 src/simh/linehistory.c abAppend(ab, seq, strlen(seq)); ab 672 src/simh/linehistory.c abAppend(ab, hint, hintlen); ab 675 src/simh/linehistory.c abAppend(ab, "\033[0m", 4); ab 705 src/simh/linehistory.c struct abuf ab; ab 718 src/simh/linehistory.c abInit(&ab); ab 721 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 723 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); ab 729 src/simh/linehistory.c abAppend(&ab, "*", 1); ab 735 src/simh/linehistory.c abAppend(&ab, buf, len); ab 741 src/simh/linehistory.c refreshShowHints(&ab, l, plen); ab 745 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 748 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 749 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) ab 753 src/simh/linehistory.c abFree(&ab); ab 775 src/simh/linehistory.c struct abuf ab; ab 788 src/simh/linehistory.c abInit(&ab); ab 792 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 799 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 804 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 807 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); ab 814 src/simh/linehistory.c abAppend(&ab, "*", 1); ab 820 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); ab 827 src/simh/linehistory.c refreshShowHints(&ab, l, plen); ab 837 src/simh/linehistory.c abAppend(&ab, "\n", 1); ab 839 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 854 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 868 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 872 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) ab 876 src/simh/linehistory.c abFree(&ab);