diff options
| -rw-r--r-- | main.c | 10 | ||||
| -rw-r--r-- | readme.md | 2 |
2 files changed, 6 insertions, 6 deletions
@@ -87,11 +87,11 @@ char *string_buffer = NULL; // A temporary buffer for localized actions. Pleas size_t string_buffer_size = 0; int size_x, size_y, pos_x, pos_y; -void inline static trigger_autosave() { +void trigger_autosave() { countdown_to_autosave = 13375; // ms } -void inline static show_processing() { +void show_processing() { mvaddch(0, 0, ACS_DIAMOND); refresh(); } @@ -109,7 +109,7 @@ bool is_file_accessible(const char *path) { } // Returns true if string to_compare is equal to any of the other passed strings, false otherwise. -bool inline static is_equal_to_any(const char *to_compare, const char *test_a, const char *test_b) { +bool is_equal_to_any(const char *to_compare, const char *test_a, const char *test_b) { return strncmp(to_compare, test_a, strlen(test_a)+1) == 0 || strncmp(to_compare, test_b, strlen(test_b)+1) == 0; } @@ -1053,7 +1053,7 @@ void draw_tui(database_st *db, layout_st *layout) { mvaddstr(y, x, string_buffer); } -static inline void *mem_alloc(size_t mem_size, const char *error_tag) { +void *mem_alloc(size_t mem_size, const char *error_tag) { void *mem_pointer = malloc(mem_size); if(mem_pointer == NULL && mem_size > 0) { fprintf(stderr, "Failed to allocate memory (%s): %s.\n", (error_tag == NULL ? "undefined" : error_tag), strerror(errno)); @@ -1124,7 +1124,7 @@ void read_input_to_string_buffer_with_space(int row, int column, int length, int attroff(A_UNDERLINE); } -void static inline read_input_to_string_buffer(int row, int column, int length) { +void read_input_to_string_buffer(int row, int column, int length) { read_input_to_string_buffer_with_space(row, column, length, length); } @@ -66,8 +66,8 @@ Task Time Tracker - [x] Implement `read_input_to_string_buffer`: -24 delta LOC; - [x] Wrap malloc (and maybe others) in a function with error checking; - [x] Move database actions into functions; - - [ ] Check if draw_tui may be simplified by drawing entire lines of tasks at once and draw columns separators after; - [ ] Fix bug: archiving/unarchiving task introduces " ," at end of name and increases the number of spaces before comma; +- [ ] Check if draw_tui may be simplified by drawing entire lines of tasks at once and draw columns separators after; - [ ] Review all code for bugs related to auto-cast on ptrdiff_t/size_t (signed/unsigned); - [ ] Try to fix flickering of ncurses; - [ ] Go over all `TODO` items; |
