From 86a6326ee29c3785533b788acf154e092cc1c7d1 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 28 Jan 2022 15:51:14 +0100 Subject: [PATCH] [fastfind] enum fastfind_flags -> fastfind_flags_T --- src/util/fastfind.c | 4 ++-- src/util/fastfind.h | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/util/fastfind.c b/src/util/fastfind.c index 8a337b824..61ea49a5c 100644 --- a/src/util/fastfind.c +++ b/src/util/fastfind.c @@ -285,7 +285,7 @@ FF_DBG_dump_stats(struct fastfind_info *info) static struct fastfind_info * -init_fastfind(struct fastfind_index *index, enum fastfind_flags flags) +init_fastfind(struct fastfind_index *index, fastfind_flags_T flags) { struct fastfind_info *info = (struct fastfind_info *)mem_calloc(1, sizeof(*info)); @@ -440,7 +440,7 @@ compress_tree(struct ff_node *leafset, struct fastfind_info *info) #define ifcase(c) ( info->case_aware ? (c) : (info->locale_indep ? c_toupper(c) : toupper(c)) ) struct fastfind_index * -fastfind_index(struct fastfind_index *index, enum fastfind_flags flags) +fastfind_index(struct fastfind_index *index, fastfind_flags_T flags) { struct fastfind_key_value *p; struct fastfind_info *info; diff --git a/src/util/fastfind.h b/src/util/fastfind.h index 9f4d7e4e8..13f6905e5 100644 --- a/src/util/fastfind.h +++ b/src/util/fastfind.h @@ -27,6 +27,8 @@ enum fastfind_flags { * locale independent or not */ }; +typedef unsigned char fastfind_flags_T; + struct fastfind_index { /** Description useful for debugging mode. */ char *comment; @@ -49,7 +51,7 @@ struct fastfind_index { * This function must be called once and only once per list. * Failure is not an option, so call it at startup. * @relates fastfind_index */ -struct fastfind_index *fastfind_index(struct fastfind_index *index, enum fastfind_flags flags); +struct fastfind_index *fastfind_index(struct fastfind_index *index, fastfind_flags_T flags); /* The main reason of all that stuff is here. */ /** Search the index for @a key with length @a key_len using the