Wraps variables inside when for macosx. Refs #461.

This commit is contained in:
Grzegorz Adam Hankiewicz 2013-06-09 22:51:27 +02:00
commit 07d19df80f

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
# **************************************************************** # ****************************************************************