summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfs.h')
-rw-r--r--bfs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfs.h b/bfs.h
index c8b4255..732a6c5 100644
--- a/bfs.h
+++ b/bfs.h
@@ -13,6 +13,7 @@
#define BFS_H
#include "color.h"
+#include <regex.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
@@ -240,6 +241,9 @@ struct expr {
/** Optional -exec flags. */
enum exec_flags exec_flags;
+ /** Optional compiled regex. */
+ regex_t *regex;
+
/** Optional integer data for this expression. */
long long idata;
@@ -293,6 +297,7 @@ bool eval_xtype(const struct expr *expr, struct eval_state *state);
bool eval_lname(const struct expr *expr, struct eval_state *state);
bool eval_name(const struct expr *expr, struct eval_state *state);
bool eval_path(const struct expr *expr, struct eval_state *state);
+bool eval_regex(const struct expr *expr, struct eval_state *state);
bool eval_delete(const struct expr *expr, struct eval_state *state);
bool eval_exec(const struct expr *expr, struct eval_state *state);