libdvec-c

C memory vector library
git clone https://git.sinitax.com/sinitax/libdvec-c
Log | Files | Refs | Submodules | LICENSE | sfeed.txt

commit 93bafd206267f9a0f26b03d60f5b52b0571bef56
parent b52857cf8bd5f86bb79e64631c9b7184cb20d3c5
Author: Louis Burda <quent.burda@gmail.com>
Date:   Sat, 13 May 2023 21:05:49 +0200

Add cleanall target

Diffstat:
M.gitignore | 1+
MMakefile | 5++++-
Msrc/dvec.c | 12------------
3 files changed, 5 insertions(+), 13 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -3,3 +3,4 @@ build .cache vgcore* test +.gdb_history diff --git a/Makefile b/Makefile @@ -25,6 +25,9 @@ all: build/libdvec.so build/libdvec.a build/test clean: rm -rf build +cleanall: clean + make -C lib/liballoc cleanall + build: mkdir build @@ -53,4 +56,4 @@ uninstall: rm -f "$(DESTDIR)$(PREFIX)$(LIBDIR)/libdvec.so" rm -f "$(DESTDIR)$(PREFIX)$(LIBDIR)/libdvec.a" -.PHONY: all clean install uninstall +.PHONY: all clean cleanall install uninstall diff --git a/src/dvec.c b/src/dvec.c @@ -3,18 +3,6 @@ #include <string.h> #include <stdlib.h> -#ifdef LIBDVEC_CHECK_ENABLE -static inline void -libdvec_assert(int cond, const char *file, int line, const char *condstr) -{ - if (cond) return; - - fprintf(stderr, "libdvec: Assertion failed at %s:%i (%s)\n", - file, line, condstr); - abort(); -} -#endif - int dvec_init(struct dvec *dvec, size_t dsize, size_t cap, const struct allocator *allocator)