summaryrefslogtreecommitdiffstats
path: root/cmdline.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-03-06 22:25:56 -0800
committerTavian Barnes <tavianator@tavianator.com>2019-03-06 22:25:56 -0800
commitb1d0e0e97ce747534a945a6fe0c3a15ccd8dbf00 (patch)
tree57b2f054611114783e7499996e730611691f94ff /cmdline.h
parentd4a4ef26ef5245813ed74847147ce7f58c5a5232 (diff)
downloadbfs-b1d0e0e97ce747534a945a6fe0c3a15ccd8dbf00.tar.xz
parse: Use a trie to hold currently open files
Diffstat (limited to 'cmdline.h')
-rw-r--r--cmdline.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmdline.h b/cmdline.h
index 3a8c064..06b8725 100644
--- a/cmdline.h
+++ b/cmdline.h
@@ -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;
};