diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-10-09 17:14:56 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2025-10-09 17:14:56 +0000 |
| commit | 46f4d80c4c40559a383d001838d766b2b438f4f0 (patch) | |
| tree | a1471d419df12d24edea840df64da269a656ca33 /src/config/tipidee-config-internal.h | |
| parent | eb56bacc8f5fff95cb752a7f8b3aefe8ed3f3d9a (diff) | |
| download | tipidee-46f4d80c4c40559a383d001838d766b2b438f4f0.tar.gz | |
Move string cmp operations to skalibs. Add cgit-nollmcrawler.
Diffstat (limited to 'src/config/tipidee-config-internal.h')
| -rw-r--r-- | src/config/tipidee-config-internal.h | 7 |
1 files changed, 2 insertions, 5 deletions
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 <string.h> #include <stdlib.h> +#include <skalibs/bytestr.h> #include <skalibs/buffer.h> #include <skalibs/strerr.h> #include <skalibs/stralloc.h> @@ -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 */ |
