From bbc11330984382e926e2a8e936e494193a0e2e23 Mon Sep 17 00:00:00 2001 From: dam Date: Sun, 13 Nov 2022 02:30:31 +0000 Subject: Fixed truncate_string_utf8. Implemented read_input_to_string_buffer to simplify getting input. --- readme.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 973c8d2..b5b955c 100644 --- a/readme.md +++ b/readme.md @@ -62,7 +62,7 @@ Task Time Tracker - [ ] Compress code: - [x] Re-do sprint_time5_utf8: -12 delta LOC; - [x] Re-do truncate_string_utf8: 0 delta LOC; - - [ ] Get input using `get_input(char *input, size_t size, int row, int column)` (what does it returns???): + - [ ] 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; } @@ -73,5 +73,6 @@ Task Time Tracker - `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; - [ ] Review all code for bugs related to auto-cast on ptrdiff_t/size_t (signed/unsigned); - [ ] Go over all `TODO` items; -- cgit v1.2.3