From c85f569daf3e0e99c9e8941d0234711afdb58cd7 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 16 Mar 2017 23:01:00 -0400 Subject: Give struct expr a CFILE* instead of just a FILE* This unifies the behaviour of -print and -fprint /dev/stdout. --- bfs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bfs.h') diff --git a/bfs.h b/bfs.h index 61ee2ce..e3f4263 100644 --- a/bfs.h +++ b/bfs.h @@ -245,7 +245,7 @@ struct expr { ino_t ino; /** File to output to. */ - FILE *file; + CFILE *cfile; /** Optional -exec flags. */ enum exec_flags exec_flags; @@ -322,7 +322,6 @@ bool eval_fls(const struct expr *expr, struct eval_state *state); bool eval_fprint(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); -- cgit v1.2.3