diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-03-06 22:25:56 -0800 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-03-06 22:25:56 -0800 |
commit | b1d0e0e97ce747534a945a6fe0c3a15ccd8dbf00 (patch) | |
tree | 57b2f054611114783e7499996e730611691f94ff /cmdline.h | |
parent | d4a4ef26ef5245813ed74847147ce7f58c5a5232 (diff) | |
download | bfs-b1d0e0e97ce747534a945a6fe0c3a15ccd8dbf00.tar.xz |
parse: Use a trie to hold currently open files
Diffstat (limited to 'cmdline.h')
-rw-r--r-- | cmdline.h | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -22,6 +22,7 @@ #define BFS_CMDLINE_H #include "color.h" +#include "trie.h" /** * Various debugging flags. @@ -56,11 +57,6 @@ struct root { }; /** - * An open file for the command line. - */ -struct open_file; - -/** * The parsed command line. */ struct cmdline { @@ -103,7 +99,7 @@ struct cmdline { struct expr *expr; /** All the open files owned by the command line. */ - struct open_file *open_files; + struct trie open_files; /** The number of open files owned by the command line. */ int nopen_files; }; |