From 53f84f7cbafcb177406f8f7bcc890e626e72ca63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Dec 2016 12:02:20 +0100 Subject: 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. --- text-regex.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'text-regex.h') 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 +#else #include +#endif #include "text.h" typedef struct Regex Regex; -- cgit v1.2.3