refactoring
This commit is contained in:
1 parent
5b1b974ac7
commit
e37f04a1cd
6 files changed
+199
-120
No files matched your search
+8
-1
@@ -23,6 +23,13 @@ typedef enum {
|
||||
sort_by_size = 3
|
||||
} sorting_mode_t;
|
||||
|
||||
typedef enum {
|
||||
time_none = 0,
|
||||
time_access = 1,
|
||||
time_modified = 2,
|
||||
time_status_change = 3
|
||||
} time_mode_t;
|
||||
|
||||
typedef struct {
|
||||
bool show_all;
|
||||
bool show_almost_all;
|
||||
@@ -34,9 +41,9 @@ typedef struct {
|
||||
bool long_view;
|
||||
bool reverse_order;
|
||||
bool tree_view;
|
||||
bool show_types;
|
||||
permission_mode_t permission_mode;
|
||||
sorting_mode_t sorting_mode;
|
||||
time_mode_t time_mode;
|
||||
char* path;
|
||||
} arguments_t;
|
||||
|
||||
|
||||
+5
-1
@@ -11,7 +11,11 @@ const uint32_t permission_colour = 0xD0D0D0;
|
||||
|
||||
#define DATE_STYLE_NUM ( ( int )1 )
|
||||
const style_t date_style[ DATE_STYLE_NUM ] = { style_none };
|
||||
const uint32_t date_colour = 0xEEEEEE;
|
||||
const uint32_t date_colour = 0xBBEEEE;
|
||||
|
||||
#define USER_STYLE_NUM ( ( int )1 )
|
||||
const style_t user_style[ USER_STYLE_NUM ] = { style_none };
|
||||
const uint32_t user_colour = 0xEEBBEE;
|
||||
|
||||
#define TYPE_STYLE_NUM ( ( int )1 )
|
||||
const style_t type_style[ TYPE_STYLE_NUM ] = { style_none };
|
||||
|
||||
+4
-2
@@ -3,9 +3,11 @@
|
||||
|
||||
#include "type_definitions.h"
|
||||
|
||||
void display_type( char type );
|
||||
void display_type( entry_type_t type );
|
||||
void display_permissions( const char* const permissions );
|
||||
void display_size( const char* const size );
|
||||
void display_size( directory_entry_t* entry );
|
||||
void display_user( directory_entry_t* entry );
|
||||
void display_time( time_t time );
|
||||
void display_entry( const directory_entry_t* const entry );
|
||||
void display_link_target( const directory_entry_t* const entry );
|
||||
|
||||
|
||||
Reference in new issue
Block a user