ESP-IDF
history
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/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
history variable
Syntax
Show:
Summary
Declaration
from
linenoise.c:143
static
char
*
*
history
=
NULL
;
Examples
References
from
examples
Code
Location
Referrer
static
char
*
*
history
=
NULL
;
linenoise.c:143
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()
strncpy
(
l
->
buf
,
history
[
history_len
-
1
-
l
->
history_index
]
,
l
->
buflen
)
;
linenoise.c:772
linenoiseEditHistoryNext()
free
(
history
[
history_len
]
)
;
linenoise.c:928
linenoiseEdit()
free
(
history
[
history_len
]
)
;
linenoise.c:952
linenoiseEdit()
if
(
history
)
{
linenoise.c:1210
linenoiseHistoryFree()
free
(
history
[
j
]
)
;
linenoise.c:1212
linenoiseHistoryFree()
free
(
history
)
;
linenoise.c:1214
linenoiseHistoryFree()
history
=
NULL
;
linenoise.c:1216
linenoiseHistoryFree()
if
(
history
==
NULL
)
{
linenoise.c:1232
linenoiseHistoryAdd()
history
=
malloc
(
sizeof
(
char
*
)
*
history_max_len
)
;
linenoise.c:1233
linenoiseHistoryAdd()
if
(
history
==
NULL
)
return
0
;
linenoise.c:1234
linenoiseHistoryAdd()
memset
(
history
,
0
,
(
sizeof
(
char
*
)
*
history_max_len
)
)
;
linenoise.c:1235
linenoiseHistoryAdd()
if
(
history_len
&&
!
strcmp
(
history
[
history_len
-
1
]
,
line
)
)
return
0
;
linenoise.c:1239
linenoiseHistoryAdd()
free
(
history
[
0
]
)
;
linenoise.c:1246
linenoiseHistoryAdd()
memmove
(
history
,
history
+
1
,
sizeof
(
char
*
)
*
(
history_max_len
-
1
)
)
;
linenoise.c:1247
linenoiseHistoryAdd()
history
[
history_len
]
=
linecopy
;
linenoise.c:1250
linenoiseHistoryAdd()
if
(
history
)
{
linenoise.c:1263
linenoiseHistorySetMaxLen()
for
(
j
=
0
;
j
<
tocopy
-
len
;
j
++
)
free
(
history
[
j
]
)
;
linenoise.c:1273
linenoiseHistorySetMaxLen()
memcpy
(
new
,
history
+
(
history_len
-
tocopy
)
,
sizeof
(
char
*
)
*
tocopy
)
;
linenoise.c:1277
linenoiseHistorySetMaxLen()
free
(
history
)
;
linenoise.c:1278
linenoiseHistorySetMaxLen()
history
=
new
;
linenoise.c:1279
linenoiseHistorySetMaxLen()
fprintf
(
fp
,
"%s\n"
,
history
[
j
]
)
;
linenoise.c:1296
linenoiseHistorySave()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
history
is written by 3 functions and is read by 6 functions:
linenoiseHistoryFree()
linenoiseHistoryAdd()
linenoiseHistorySetMaxLen()
All items filtered out
history
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