/* * aho/corasick matching machine */ typedef struct re_ac re_ac; re_ac *re_acinit(void); int re_acadd(re_ac *, char *, char *); int re_accomp(re_ac *); void re_acexec(re_ac *, int (*rd)(char**, char **), int (*mt)(char**, char **, int)); void re_acfree(re_ac *); int re_run(re_ac *, char *, int, int);