aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/readme.md b/readme.md
index 7982a0d..7715fa6 100644
--- a/readme.md
+++ b/readme.md
@@ -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;