Merge pull request #475 from gradha/pr_macosx_gnu_readline

Wraps variables inside `when` for macosx. Fixes #461.
This commit is contained in:
Araq 2013-06-09 14:40:30 -07:00
commit 0696ab09b1

View file

@ -156,6 +156,7 @@ const
type type
Thook_func* = proc (a2: cstring): cstring{.cdecl.} Thook_func* = proc (a2: cstring): cstring{.cdecl.}
when not defined(macosx):
# If non-null, this contains the address of a function that the application # If non-null, this contains the address of a function that the application
# wants called before trying the standard tilde expansions. The function # wants called before trying the standard tilde expansions. The function
# is called with the text sans tilde, and returns a malloc()'ed string # is called with the text sans tilde, and returns a malloc()'ed string
@ -229,6 +230,7 @@ type
# The current undo list for RL_LINE_BUFFER. # The current undo list for RL_LINE_BUFFER.
when not defined(macosx):
var undo_list*{.importc: "rl_undo_list", dynlib: readlineDll.}: ptr TUNDO_LIST var undo_list*{.importc: "rl_undo_list", dynlib: readlineDll.}: ptr TUNDO_LIST
# The data structure for mapping textual names to code addresses. # The data structure for mapping textual names to code addresses.
@ -239,6 +241,7 @@ type
function*: TCommandFunc function*: TCommandFunc
when not defined(macosx):
var funmap*{.importc: "funmap", dynlib: readlineDll.}: ptr ptr TFUNMAP var funmap*{.importc: "funmap", dynlib: readlineDll.}: ptr ptr TFUNMAP
# **************************************************************** # ****************************************************************