lc 413 src/simh/linehistory.c freeCompletions(const linenoiseCompletions *lc) lc 417 src/simh/linehistory.c for (i = 0; i < lc->len; i++) lc 419 src/simh/linehistory.c FREE(lc->cvec[i]); lc 422 src/simh/linehistory.c if (lc->cvec != NULL) lc 424 src/simh/linehistory.c FREE(lc->cvec); lc 440 src/simh/linehistory.c linenoiseCompletions lc = { lc 446 src/simh/linehistory.c completionCallback(ls->buf, &lc); lc 447 src/simh/linehistory.c if (lc.len == 0) lc 458 src/simh/linehistory.c if (i < lc.len) lc 462 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); lc 463 src/simh/linehistory.c ls->buf = lc.cvec[i]; lc 477 src/simh/linehistory.c freeCompletions(&lc); lc 484 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); lc 485 src/simh/linehistory.c if (i == lc.len) lc 495 src/simh/linehistory.c if (i < lc.len) lc 497 src/simh/linehistory.c nwritten = snprintf(ls->buf, ls->buflen, "%s", lc.cvec[i]); lc 507 src/simh/linehistory.c freeCompletions(&lc); lc 555 src/simh/linehistory.c linenoiseAddCompletion(linenoiseCompletions *lc, const char *str) lc 567 src/simh/linehistory.c cvec = realloc(lc->cvec, sizeof ( char * ) * ( lc->len + 1 )); lc 574 src/simh/linehistory.c lc->cvec = cvec; lc 575 src/simh/linehistory.c lc->cvec[lc->len++] = copy;