Remove readline dependency

This commit is contained in:
Bruce Hill 2024-09-04 14:36:23 -04:00
parent 0d098c118b
commit 570c4c63ca
3 changed files with 2 additions and 6 deletions

View File

@ -23,7 +23,7 @@ EXTRA=
G=-ggdb G=-ggdb
O=-Og O=-Og
CFLAGS=$(CCONFIG) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS) CFLAGS=$(CCONFIG) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS)
LDLIBS=-lgc -lcord -lreadline -lm -lunistring -lgmp -ldl LDLIBS=-lgc -lcord -lm -lunistring -lgmp -ldl
BUILTIN_OBJS=builtins/array.o builtins/bool.o builtins/channel.o builtins/nums.o builtins/functions.o builtins/integers.o \ BUILTIN_OBJS=builtins/array.o builtins/bool.o builtins/channel.o builtins/nums.o builtins/functions.o builtins/integers.o \
builtins/pointer.o builtins/memory.o builtins/text.o builtins/thread.o builtins/c_string.o builtins/table.o \ builtins/pointer.o builtins/memory.o builtins/text.o builtins/thread.o builtins/c_string.o builtins/table.o \
builtins/types.o builtins/util.o builtins/files.o builtins/range.o builtins/types.o builtins/util.o builtins/files.o builtins/range.o
@ -35,7 +35,7 @@ tomo: tomo.o $(BUILTIN_OBJS) SipHash/halfsiphash.o ast.o parse.o environment.o t
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@ $(CC) $(CFLAGS) $(LDFLAGS) $^ $(LDLIBS) -o $@
libtomo.so: $(BUILTIN_OBJS) SipHash/halfsiphash.o libtomo.so: $(BUILTIN_OBJS) SipHash/halfsiphash.o
$(CC) $^ $(CFLAGS) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS) -lgc -lcord -lreadline -lm -lunistring -lgmp -ldl -Wl,-soname,libtomo.so -shared -o $@ $(CC) $^ $(CFLAGS) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS) -lgc -lcord -lm -lunistring -lgmp -ldl -Wl,-soname,libtomo.so -shared -o $@
SipHash/halfsiphash.c: SipHash/halfsiphash.c:
git submodule update --init --recursive git submodule update --init --recursive

View File

@ -79,8 +79,6 @@ Tomo has a very small set of dependencies:
- [GNU multiple precision arithmetic library](https://gmplib.org/manual/index) - [GNU multiple precision arithmetic library](https://gmplib.org/manual/index)
for arbitrary precision integer math. for arbitrary precision integer math.
- [Binutils](https://www.gnu.org/software/binutils/) for stack traces. - [Binutils](https://www.gnu.org/software/binutils/) for stack traces.
- [Readline](https://tiswww.case.edu/php/chet/readline/rltop.html) for reading
user input with nice editing.
- a C compiler - a C compiler
- and libc/libm, which should definitely already be installed. - and libc/libm, which should definitely already be installed.

View File

@ -8,8 +8,6 @@
#include <gmp.h> #include <gmp.h>
#include <limits.h> #include <limits.h>
#include <printf.h> #include <printf.h>
#include <readline/history.h>
#include <readline/readline.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>