make linenoise compile in some /tmp directory
This commit is contained in:
parent
8e845cc79f
commit
c7b9883ad0
2 changed files with 5 additions and 2 deletions
|
|
@ -116,7 +116,9 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <unistd.h>
|
||||
#include "clinenoise.h"
|
||||
#ifndef __LINENOISE_H
|
||||
# include "clinenoise.h"
|
||||
#endif
|
||||
|
||||
#define LINENOISE_DEFAULT_HISTORY_MAX_LEN 100
|
||||
#define LINENOISE_MAX_LINE 4096
|
||||
|
|
|
|||
|
|
@ -14,7 +14,8 @@ type
|
|||
|
||||
CompletionCallback* = proc (a2: cstring; a3: ptr Completions) {.cdecl.}
|
||||
|
||||
{.compile: "clinenoise.c".}
|
||||
{.emit: staticRead"clinenoise.h".}
|
||||
{.emit: staticRead"clinenoise.c".}
|
||||
|
||||
proc setCompletionCallback*(a2: ptr CompletionCallback) {.
|
||||
importc: "linenoiseSetCompletionCallback".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue