MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / read_history

Function read_history

extern/editline/src/readline.c:1348–1359  ·  view source on GitHub ↗

* read history from a file given */

Source from the content-addressed store, hash-verified

1346 * read history from a file given
1347 */
1348int
1349read_history(const char *filename)
1350{
1351 HistEvent ev;
1352
1353 if (h == NULL || e == NULL)
1354 rl_initialize();
1355 if (filename == NULL && (filename = _default_history_file()) == NULL)
1356 return errno;
1357 return history(h, &ev, H_LOAD, filename) == -1 ?
1358 (errno ? errno : EINVAL) : 0;
1359}
1360
1361
1362/*

Callers

nothing calls this directly

Calls 3

rl_initializeFunction · 0.85
_default_history_fileFunction · 0.85
historyClass · 0.85

Tested by

no test coverage detected