lc 418 src/simh/linehistory.c freeCompletions(const linenoiseCompletions *lc) lc 422 src/simh/linehistory.c for (i = 0; i < lc->len; i++) lc 424 src/simh/linehistory.c FREE(lc->cvec[i]); lc 427 src/simh/linehistory.c if (lc->cvec != NULL) lc 429 src/simh/linehistory.c FREE(lc->cvec); lc 445 src/simh/linehistory.c linenoiseCompletions lc = { lc 451 src/simh/linehistory.c completionCallback(ls->buf, &lc); lc 452 src/simh/linehistory.c if (lc.len == 0) lc 463 src/simh/linehistory.c if (i < lc.len) lc 467 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); lc 468 src/simh/linehistory.c ls->buf = lc.cvec[i]; lc 482 src/simh/linehistory.c freeCompletions(&lc); lc 489 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); lc 490 src/simh/linehistory.c if (i == lc.len) lc 500 src/simh/linehistory.c if (i < lc.len) lc 502 src/simh/linehistory.c nwritten = snprintf(ls->buf, ls->buflen, "%s", lc.cvec[i]); lc 512 src/simh/linehistory.c freeCompletions(&lc); lc 560 src/simh/linehistory.c linenoiseAddCompletion(linenoiseCompletions *lc, const char *str) lc 572 src/simh/linehistory.c cvec = realloc(lc->cvec, sizeof ( char * ) * ( lc->len + 1 )); lc 579 src/simh/linehistory.c lc->cvec = cvec; lc 580 src/simh/linehistory.c lc->cvec[lc->len++] = copy;