Lines Matching refs:idx
177 int idx;
183 for (idx = 0; idx < READLINE_MAX_CMDS; idx++) {
184 if (rs->history[idx] == NULL)
187 rs->hist_entry = idx;
215 int idx;
223 idx = rs->hist_entry;
229 for (idx = 0; idx < READLINE_MAX_CMDS; idx++) {
230 hist_entry = rs->history[idx];
237 memmove(&rs->history[idx], &rs->history[idx + 1],
238 (READLINE_MAX_CMDS - idx + 1) * sizeof(char *));
240 for (; idx < READLINE_MAX_CMDS; idx++) {
241 if (rs->history[idx] == NULL)
247 if (idx == READLINE_MAX_CMDS) {
253 idx = READLINE_MAX_CMDS - 1;
257 rs->history[idx] = new_entry;