Home | History | Annotate | Download | only in qemu

Lines Matching refs:idx

178     int idx;
184 for (idx = 0; idx < READLINE_MAX_CMDS; idx++) {
185 if (rs->history[idx] == NULL)
188 rs->hist_entry = idx;
216 int idx;
224 idx = rs->hist_entry;
230 for (idx = 0; idx < READLINE_MAX_CMDS; idx++) {
231 hist_entry = rs->history[idx];
238 memmove(&rs->history[idx], &rs->history[idx + 1],
239 (READLINE_MAX_CMDS - idx + 1) * sizeof(char *));
241 for (; idx < READLINE_MAX_CMDS; idx++) {
242 if (rs->history[idx] == NULL)
248 if (idx == READLINE_MAX_CMDS) {
254 idx = READLINE_MAX_CMDS - 1;
258 rs->history[idx] = new_entry;