lc 419 src/simh/linehistory.c freeCompletions(const linenoiseCompletions *lc) lc 423 src/simh/linehistory.c for (i = 0; i < lc->len; i++) lc 425 src/simh/linehistory.c FREE(lc->cvec[i]); lc 428 src/simh/linehistory.c if (lc->cvec != NULL) lc 430 src/simh/linehistory.c FREE(lc->cvec); lc 446 src/simh/linehistory.c linenoiseCompletions lc = { lc 452 src/simh/linehistory.c completionCallback(ls->buf, &lc); lc 453 src/simh/linehistory.c if (lc.len == 0) lc 464 src/simh/linehistory.c if (i < lc.len) lc 468 src/simh/linehistory.c ls->len = ls->pos = strlen(lc.cvec[i]); lc 469 src/simh/linehistory.c ls->buf = lc.cvec[i]; lc 483 src/simh/linehistory.c freeCompletions(&lc); lc 490 src/simh/linehistory.c i = ( i + 1 ) % ( lc.len + 1 ); lc 491 src/simh/linehistory.c if (i == lc.len) lc 501 src/simh/linehistory.c if (i < lc.len) lc 503 src/simh/linehistory.c nwritten = snprintf(ls->buf, ls->buflen, "%s", lc.cvec[i]); lc 513 src/simh/linehistory.c freeCompletions(&lc); lc 561 src/simh/linehistory.c linenoiseAddCompletion(linenoiseCompletions *lc, const char *str) lc 573 src/simh/linehistory.c cvec = realloc(lc->cvec, sizeof ( char * ) * ( lc->len + 1 )); lc 580 src/simh/linehistory.c lc->cvec = cvec; lc 581 src/simh/linehistory.c lc->cvec[lc->len++] = copy;