bugfix: readline wrapper; bugfix: evaluation of type conversions
This commit is contained in:
parent
55c4074647
commit
5c7e3efbc3
10 changed files with 57 additions and 40 deletions
|
|
@ -34,4 +34,3 @@ else:
|
|||
# disable auto-complete:
|
||||
discard readline.bind_key('\t'.ord, readline.abort)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -19,15 +19,11 @@
|
|||
#
|
||||
|
||||
{.deadCodeElim: on.}
|
||||
when defined(windows):
|
||||
const
|
||||
historyDll = "history.dll"
|
||||
elif defined(macosx):
|
||||
const
|
||||
historyDll = "libhistory.dynlib"
|
||||
else:
|
||||
const
|
||||
historyDll = "libhistory.so.6(|.0)"
|
||||
|
||||
import readline
|
||||
|
||||
const
|
||||
historyDll = readlineDll
|
||||
|
||||
import times, rltypedefs
|
||||
|
||||
|
|
|
|||
|
|
@ -21,13 +21,14 @@
|
|||
{.deadCodeElim: on.}
|
||||
when defined(windows):
|
||||
const
|
||||
readlineDll = "readline.dll"
|
||||
readlineDll* = "readline.dll"
|
||||
elif defined(macosx):
|
||||
# Mac OS X ships with 'libedit'
|
||||
const
|
||||
readlineDll = "libreadline.dynlib"
|
||||
readlineDll* = "libedit(.2|.1|).dylib"
|
||||
else:
|
||||
const
|
||||
readlineDll = "libreadline.so.6(|.0)"
|
||||
readlineDll* = "libreadline.so.6(|.0)"
|
||||
## mangle "'TCommandFunc'" TCommandFunc
|
||||
## mangle TvcpFunc TvcpFunc
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue