aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/vec.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 87a6694..3811231 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ $(tests_bin):%.bin:%.c libalgds.a
$(cc) $(cflags) -Isrc/ $< libalgds.a -MD -MF $@.d -o $@
clean:
- -rm build/
+ -rm -rf build/
-rm $(shell find tests/ -name '*.bin')
-rm $(shell find . -name '*.o' -or -name '*.a' -or -name '*.d')
diff --git a/src/vec.h b/src/vec.h
index ccc0f6a..faa314a 100644
--- a/src/vec.h
+++ b/src/vec.h
@@ -95,6 +95,7 @@
} \
fprintf(fp, "]"); \
} \
+ size_t T##Vector_len(T##Vector *self) { return self->size; } \
void T##Vector_free(T##Vector *self) { free(self->buffer); }
VECTOR_DEF(Int);