30 static int list_index, ncomp;
31 static char **compstrings;
40 const void *vmax = vmaxget();
46 ncomp = Rf_length(completions);
48 compstrings = (
char **)
malloc(ncomp *
sizeof(
char *));
49 if (!compstrings)
return (
char *)NULL;
50 for (i = 0; i < ncomp; i++)
51 compstrings[i] = strdup(Rf_translateChar(STRING_ELT(completions, i)));
57 if (list_index < ncomp)
58 return compstrings[list_index++];
61 if (ncomp > 0)
free(compstrings);
70 char **matches = (
char **)NULL;
#define R(a, b, c, d, e, f, g, h, i)
int rl_attempted_completion_over
int rl_completion_append_character
SEXP RComp_assignBufferSym
char * R_completion_generator(const char *text, int state)
SEXP RComp_completeTokenSym
SEXP RComp_retrieveCompsSym
SEXP RComp_assignStartSym
SEXP RComp_assignTokenSym
SEXP RComp_getFileCompSym
char ** R_custom_completion(const char *text, int start, int end)