ESP-IDF
history_len
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (4/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
history_len
history_len variable
Syntax
Show:
Summary
Declaration
from
linenoise.c:142
static
int
history_len
=
0
;
Examples
References
from
examples
Code
Location
Referrer
static
int
history_len
=
0
;
linenoise.c:142
if
(
history_len
>
1
)
{
linenoise.c:758
linenoiseEditHistoryNext()
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()
}
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()
history_len
--
;
linenoise.c:927
linenoiseEdit()
free
(
history
[
history_len
]
)
;
linenoise.c:928
linenoiseEdit()
history_len
--
;
linenoise.c:951
linenoiseEdit()
free
(
history
[
history_len
]
)
;
linenoise.c:952
linenoiseEdit()
for
(
int
j
=
0
;
j
<
history_len
;
j
++
)
{
linenoise.c:1211
linenoiseHistoryFree()
if
(
history_len
&&
!
strcmp
(
history
[
history_len
-
1
]
,
line
)
)
return
0
;
linenoise.c:1239
linenoiseHistoryAdd()
if
(
history_len
==
history_max_len
)
{
linenoise.c:1245
linenoiseHistoryAdd()
history_len
--
;
linenoise.c:1248
linenoiseHistoryAdd()
history
[
history_len
]
=
linecopy
;
linenoise.c:1250
linenoiseHistoryAdd()
history_len
++
;
linenoise.c:1251
linenoiseHistoryAdd()
int
tocopy
=
history_len
;
linenoise.c:1264
linenoiseHistorySetMaxLen()
memcpy
(
new
,
history
+
(
history_len
-
tocopy
)
,
sizeof
(
char
*
)
*
tocopy
)
;
linenoise.c:1277
linenoiseHistorySetMaxLen()
if
(
history_len
>
history_max_len
)
linenoise.c:1282
linenoiseHistorySetMaxLen()
history_len
=
history_max_len
;
linenoise.c:1283
linenoiseHistorySetMaxLen()
for
(
j
=
0
;
j
<
history_len
;
j
++
)
linenoise.c:1295
linenoiseHistorySave()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
history_len
is written by 3 functions and is read by 6 functions:
linenoiseEdit()
linenoiseHistoryAdd()
linenoiseHistorySetMaxLen()
All items filtered out
history_len
linenoiseEditHistoryNext()
linenoiseEdit()
linenoiseHistoryFree()
linenoiseHistoryAdd()
linenoiseHistorySetMaxLen()
linenoiseHistorySave()
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