Add third_party SimpleArchiver (data structures)

Reusing the data structures implemented in the SimpleArchiver project.
This commit is contained in:
Stephen Seo 2024-08-30 11:58:11 +09:00
parent 77945f34b9
commit d5a02de85e
3 changed files with 12 additions and 2 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "third_party/SimpleArchiver"]
path = third_party/SimpleArchiver
url = https://git.seodisparate.com/stephenseo/SimpleArchiver.git

View file

@ -1,4 +1,6 @@
COMMON_FLAGS = -Wall -Wextra -Wpedantic COMMON_FLAGS = -Wall -Wextra -Wpedantic \
-Ithird_party/SimpleArchiver/src/data_structures \
-Ithird_party/SimpleArchiver/src/algorithms
DEBUG_FLAGS = -Og -g DEBUG_FLAGS = -Og -g
RELEASE_FLAGS = -O3 -DNDEBUG RELEASE_FLAGS = -O3 -DNDEBUG
@ -14,7 +16,11 @@ SOURCES = \
src/big_endian.c \ src/big_endian.c \
src/tcp_socket.c \ src/tcp_socket.c \
src/signal_handling.c \ src/signal_handling.c \
src/globals.c src/globals.c \
third_party/SimpleArchiver/src/data_structures/linked_list.c \
third_party/SimpleArchiver/src/data_structures/hash_map.c \
third_party/SimpleArchiver/src/data_structures/priority_heap.c \
third_party/SimpleArchiver/src/algorithms/linear_congruential_gen.c
OBJECT_DIR = objs OBJECT_DIR = objs
OBJECTS = $(addprefix ${OBJECT_DIR}/,$(patsubst %.c,%.c.o,${SOURCES})) OBJECTS = $(addprefix ${OBJECT_DIR}/,$(patsubst %.c,%.c.o,${SOURCES}))

1
third_party/SimpleArchiver vendored Submodule

@ -0,0 +1 @@
Subproject commit 2e46790ecee627738469ef7370f4c082e96b03fc