From ff8c2f9c626c61bfe4eb860227a5134d3d4cd1e9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 13 Oct 2019 21:20:00 -0700 Subject: More code cleanup: consolidating cd_to() and populate_files() into just populate_files(), cleaner startup behavior, less duplicative environment variable setting, misc. --- bb.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bb.h') diff --git a/bb.h b/bb.h index cf505c3..df88b1e 100644 --- a/bb.h +++ b/bb.h @@ -169,8 +169,7 @@ const column_t columns[] = { }; // Functions -void bb_browse(bb_t *bb, const char *path); -static int cd_to(bb_t *bb, const char *path); +void bb_browse(bb_t *bb); static void cleanup(void); static void cleanup_and_exit(int sig); static const char* color_of(mode_t mode); @@ -186,7 +185,7 @@ static entry_t* load_entry(bb_t *bb, const char *path, int clear_dots); static inline int matches_cmd(const char *str, const char *cmd); static void* memcheck(void *p); static void normalize_path(const char *root, const char *path, char *pbuf, int clear_dots); -static void populate_files(bb_t *bb, int samedir); +static int populate_files(bb_t *bb, const char *path); static void print_bindings(int fd); static void run_bbcmd(bb_t *bb, const char *cmd); static void render(bb_t *bb); -- cgit v1.2.3