diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-12 12:02:20 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-01-19 21:48:59 +0100 |
| commit | 53f84f7cbafcb177406f8f7bcc890e626e72ca63 (patch) | |
| tree | 37d5cbd337eb3fed871e04c20e904165dbef8d87 /text-regex.h | |
| parent | 242f22f2ef7aeb14c36e54d7d44d3fd4e51a5d06 (diff) | |
| download | vis-53f84f7cbafcb177406f8f7bcc890e626e72ca63.tar.gz vis-53f84f7cbafcb177406f8f7bcc890e626e72ca63.tar.xz | |
text-regex: add regex backend based on libtre
While memory consumption should be improved, backward searches
will still be slow, because they are implemented in terms of
repeated forward searches. It needs to be investigated whether
the underlying automaton can have its transitions reversed and
essentially run backwards, as is the case in sam.
Diffstat (limited to 'text-regex.h')
| -rw-r--r-- | text-regex.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/text-regex.h b/text-regex.h index 1b2c382..45054c8 100644 --- a/text-regex.h +++ b/text-regex.h @@ -1,7 +1,12 @@ #ifndef TEXT_REGEX_H #define TEXT_REGEX_H +/* make the REG_* constants available */ +#if CONFIG_TRE +#include <tre/tre.h> +#else #include <regex.h> +#endif #include "text.h" typedef struct Regex Regex; |
