Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
cleanup: remove now unused macros
Baptiste Daroussin committed 4 years ago
commit 4dcf96212c6e74d3b164eda614a2105f859373d1
parent 12fbcd4
1 file changed +0 -20
modified libpkg/private/pkg.h
@@ -127,26 +127,6 @@
} while (0)
#define DL_FREE(head, free_func) DL_FREE2(head, free_func, prev, next)

-
#define kh_safe_add(name, h, val, k) do {		\
-
	int __ret;					\
-
	khint_t __i;					\
-
	if (!h) h = kh_init_##name();			\
-
	__i = kh_put_##name(h, k, &__ret);		\
-
	if (__ret != 0)					\
-
		kh_val(h, __i) = val;			\
-
} while (0)
-

-
#define kh_find(name, h, k, ret) do {			\
-
	khint_t __k;					\
-
	ret = NULL;					\
-
	if (h != NULL) {				\
-
		__k = kh_get(name, h, k);		\
-
		if (__k != kh_end(h)) {			\
-
			ret = kh_value(h, __k);		\
-
		}					\
-
	}						\
-
} while (0)
-

struct pkg_ctx {
	int eventpipe;
	int64_t debug_level;