diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | pom.c | 10 |
2 files changed, 2 insertions, 11 deletions
@@ -6,6 +6,7 @@ __build: $(MAKE) -C $(BUILD_DIR) test: __build - valgrind --exit-on-first-error=yes --error-exitcode=1 $(BUILD_DIR)/tests + valgrind --exit-on-first-error=yes --error-exitcode=1 --track-origins=yes \ + --leak-check=full --show-leak-kinds=all $(BUILD_DIR)/tests .PHONY: __build test @@ -904,16 +904,6 @@ conf_item_cmp_qsort(const void *va, const void *vb) { return strcmp(item_a->key, item_b->key); } -/* -// Returns true if `descendant` starts with `ancestor.`. -static bool -is_descendant(const char *ancestor, const char *descendant) { - size_t ancestor_len = strlen(ancestor); - return memcmp(ancestor, descendant, ancestor_len) == 0 - && descendant[ancestor_len] == '.'; -} -*/ - static size_t conf_binary_search(const pom_conf *conf, const char *key, char nxt_char, bool *found) { size_t lo = 0; |