From 46f4d80c4c40559a383d001838d766b2b438f4f0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 9 Oct 2025 17:14:56 +0000 Subject: Move string cmp operations to skalibs. Add cgit-nollmcrawler. --- src/config/tipidee-config-internal.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/config/tipidee-config-internal.h') diff --git a/src/config/tipidee-config-internal.h b/src/config/tipidee-config-internal.h index d3977c0..c9849f2 100644 --- a/src/config/tipidee-config-internal.h +++ b/src/config/tipidee-config-internal.h @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -45,11 +46,7 @@ struct global_s extern struct global_s g ; - - /* util */ - -extern int keycmp (void const *, void const *) ; /* for any struct starting with a string key */ -#define BSEARCH(type, key, array) bsearch(key, (array), sizeof(array)/sizeof(type), sizeof(type), &keycmp) +#define BSEARCH(type, key, array) bsearch(key, (array), sizeof(array)/sizeof(type), sizeof(type), &stringkey_bcmp) /* node */ -- cgit v1.3.1