diff options
author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-06-17 03:14:20 +0900 |
---|---|---|
committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-06-17 03:14:20 +0900 |
commit | cad449dff9c50bddcce41df04c5b3be771d28d04 (patch) | |
tree | 843a10df33202e06be4aca3ad381e4de18f20137 /src/calculer.c | |
parent | 2e5693e7cf1e3c408916a1af6d16dc6363b835fe (diff) |
Improve build system
Add support for toggling debug on and off and for using GNU Readline
or not.
Diffstat (limited to 'src/calculer.c')
-rw-r--r-- | src/calculer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/calculer.c b/src/calculer.c index 8d13052..be11895 100644 --- a/src/calculer.c +++ b/src/calculer.c @@ -25,7 +25,7 @@ #include <time.h> #include <unistd.h> -#include "linenoise.h" +#include "_readline.h" static int lower = 0; static int upper = 100; @@ -169,7 +169,7 @@ main(int argc, char *argv[]) sprintf(prompt, "%d + %d = ", x, y); void *measure_data = measure_before(); - input = linenoise(prompt); + input = readline(prompt); if ((!input) || (*input == '\0')) { |