|
PatchworkOS
|
Go to the source code of this file.
Data Structures | |
| struct | history_t |
Macros | |
| #define | HISTORY_MAX_ENTRY 32 |
Functions | |
| void | history_init (history_t *history) |
| void | history_deinit (history_t *history) |
| void | history_push (history_t *history, const char *entry) |
| const char * | history_next (history_t *history) |
| const char * | history_previous (history_t *history) |
| void history_deinit | ( | history_t * | history | ) |
Definition at line 12 of file history.c.
References history_t::count, history_t::entries, and free().
Referenced by interactive_shell().
| void history_init | ( | history_t * | history | ) |
Definition at line 6 of file history.c.
References history_t::count, and history_t::index.
Referenced by interactive_shell().
| const char * history_next | ( | history_t * | history | ) |
Definition at line 48 of file history.c.
References history_t::count, history_t::entries, history_t::index, and NULL.
Referenced by interactive_handle_ansi().
| const char * history_previous | ( | history_t * | history | ) |
Definition at line 60 of file history.c.
References history_t::count, history_t::entries, history_t::index, and NULL.
Referenced by interactive_handle_ansi().
| void history_push | ( | history_t * | history, |
| const char * | entry | ||
| ) |
Definition at line 20 of file history.c.
References history_t::count, history_t::entries, free(), HISTORY_MAX_ENTRY, history_t::index, malloc(), memmove(), strcmp(), strcpy(), and strlen().
Referenced by interactive_execute_command().