Mercurial > hg > th-libs
diff th_regex.h @ 639:8c957ad9d4c3
Some more work on regex stuff.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 23 Jan 2020 11:38:28 +0200 |
parents | d191ded8a790 |
children | 9e1f9e1d1487 |
line wrap: on
line diff
--- a/th_regex.h Tue Jan 21 12:23:59 2020 +0200 +++ b/th_regex.h Thu Jan 23 11:38:28 2020 +0200 @@ -18,6 +18,7 @@ extern "C" { #endif + // // Definitions // @@ -32,6 +33,23 @@ }; +typedef struct +{ + int type; + th_regex_char start, end; + + size_t nchars; + th_regex_char *chars; +} th_regex_list_item; + + +typedef struct +{ + size_t nitems, itemssize; + th_regex_list_item *items; +} th_regex_list; + + struct th_regex_ctx; typedef struct