Replace linenoise with libedit in code and build.
This commit is contained in:
parent
f47f3a4603
commit
ad3b097c9e
5 changed files with 24 additions and 65 deletions
5
main.c
5
main.c
|
@ -21,7 +21,6 @@
|
|||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include "advent.h"
|
||||
#include "linenoise/linenoise.h"
|
||||
#include "dungeon.h"
|
||||
|
||||
#define DIM(a) (sizeof(a)/sizeof(a[0]))
|
||||
|
@ -115,8 +114,6 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
linenoiseHistorySetMaxLen(350);
|
||||
|
||||
/* Initialize game variables */
|
||||
long seedval = initialise();
|
||||
|
||||
|
@ -1036,7 +1033,7 @@ L2600:
|
|||
}
|
||||
|
||||
strncpy(inputbuf, input, LINESIZE - 1);
|
||||
linenoiseFree(input);
|
||||
free(input);
|
||||
|
||||
long tokens[4];
|
||||
tokenize(inputbuf, tokens);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue