ab 618 src/simh/linehistory.c abInit(struct abuf *ab) ab 620 src/simh/linehistory.c ab->b = NULL; ab 621 src/simh/linehistory.c ab->len = 0; ab 625 src/simh/linehistory.c abAppend(struct abuf *ab, const char *s, int len) ab 632 src/simh/linehistory.c char *new = realloc(ab->b, 1 + ab->len + len); ab 639 src/simh/linehistory.c memcpy(new + ab->len, s, len); ab 640 src/simh/linehistory.c ab->b = new; ab 641 src/simh/linehistory.c ab->len += len; ab 645 src/simh/linehistory.c abFree(const struct abuf *ab) ab 647 src/simh/linehistory.c free(ab->b); /* X-LINTED: FREE */ ab 658 src/simh/linehistory.c refreshShowHints(struct abuf *ab, const struct linenoiseState *l, int plen) ab 690 src/simh/linehistory.c abAppend(ab, seq, strlen(seq)); ab 691 src/simh/linehistory.c abAppend(ab, hint, hintlen); ab 694 src/simh/linehistory.c abAppend(ab, "\033[0m", 4); ab 724 src/simh/linehistory.c struct abuf ab; ab 737 src/simh/linehistory.c abInit(&ab); ab 740 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 742 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); ab 748 src/simh/linehistory.c abAppend(&ab, "*", 1); ab 754 src/simh/linehistory.c abAppend(&ab, buf, len); ab 760 src/simh/linehistory.c refreshShowHints(&ab, l, plen); ab 764 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 767 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 768 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) ab 772 src/simh/linehistory.c abFree(&ab); ab 794 src/simh/linehistory.c struct abuf ab; ab 807 src/simh/linehistory.c abInit(&ab); ab 811 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 818 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 823 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 826 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); ab 833 src/simh/linehistory.c abAppend(&ab, "*", 1); ab 839 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); ab 846 src/simh/linehistory.c refreshShowHints(&ab, l, plen); ab 856 src/simh/linehistory.c abAppend(&ab, "\n", 1); //-NLOK ab 858 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 873 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 887 src/simh/linehistory.c abAppend(&ab, seq, strlen(seq)); ab 891 src/simh/linehistory.c if (write(fd, ab.b, ab.len) == -1) ab 895 src/simh/linehistory.c abFree(&ab);