From d0edeec8fb8fa5abee8b3065cea5e4882d0c51c4 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Tue, 19 May 2020 11:39:21 +0300 Subject: make the atom functions not use global state This greatly helps with memory management on applications that may want to daemonize and open/close database several times. Also the lifetime and "owner" of memory for all data is now explicitly bound to owning struct apk_database, which might be helpful when writing language bindings. As side effect, the interned "atoms" are unique only within what apk_database, so comparing packages from different apk_database may not work as expected. Fixes #10697 --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 4a055ce..3bbd51e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -18,7 +18,7 @@ ZLIB_LIBS := $(shell $(PKG_CONFIG) --libs zlib) # Dynamic library libapk.so.$(VERSION)-objs := \ common.o database.o package.o commit.o solver.o \ - version.o blob.o hash.o print.o \ + version.o atom.o blob.o hash.o print.o \ io.o io_url.o io_gunzip.o io_archive.o libapk.so.$(VERSION)-libs := libfetch/libfetch.a -- cgit v1.2.3-70-g09d2