Mercurial > hg > th-libs
diff th_regex.h @ 651:18fe45e61b2b
Moar re-work.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 25 Jan 2020 13:13:37 +0200 |
parents | b897995101b7 |
children | 38a9302962f7 |
line wrap: on
line diff
--- a/th_regex.h Sat Jan 25 13:05:11 2020 +0200 +++ b/th_regex.h Sat Jan 25 13:13:37 2020 +0200 @@ -12,6 +12,7 @@ #include "th_types.h" #include "th_datastruct.h" +#include "th_ioctx.h" #ifdef __cplusplus @@ -50,7 +51,7 @@ #ifdef TH_EXPERIMENTAL_REGEX_DEBUG -extern BOOL th_dbg_re_flags; +extern th_ioctx *th_dbg_fh; #endif @@ -59,7 +60,7 @@ // int th_regex_compile(th_regex_t **pexpr, const th_regex_char_t *pattern); void th_regex_free(th_regex_t *expr); -void th_regex_dump(FILE *fh, const int level, const th_regex_t *expr); +void th_regex_dump(th_ioctx *fh, const int level, const th_regex_t *expr); int th_regex_match(const th_regex_t *expr, const th_regex_char_t *haystack, size_t *pnmatches, th_regex_match_t **pmatches, const size_t maxmatches,