diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-10-13 21:20:00 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-10-13 21:20:00 -0700 |
| commit | ff8c2f9c626c61bfe4eb860227a5134d3d4cd1e9 (patch) | |
| tree | 3940e9d3d9197d93765ddb6a8374ad2fa215ca80 /bb.h | |
| parent | 5ad09087c29fbd071f6b0d882b95fb116b2b43a2 (diff) | |
More code cleanup: consolidating cd_to() and populate_files() into just
populate_files(), cleaner startup behavior, less duplicative environment
variable setting, misc.
Diffstat (limited to 'bb.h')
| -rw-r--r-- | bb.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |
