diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-10-21 16:02:30 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-10-21 16:08:14 -0400 |
commit | 4a08c0300cf6b0ee3bb5f755007641635ba21f9d (patch) | |
tree | 4fcce4cf80bc6575eb053c6691398d04be1eb917 /cmdline.h | |
parent | 4e38f139f92b8b3729f82c37f0904c2b77d3eb58 (diff) | |
download | bfs-4a08c0300cf6b0ee3bb5f755007641635ba21f9d.tar.xz |
parse: Keep track of what files are already open
Fixes #22
Diffstat (limited to 'cmdline.h')
-rw-r--r-- | cmdline.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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; }; |