Module history

Types

Thistdata* = pointer
THIST_ENTRY* {.pure, final.} = object 
  line*: cstring
  timestamp*: cstring
  data*: Thistdata
THISTORY_STATE* {.pure, final.} = object 
  entries*: ptr ptr THIST_ENTRY
  offset*: cint
  length*: cint
  size*: cint
  flags*: cint

Consts

HS_STIFLED* = 0x00000001

Procs

proc using_history*() {.cdecl, importc: "using_history", dynlib: historyDll.}
proc history_get_history_state*(): ptr THISTORY_STATE {.cdecl, 
    importc: "history_get_history_state", dynlib: historyDll.}
proc history_set_history_state*(a2: ptr THISTORY_STATE) {.cdecl, 
    importc: "history_set_history_state", dynlib: historyDll.}
proc add_history*(a2: cstring) {.cdecl, importc: "add_history", 
                                 dynlib: historyDll.}
proc add_history_time*(a2: cstring) {.cdecl, importc: "add_history_time", 
                                      dynlib: historyDll.}
proc remove_history*(a2: cint): ptr THIST_ENTRY {.cdecl, 
    importc: "remove_history", dynlib: historyDll.}
proc free_history_entry*(a2: ptr THIST_ENTRY): Thistdata {.cdecl, 
    importc: "free_history_entry", dynlib: historyDll.}
proc replace_history_entry*(a2: cint; a3: cstring; a4: Thistdata): ptr THIST_ENTRY {.
    cdecl, importc: "replace_history_entry", dynlib: historyDll.}
proc clear_history*() {.cdecl, importc: "clear_history", dynlib: historyDll.}
proc stifle_history*(a2: cint) {.cdecl, importc: "stifle_history", 
                                 dynlib: historyDll.}
proc unstifle_history*(): cint {.cdecl, importc: "unstifle_history", 
                                 dynlib: historyDll.}
proc history_is_stifled*(): cint {.cdecl, importc: "history_is_stifled", 
                                   dynlib: historyDll.}
proc history_list*(): ptr ptr THIST_ENTRY {.cdecl, importc: "history_list", 
    dynlib: historyDll.}
proc where_history*(): cint {.cdecl, importc: "where_history", 
                              dynlib: historyDll.}
proc current_history*(): ptr THIST_ENTRY {.cdecl, importc: "current_history", 
    dynlib: historyDll.}
proc history_get*(a2: cint): ptr THIST_ENTRY {.cdecl, importc: "history_get", 
    dynlib: historyDll.}
proc history_get_time*(a2: ptr THIST_ENTRY): TTime {.cdecl, 
    importc: "history_get_time", dynlib: historyDll.}
proc history_total_bytes*(): cint {.cdecl, importc: "history_total_bytes", 
                                    dynlib: historyDll.}
proc history_set_pos*(a2: cint): cint {.cdecl, importc: "history_set_pos", 
                                        dynlib: historyDll.}
proc previous_history*(): ptr THIST_ENTRY {.cdecl, importc: "previous_history", 
    dynlib: historyDll.}
proc next_history*(): ptr THIST_ENTRY {.cdecl, importc: "next_history", 
                                        dynlib: historyDll.}
proc history_search*(a2: cstring; a3: cint): cint {.cdecl, 
    importc: "history_search", dynlib: historyDll.}
proc history_search_prefix*(a2: cstring; a3: cint): cint {.cdecl, 
    importc: "history_search_prefix", dynlib: historyDll.}
proc history_search_pos*(a2: cstring; a3: cint; a4: cint): cint {.cdecl, 
    importc: "history_search_pos", dynlib: historyDll.}
proc read_history*(a2: cstring): cint {.cdecl, importc: "read_history", 
                                        dynlib: historyDll.}
proc read_history_range*(a2: cstring; a3: cint; a4: cint): cint {.cdecl, 
    importc: "read_history_range", dynlib: historyDll.}
proc write_history*(a2: cstring): cint {.cdecl, importc: "write_history", 
    dynlib: historyDll.}
proc append_history*(a2: cint; a3: cstring): cint {.cdecl, 
    importc: "append_history", dynlib: historyDll.}
proc history_truncate_file*(a2: cstring; a3: cint): cint {.cdecl, 
    importc: "history_truncate_file", dynlib: historyDll.}
proc history_expand*(a2: cstring; a3: cstringArray): cint {.cdecl, 
    importc: "history_expand", dynlib: historyDll.}
proc history_arg_extract*(a2: cint; a3: cint; a4: cstring): cstring {.cdecl, 
    importc: "history_arg_extract", dynlib: historyDll.}
proc get_history_event*(a2: cstring; a3: ptr cint; a4: cint): cstring {.cdecl, 
    importc: "get_history_event", dynlib: historyDll.}
proc history_tokenize*(a2: cstring): cstringArray {.cdecl, 
    importc: "history_tokenize", dynlib: historyDll.}

Templates

template HISTENT_BYTES*(hs: expr): expr
Generated: 2014-03-11 21:26:34 UTC