From cad449dff9c50bddcce41df04c5b3be771d28d04 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Mon, 17 Jun 2024 03:14:20 +0900 Subject: Improve build system Add support for toggling debug on and off and for using GNU Readline or not. --- src/calculer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/calculer.c') 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 #include -#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')) { -- cgit v1.2.3