bugfix: readline wrapper; bugfix: evaluation of type conversions

This commit is contained in:
Araq 2011-02-14 21:20:35 +01:00
commit 5c7e3efbc3
10 changed files with 57 additions and 40 deletions

View file

@ -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

View file

@ -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