diff options
| -rw-r--r-- | main.c | 18 | ||||
| -rw-r--r-- | readme.md | 7 |
2 files changed, 21 insertions, 4 deletions
@@ -1,6 +1,20 @@ // Compilation command: -// - release: gcc main.c -Wall -Werror -pedantic -O2 -m64 -lncursesw -o ttt -// - debug : gcc main.c -Wall -Werror -pedantic -g3 -m64 -lncursesw -o ttt -D DEBUG +// - release dynamics libs : gcc main.c -lncursesw -ltinfo -o ttt -Wall -Werror -pedantic -O2 -m64 -s +// - release static libs : gcc main.c -lncursesw -ltinfo -o ttt -Wall -Werror -pedantic -O2 -m64 -s -static-pie +// - debug : gcc main.c -lncursesw -ltinfo -o ttt -Wall -Werror -pedantic -g3 -m64 -D DEBUG +// +// Compiler flags: +// -l : libraries to link +// -o : output file name +// -Wall : TODO +// -Werror : TODO +// -pedantic : TODO +// -O : code optimization level +// -g : TODO +// -m64 : 64b architecture +// -D : defines for preprocessor +// -static-pie : link statically producing an position-independent executable +// // Usage hints: // - To change the app data path, overwride the environment variable HOME (USERPROFILE for windows users). @@ -55,9 +55,12 @@ Task Time Tracker - [x] Add/remove time using keys: `F3`; - [x] Add/remove time for any day of week; - [x] Total times may saturate, but before that the user will see the infinite symbol. Solution: Provide user with possibility to refresh totals. -- [ ] After user input, we should save the changes on the database... or defer them and check every few seconds if we need to save. -- [ ] REVISE ALL CODE ptrdiff_t/size_t (signed/unsigned)! - [ ] Implement logs as described above. +- [ ] Improve the way we save the changes made to the database: + - When operating on the archive, will we keep the saves synchronous? + - Maybe add a cooldown timer and save changes after it times out? + - Maybe add a partial-save when (de)activating a task (just save the task and the database core? +- [ ] REVISE ALL CODE ptrdiff_t/size_t (signed/unsigned)! - [ ] Go over all `TODO` items; - [ ] Cleanup `draw_tui`: - Selected and active tasks should be drawn after everything else. |
