summaryrefslogtreecommitdiffstats
path: root/cmdline.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-10-21 16:02:30 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-10-21 16:08:14 -0400
commit4a08c0300cf6b0ee3bb5f755007641635ba21f9d (patch)
tree4fcce4cf80bc6575eb053c6691398d04be1eb917 /cmdline.h
parent4e38f139f92b8b3729f82c37f0904c2b77d3eb58 (diff)
downloadbfs-4a08c0300cf6b0ee3bb5f755007641635ba21f9d.tar.xz
parse: Keep track of what files are already open
Fixes #22
Diffstat (limited to 'cmdline.h')
-rw-r--r--cmdline.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmdline.h b/cmdline.h
index 9a46f7f..7c1891c 100644
--- a/cmdline.h
+++ b/cmdline.h
@@ -50,6 +50,11 @@ struct root {
};
/**
+ * An open file for the command line.
+ */
+struct open_file;
+
+/**
* The parsed command line.
*/
struct cmdline {
@@ -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;
};