projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace linenoise with libedit in code and build.
[open-adventure.git]
/
main.c
diff --git
a/main.c
b/main.c
index 84eca5758177d5d262d015186fb02bb5e3aeb80b..ce383a0fbd2366cf2c86ffc09ced36c8cdc1795f 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-21,7
+21,6
@@
#include <signal.h>
#include <string.h>
#include "advent.h"
#include <signal.h>
#include <string.h>
#include "advent.h"
-#include "linenoise/linenoise.h"
#include "dungeon.h"
#define DIM(a) (sizeof(a)/sizeof(a[0]))
#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();
/* Initialize game variables */
long seedval = initialise();
@@
-1036,7
+1033,7
@@
L2600:
}
strncpy(inputbuf, input, LINESIZE - 1);
}
strncpy(inputbuf, input, LINESIZE - 1);
-
linenoiseF
ree(input);
+
f
ree(input);
long tokens[4];
tokenize(inputbuf, tokens);
long tokens[4];
tokenize(inputbuf, tokens);