From 4a08c0300cf6b0ee3bb5f755007641635ba21f9d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 21 Oct 2017 16:02:30 -0400 Subject: parse: Keep track of what files are already open Fixes #22 --- cmdline.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cmdline.h') diff --git a/cmdline.h b/cmdline.h index 9a46f7f..7c1891c 100644 --- a/cmdline.h +++ b/cmdline.h @@ -49,6 +49,11 @@ struct root { struct root *next; }; +/** + * An open file for the command line. + */ +struct open_file; + /** * The parsed command line. */ @@ -89,7 +94,9 @@ struct cmdline { /** The command line expression. */ struct expr *expr; - /** The number of open files used by the expression tree. */ + /** All the open files owned by the command line. */ + struct open_file *open_files; + /** The number of open files owned by the command line. */ int nopen_files; }; -- cgit v1.2.3