Home | History | Annotate | Download | only in qemu

Lines Matching refs:history

185 	    if (rs->history[idx] == NULL)
193 rs->history[rs->hist_entry]);
203 rs->history[++rs->hist_entry] != NULL) {
205 rs->history[rs->hist_entry]);
222 /* We were editing an existing history entry: replace it */
223 hist_entry = rs->history[rs->hist_entry];
229 /* Search cmdline in history buffers */
231 hist_entry = rs->history[idx];
237 /* Put this entry at the end of history */
238 memmove(&rs->history[idx], &rs->history[idx + 1],
240 rs->history[READLINE_MAX_CMDS - 1] = NULL;
242 if (rs->history[idx] == NULL)
250 free(rs->history[0]);
251 memcpy(rs->history, &rs->history[1],
253 rs->history[READLINE_MAX_CMDS - 1] = NULL;
258 rs->history[idx] = new_entry;
463 return rs->history[index];