all repos — min @ fbacd017237284143204d32aeb792d861a6c8f47

A small but practical concatenative programming language.

fix(linenoise) Fixed errors in linenoise wrapper.
h3rald h3rald@h3rald.com
Tue, 24 May 2016 08:02:25 +0200
commit

fbacd017237284143204d32aeb792d861a6c8f47

parent

eb2a226e7a19f3efc25aecef4e0aec37029384ba

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M minim.nimminim.nim

@@ -38,7 +38,7 @@ -i, --interactive Starts MiNiM's Read Eval Print Loop"""

when USE_LINENOISE: import vendor/linenoise - proc completionCallback*(str: cstring, completions: ptr linenoiseCompletions) = + proc completionCallback*(str: cstring, completions: ptr linenoiseCompletions) {.cdecl.}= var words = ($str).split(" ") var w = if words.len > 0: words.pop else: "" var sep = ""
M vendor/linenoise.nimvendor/linenoise.nim

@@ -1,16 +1,16 @@

{.compile: "linenoise/liblinenoise.c".} -{.push importc.} type linenoiseCompletions* = object len*: csize cvec*: cstringArray - linenoiseCompletionCallback* = proc (a: cstring, b: ptr linenoiseCompletions) + linenoiseCompletionCallback* = proc (a: cstring, b: ptr linenoiseCompletions) {.cdecl.} const LN_HIDDEN_NO* = (0) # Fully visible entry. LN_HIDDEN_ALL* = (1) # Fully hidden, no echo at all LN_HIDDEN_STAR* = (2) # Hidden entry, echoing *'s back +{.push importc.} {.push cdecl.} # # The callback type for tab completion handlers.