PatchworkOS
3984a1d
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
history.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
stdint.h
>
4
#include <
string.h
>
5
6
#define HISTORY_MAX_ENTRY 32
7
8
typedef
struct
9
{
10
char
*
entries
[
HISTORY_MAX_ENTRY
];
11
uint64_t
count
;
12
uint64_t
index
;
13
}
history_t
;
14
15
void
history_init
(
history_t
*
history
);
16
17
void
history_deinit
(
history_t
*
history
);
18
19
void
history_push
(
history_t
*
history
,
const
char
* entry);
20
21
const
char
*
history_next
(
history_t
*
history
);
22
23
const
char
*
history_previous
(
history_t
*
history
);
HISTORY_MAX_ENTRY
#define HISTORY_MAX_ENTRY
Definition
history.h:6
history_previous
const char * history_previous(history_t *history)
Definition
history.c:60
history_deinit
void history_deinit(history_t *history)
Definition
history.c:12
history_push
void history_push(history_t *history, const char *entry)
Definition
history.c:20
history_init
void history_init(history_t *history)
Definition
history.c:6
history_next
const char * history_next(history_t *history)
Definition
history.c:48
history
static history_t history
Definition
interactive.c:19
entries
static start_entry_t entries[START_ENTRY_MAX]
Definition
start_menu.c:22
stdint.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
string.h
history_t
Definition
history.h:9
history_t::index
uint64_t index
Definition
history.h:12
history_t::count
uint64_t count
Definition
history.h:11
src
programs
core
shell
history.h
Generated on Sat Jan 10 2026 00:03:16 for PatchworkOS by
1.9.8