mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[fastfind] enum fastfind_flags -> fastfind_flags_T
This commit is contained in:
parent
9dd12f7515
commit
86a6326ee2
@ -285,7 +285,7 @@ FF_DBG_dump_stats(struct fastfind_info *info)
|
|||||||
|
|
||||||
|
|
||||||
static struct fastfind_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));
|
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)) )
|
#define ifcase(c) ( info->case_aware ? (c) : (info->locale_indep ? c_toupper(c) : toupper(c)) )
|
||||||
|
|
||||||
struct fastfind_index *
|
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_key_value *p;
|
||||||
struct fastfind_info *info;
|
struct fastfind_info *info;
|
||||||
|
@ -27,6 +27,8 @@ enum fastfind_flags {
|
|||||||
* locale independent or not */
|
* locale independent or not */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef unsigned char fastfind_flags_T;
|
||||||
|
|
||||||
struct fastfind_index {
|
struct fastfind_index {
|
||||||
/** Description useful for debugging mode. */
|
/** Description useful for debugging mode. */
|
||||||
char *comment;
|
char *comment;
|
||||||
@ -49,7 +51,7 @@ struct fastfind_index {
|
|||||||
* This function must be called once and only once per list.
|
* This function must be called once and only once per list.
|
||||||
* Failure is not an option, so call it at startup.
|
* Failure is not an option, so call it at startup.
|
||||||
* @relates fastfind_index */
|
* @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. */
|
/* The main reason of all that stuff is here. */
|
||||||
/** Search the index for @a key with length @a key_len using the
|
/** Search the index for @a key with length @a key_len using the
|
||||||
|
Loading…
Reference in New Issue
Block a user