X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fwildmatch.c;h=7a9aefb4e0c66965667cd2b41bd9ec28b8ec4d75;hb=bc5f818d21b7aceaf2c0e263b00aa4295211d8f9;hp=34fb66f5c130818555aa4245dc58aa25da512da9;hpb=1cf8ac51f5495ccd5187dc220ffc69e95d6e0cfc;p=libucw.git diff --git a/ucw/wildmatch.c b/ucw/wildmatch.c index 34fb66f5..7a9aefb4 100644 --- a/ucw/wildmatch.c +++ b/ucw/wildmatch.c @@ -9,9 +9,9 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/mempool.h" -#include "ucw/wildmatch.h" +#include +#include +#include #include #include @@ -42,13 +42,13 @@ struct wildpatt { struct nfa_state nfa[MAX_STATES]; struct dfa_state *hash[HASH_SIZE]; struct dfa_state *dfa_start; - uns nfa_states; - uns dfa_cache_counter; + uint nfa_states; + uint dfa_cache_counter; struct mempool *pool; struct dfa_state *free_states; }; -static inline unsigned +static inline uint wp_hash(u32 set) { set ^= set >> 16; @@ -59,9 +59,9 @@ wp_hash(u32 set) static struct dfa_state * wp_new_state(struct wildpatt *w, u32 set) { - unsigned h = wp_hash(set); + uint h = wp_hash(set); struct dfa_state *d; - unsigned bit; + uint bit; u32 def_set; while (d = w->hash[h]) @@ -89,7 +89,7 @@ wp_new_state(struct wildpatt *w, u32 set) } if (def_set) { - unsigned i; + uint i; def_set |= 1; for(i=0; i<256; i++) d->edge[i] |= def_set; @@ -102,7 +102,7 @@ struct wildpatt * wp_compile(const char *p, struct mempool *pool) { struct wildpatt *w; - uns i; + uint i; if (strlen(p) >= MAX_STATES) /* Too long */ return NULL;