From ab4ce6148563b21b6d41b09a2448bd63765ffa21 Mon Sep 17 00:00:00 2001 From: dam Date: Mon, 17 Oct 2022 23:32:10 +0000 Subject: Improved compilation commands. Added bonus items to to-do list. --- main.c | 18 ++++++++++++++++-- readme.md | 7 +++++-- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index 4331792..10d5142 100644 --- a/main.c +++ b/main.c @@ -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). diff --git a/readme.md b/readme.md index 9f17c13..b8b0b15 100644 --- a/readme.md +++ b/readme.md @@ -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. -- cgit v1.2.3