diff options
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -59,20 +59,18 @@ Task Time Tracker - [x] Check if string_buffer needs to be cleared. We may be leaking info on the string_buffer. - [x] Replaced `sprintf` by `snprintf`; - [x] Make sure that string_buffer bounds are respected; +- [x] Rename `MAX_TASK_NAME` to something more informative; - [ ] Compress code: - [x] Re-do sprint_time5_utf8: -12 delta LOC; - [x] Re-do truncate_string_utf8: 0 delta LOC; - [x] Implement `read_input_to_string_buffer`: -24 delta LOC; - - [ ] wrap malloc (and maybe others) in a function with error checking - ```c - static inline void *MallocOrDie(size_t MemSize) { void *AllocMem = malloc(MemSize); /* Some implementations return null on a 0 length alloc, * we may as well allow this as it increases compatibility * with very few side effects */ if(!AllocMem && MemSize) { printf("Could not allocate memory!"); exit(-1); } return AllocMem; } - ``` + - [x] Wrap malloc (and maybe others) in a function with error checking; - [ ] Move database actions into functions: - `select_task_by_delta(database_st *db, ptrdiff???)` - `select_task_by_index(database_st *db, size_t???)` - `sect_active(database_st *db, task_st *task)` - [ ] Check if draw_tui may be simplified by drawing entire lines of tasks at once and draw columns separators after; -- [ ] Rename `MAX_TASK_NAME` to `TASK_NAME_BUFFER_SIZE`; -- [ ] Try to fix flickering of ncurses; +- [ ] Fix bug: archiving/unarchiving task introduces " ," at end of name and increases the number of spaces before comma; - [ ] 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; |
