cleaned up various modules
This commit is contained in:
parent
4367fb26ad
commit
d4bc11b654
12 changed files with 65 additions and 64 deletions
|
|
@ -142,7 +142,7 @@ proc history_get*(a2: cint): ptr THIST_ENTRY{.cdecl, importc: "history_get",
|
|||
# Return the timestamp associated with the HIST_ENTRY * passed as an
|
||||
# argument
|
||||
|
||||
proc history_get_time*(a2: ptr THIST_ENTRY): TTime{.cdecl,
|
||||
proc history_get_time*(a2: ptr THIST_ENTRY): Time{.cdecl,
|
||||
importc: "history_get_time", dynlib: historyDll.}
|
||||
# Return the number of bytes that the primary history entries are using.
|
||||
# This just adds up the lengths of the_history->lines.
|
||||
|
|
|
|||
|
|
@ -776,7 +776,7 @@ proc execute_next*(a2: cint): cint{.cdecl, importc: "rl_execute_next",
|
|||
proc clear_pending_input*(): cint{.cdecl, importc: "rl_clear_pending_input",
|
||||
dynlib: readlineDll.}
|
||||
proc read_key*(): cint{.cdecl, importc: "rl_read_key", dynlib: readlineDll.}
|
||||
proc getc*(a2: TFile): cint{.cdecl, importc: "rl_getc", dynlib: readlineDll.}
|
||||
proc getc*(a2: File): cint{.cdecl, importc: "rl_getc", dynlib: readlineDll.}
|
||||
proc set_keyboard_input_timeout*(a2: cint): cint{.cdecl,
|
||||
importc: "rl_set_keyboard_input_timeout", dynlib: readlineDll.}
|
||||
# `Public' utility functions .
|
||||
|
|
@ -881,8 +881,8 @@ when false:
|
|||
# The name of the terminal to use.
|
||||
var terminal_name*{.importc: "rl_terminal_name", dynlib: readlineDll.}: cstring
|
||||
# The input and output streams.
|
||||
var instream*{.importc: "rl_instream", dynlib: readlineDll.}: TFile
|
||||
var outstream*{.importc: "rl_outstream", dynlib: readlineDll.}: TFile
|
||||
var instream*{.importc: "rl_instream", dynlib: readlineDll.}: File
|
||||
var outstream*{.importc: "rl_outstream", dynlib: readlineDll.}: File
|
||||
# If non-zero, Readline gives values of LINES and COLUMNS from the environment
|
||||
# greater precedence than values fetched from the kernel when computing the
|
||||
# screen dimensions.
|
||||
|
|
@ -1184,8 +1184,8 @@ type
|
|||
insmode*: cint
|
||||
edmode*: cint
|
||||
kseqlen*: cint
|
||||
inf*: TFile
|
||||
outf*: TFile
|
||||
inf*: File
|
||||
outf*: File
|
||||
pendingin*: cint
|
||||
theMacro*: cstring # signal state
|
||||
catchsigs*: cint
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ type
|
|||
# Input function type
|
||||
|
||||
type
|
||||
Tgetc_func* = proc (a2: TFile): cint{.cdecl.}
|
||||
Tgetc_func* = proc (a2: File): cint{.cdecl.}
|
||||
|
||||
# Generic function that takes a character buffer (which could be the readline
|
||||
# line buffer) and an index into it (which could be rl_point) and returns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue