summaryrefslogtreecommitdiffstats
path: root/bfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfs.h')
-rw-r--r--bfs.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/bfs.h b/bfs.h
index 84874d6..63766e7 100644
--- a/bfs.h
+++ b/bfs.h
@@ -13,6 +13,7 @@
#define BFS_H
#include "color.h"
+#include "printf.h"
#include <regex.h>
#include <stdbool.h>
#include <stddef.h>
@@ -248,6 +249,9 @@ struct expr {
/** Optional compiled regex. */
regex_t *regex;
+ /** Optional printf command. */
+ struct bfs_printf *printf;
+
/** Optional integer data for this expression. */
long long idata;
@@ -310,9 +314,10 @@ 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);
bool eval_nohidden(const struct expr *expr, struct eval_state *state);
-bool eval_print(const struct expr *expr, struct eval_state *state);
bool eval_fprint(const struct expr *expr, struct eval_state *state);
-bool eval_print0(const struct expr *expr, struct eval_state *state);
+bool eval_fprint0(const struct expr *expr, struct eval_state *state);
+bool eval_fprintf(const struct expr *expr, struct eval_state *state);
+bool eval_print(const struct expr *expr, struct eval_state *state);
bool eval_prune(const struct expr *expr, struct eval_state *state);
bool eval_quit(const struct expr *expr, struct eval_state *state);