summaryrefslogtreecommitdiffhomepage
path: root/eval.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-09-24 13:26:38 +0200
committerJo-Philipp Wich <jo@mein.io>2020-09-24 13:27:38 +0200
commit486ff859ced13c2454e7d12788069e5db30b618d (patch)
tree8f15bd33665a8678854ba530c36bf1b507425afc /eval.c
parentfc7ef102aa147680e2c82b6f2be338ad51ce0842 (diff)
syntax: add regular expression support
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 7de69e2..d3151e6 100644
--- a/eval.c
+++ b/eval.c
@@ -24,6 +24,7 @@
#include <errno.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <regex.h>
char exception_tag_space[sizeof(struct ut_op) + sizeof(struct ut_op *)];
static struct ut_op *exception_tag = (struct ut_op *)exception_tag_space;
@@ -1549,6 +1550,7 @@ ut_execute_op(struct ut_state *state, uint32_t off)
case T_BOOL:
case T_STRING:
case T_NULL:
+ case T_REGEXP:
return json_object_get(op->val);
case T_THIS: