ab 594 src/simh/linehistory.c abInit(struct abuf *ab) ab 596 src/simh/linehistory.c ab->b = NULL; ab 597 src/simh/linehistory.c ab->len = 0; ab 601 src/simh/linehistory.c abAppend(struct abuf *ab, const char *s, int len) ab 608 src/simh/linehistory.c char *new = realloc(ab->b, 1 + ab->len + len); ab 615 src/simh/linehistory.c memcpy(new + ab->len, s, len); ab 616 src/simh/linehistory.c ab->b = new; ab 617 src/simh/linehistory.c ab->len += len; ab 621 src/simh/linehistory.c abFree(const struct abuf *ab) ab 623 src/simh/linehistory.c free(ab->b); /* X-LINTED: FREE */ ab 634 src/simh/linehistory.c refreshShowHints(struct abuf *ab, const struct linenoiseState *l, int plen) ab 666 src/simh/linehistory.c abAppend(ab, seq, strlen(seq)); ab 667 src/simh/linehistory.c abAppend(ab, hint, hintlen); ab 670 src/simh/linehistory.c abAppend(ab, "\033[0m", 4); ab 700 src/simh/linehistory.c struct abuf ab; ab 713 src/simh/linehistory.c abInit(&ab); ab 716 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 718 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); ab 724 src/simh/linehistory.c abAppend(&ab, "*", 1); ab 730 src/simh/linehistory.c abAppend(&ab, buf, len); ab 736 src/simh/linehistory.c refreshShowHints(&ab, l, plen); ab 740 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 743 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 744 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) ab 748 src/simh/linehistory.c abFree(&ab); ab 770 src/simh/linehistory.c struct abuf ab; ab 783 src/simh/linehistory.c abInit(&ab); ab 787 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 794 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 799 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 802 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); ab 809 src/simh/linehistory.c abAppend(&ab, "*", 1); ab 815 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); ab 822 src/simh/linehistory.c refreshShowHints(&ab, l, plen); ab 832 src/simh/linehistory.c abAppend(&ab, "\n", 1); ab 834 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 849 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 863 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 867 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) ab 871 src/simh/linehistory.c abFree(&ab);