/*
- * Fast Pattern Matcher for Short Wildcard Patterns (only `?' and `*' supported)
+ * UCW Library -- Fast Pattern Matcher for Short Wildcard Patterns (only `?' and `*' supported)
*
* Traditional NFA -> DFA method with on-the-fly DFA construction.
*
* (c) 1999 Martin Mares <mj@ucw.cz>
+ *
+ * This software may be freely distributed and used according to the terms
+ * of the GNU Lesser General Public License.
*/
#include "lib/lib.h"
-#include "lib/pools.h"
+#include "lib/mempool.h"
#include "lib/wildmatch.h"
#include <stdio.h>
if (strlen(p) >= MAX_STATES) /* Too long */
return NULL;
- w = mp_alloc(pool, sizeof(*w));
- bzero(w, sizeof(*w));
+ w = mp_alloc_zero(pool, sizeof(*w));
w->pool = pool;
for(i=1; *p; p++)
{