lc 437 src/simh/linehistory.c freeCompletions(const linenoiseCompletions *lc) lc 441 src/simh/linehistory.c for (i = 0; i < lc->len; i++) lc 443 src/simh/linehistory.c FREE(lc->cvec[i]); lc 446 src/simh/linehistory.c if (lc->cvec != NULL) lc 448 src/simh/linehistory.c FREE(lc->cvec); lc 464 src/simh/linehistory.c linenoiseCompletions lc = { lc 470 src/simh/linehistory.c completionCallback(ls->buf, &lc); lc 471 src/simh/linehistory.c if (lc.len == 0) lc 482 src/simh/linehistory.c if (i < lc.len) lc 486 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); lc 487 src/simh/linehistory.c ls->buf = lc.cvec[i]; lc 501 src/simh/linehistory.c freeCompletions(&lc); lc 508 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); lc 509 src/simh/linehistory.c if (i == lc.len) lc 519 src/simh/linehistory.c if (i < lc.len) lc 521 src/simh/linehistory.c nwritten = snprintf(ls->buf, ls->buflen, "%s", lc.cvec[i]); lc 531 src/simh/linehistory.c freeCompletions(&lc); lc 579 src/simh/linehistory.c linenoiseAddCompletion(linenoiseCompletions *lc, const char *str) lc 591 src/simh/linehistory.c cvec = realloc(lc->cvec, sizeof ( char * ) * ( lc->len + 1 )); lc 598 src/simh/linehistory.c lc->cvec = cvec; lc 599 src/simh/linehistory.c lc->cvec[lc->len++] = copy;