From b1d0e0e97ce747534a945a6fe0c3a15ccd8dbf00 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 6 Mar 2019 22:25:56 -0800 Subject: parse: Use a trie to hold currently open files --- cmdline.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cmdline.h') 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. @@ -55,11 +56,6 @@ struct root { struct root *next; }; -/** - * An open file for the command line. - */ -struct open_file; - /** * The parsed command line. */ @@ -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; }; -- cgit v1.2.3