ab 600 src/simh/linehistory.c abInit(struct abuf *ab) ab 602 src/simh/linehistory.c ab->b = NULL; ab 603 src/simh/linehistory.c ab->len = 0; ab 607 src/simh/linehistory.c abAppend(struct abuf *ab, const char *s, int len) ab 614 src/simh/linehistory.c char *new = realloc(ab->b, 1 + ab->len + len); ab 621 src/simh/linehistory.c memcpy(new + ab->len, s, len); ab 622 src/simh/linehistory.c ab->b = new; ab 623 src/simh/linehistory.c ab->len += len; ab 627 src/simh/linehistory.c abFree(const struct abuf *ab) ab 629 src/simh/linehistory.c free(ab->b); /* X-LINTED: FREE */ ab 640 src/simh/linehistory.c refreshShowHints(struct abuf *ab, const struct linenoiseState *l, int plen) ab 672 src/simh/linehistory.c abAppend(ab, seq, strlen(seq)); ab 673 src/simh/linehistory.c abAppend(ab, hint, hintlen); ab 676 src/simh/linehistory.c abAppend(ab, "\033[0m", 4); ab 706 src/simh/linehistory.c struct abuf ab; ab 719 src/simh/linehistory.c abInit(&ab); ab 722 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 724 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); ab 730 src/simh/linehistory.c abAppend(&ab, "*", 1); ab 736 src/simh/linehistory.c abAppend(&ab, buf, len); ab 742 src/simh/linehistory.c refreshShowHints(&ab, l, plen); ab 746 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 749 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 750 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) ab 754 src/simh/linehistory.c abFree(&ab); ab 776 src/simh/linehistory.c struct abuf ab; ab 789 src/simh/linehistory.c abInit(&ab); ab 793 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 800 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 805 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 808 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); ab 815 src/simh/linehistory.c abAppend(&ab, "*", 1); ab 821 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); ab 828 src/simh/linehistory.c refreshShowHints(&ab, l, plen); ab 838 src/simh/linehistory.c abAppend(&ab, "\n", 1); ab 840 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 855 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 869 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 873 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) ab 877 src/simh/linehistory.c abFree(&ab);