config/history

Types

History = ref object
  first*: HistoryEntry
  last*: HistoryEntry
  mtime*: int64
  transient*: bool
HistoryEntry = ref object
  s*: string
  prev*: HistoryEntry
  next*: HistoryEntry

Procs

proc add(hist: History; s: sink string) {....raises: [], tags: [], forbids: [].}
proc newHistory(maxLen: int; mtime = 0'i64): History {....raises: [], tags: [],
    forbids: [].}
proc parse(hist: History; ps: PosixStream; otime = int64.low; merge = false): Opt[
    void] {....raises: [], tags: [], forbids: [].}
proc write(hist: History; file: string): Opt[void] {....raises: [], tags: [],
    forbids: [].}
proc write(hist: History; ps: PosixStream; sync, reverse: bool): Opt[void] {.
    ...raises: [], tags: [], forbids: [].}