ESP-IDF
linenoiseState::history_index
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
linenoiseState::history_index
linenoiseState::history_index field
Syntax
Show:
Summary
Declaration
from
linenoise.c:159
int
history_index
;
Examples
References
from
examples
Code
Location
Referrer
int
history_index
;
/* The history index we are currently editing. */
linenoise.c:159
free
(
history
[
history_len
-
1
-
l
->
history_index
]
)
;
linenoise.c:761
linenoiseEditHistoryNext()
history
[
history_len
-
1
-
l
->
history_index
]
=
strdup
(
l
->
buf
)
;
linenoise.c:762
linenoiseEditHistoryNext()
l
->
history_index
+=
(
dir
==
LINENOISE_HISTORY_PREV
)
?
1
:
-
1
;
linenoise.c:764
linenoiseEditHistoryNext()
if
(
l
->
history_index
<
0
)
{
linenoise.c:765
linenoiseEditHistoryNext()
l
->
history_index
=
0
;
linenoise.c:766
linenoiseEditHistoryNext()
}
else
if
(
l
->
history_index
>=
history_len
)
{
linenoise.c:768
linenoiseEditHistoryNext()
l
->
history_index
=
history_len
-
1
;
linenoise.c:769
linenoiseEditHistoryNext()
strncpy
(
l
->
buf
,
history
[
history_len
-
1
-
l
->
history_index
]
,
l
->
buflen
)
;
linenoise.c:772
linenoiseEditHistoryNext()
l
.
history_index
=
0
;
linenoise.c:865
linenoiseEdit()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
linenoiseState::history_index
is written by 2 functions and is read by 1 function:
linenoiseEditHistoryNext()
linenoiseEdit()
All items filtered out
linenoiseState::history_index
linenoiseEditHistoryNext()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out