aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evil/evil_fnmatch_private.h
blob: f5ced5d68fdef1384bda829c7a8e770d538e9886 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __EVIL_FNMATCH_PRIVATE_H__
#define __EVIL_FNMATCH_PRIVATE_H__


typedef int e_bool;

struct list_of_states
{
  size_t	reserved;
  size_t	size;
  size_t	*states;
  e_bool		*has;
};

struct list_of_states *fnmatch_list_of_states_alloc(size_t n, size_t pattern_len);

void fnmatch_list_of_states_free(struct list_of_states *lists, size_t n);

void fnmatch_list_of_states_insert(struct list_of_states *list, size_t state);

void fnmatch_list_of_states_clear(struct list_of_states *list);


#endif /* __EVIL_FNMATCH_PRIVATE_H__ */