Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2021-09-02 | README.md: Add link to translated versions of pages | EuAndreh | 1 | -2/+8 | |
2021-09-02 | README.md: Add directory structure section to Documentation | EuAndreh | 1 | -1/+16 | |
2021-09-01 | CHANGELOG.md: Point to english version URL | EuAndreh | 1 | -1/+1 | |
2021-09-01 | .gitignore: Add translation files | EuAndreh | 1 | -2/+4 | |
2021-09-01 | Remove tests/install-uninstall.sh in favor of repocheck.sh | EuAndreh | 2 | -50/+0 | |
2021-09-01 | mv doc/po/ po/... | EuAndreh | 6 | -0/+1856 | |
2021-09-01 | mv aux/workflow/manpages.sh doc/manpages.sh | EuAndreh | 1 | -0/+0 | |
2021-09-01 | aux/: Update | EuAndreh | 17 | -87/+153 | |
2021-09-01 | src/remembering.c: Enforce C style | EuAndreh | 1 | -10/+20 | |
2021-09-01 | Refactor C files, split logerr and tests-lib | EuAndreh | 10 | -17/+318 | |
2021-09-01 | tests/lib.sh: Update | EuAndreh | 3 | -4/+25 | |
2021-09-01 | mv src/remembering-c.c src/remembering.c | EuAndreh | 3 | -8/+11 | |
2021-09-01 | Makefile: s/run-tests/remembering-tests/ | EuAndreh | 2 | -4/+4 | |
2021-09-01 | Makefile: Revamp "clean" target | EuAndreh | 1 | -3/+7 | |
2021-09-01 | Makefile: Refactor personal workflow targets to include new translations flow | EuAndreh | 1 | -7/+21 | |
2021-09-01 | Makefile: Add repocheck.sh to "dev-check" target, separate it from the ↵ | EuAndreh | 1 | -7/+15 | |
canonical path | |||||
2021-09-01 | Makefile: Use quotes around macro names | EuAndreh | 1 | -11/+11 | |
2021-09-01 | Makefile: Use chmod when generating src/remembering instead of afterwards | EuAndreh | 1 | -1/+1 | |
Now running "make" for the second time will say everything is up-to-date, instead of always changing the permission again and again. | |||||
2021-09-01 | src/remembering.in: Add empty line on help text | EuAndreh | 1 | -0/+1 | |
2021-09-01 | aux/workflow/favicon.png: Remove | EuAndreh | 1 | -0/+0 | |
2021-08-20 | TODOs.md: Add #task-a5c8dd18-b180-2731-601a-e26f137a2740 | EuAndreh | 1 | -0/+3 | |
2021-07-23 | git grep -lF tar.gz | xargs sed -i 's/tar\.gz/tar.xz/g' | EuAndreh | 1 | -7/+7 | |
2021-07-23 | aux/: Update | EuAndreh | 18 | -208/+260 | |
2021-06-28 | TODOs.md: Mark #task-bd165b74-c559-48ee-1d29-eaa906aa0393 as DONE | EuAndreh | 1 | -1/+5 | |
2021-06-28 | src/remembering-c.c: Free leaking "home" string variable | EuAndreh | 1 | -0/+1 | |
2021-06-28 | src/remembering-c.c: Fix usage of strcat() | EuAndreh | 1 | -5/+5 | |
As it turns out, after doing a malloc(), strcat() can't be used directly on top of it. I'd guess that the implementation of strcat() goes through the first string until its end, the \0 NULL terminator, and then starts copying the characters to the new string, overwriting the existing terminator to allow the string to actually be continuous. However, strcat() can't do this in a string that was just malloced and has no content. So it will probably run over the end of the memory untill it finds a NULL byte, and concatenate starting from that. I didn't check this elsewhere, but this explanation sounds reasonable, and Valgrind's diagnostics seem to confirm that. The solution is to strcpy() the first string, and than strcat() the others after that, so that strcat() has an existing string to work on, while strcpy doesn't need that. Fixes #task-bd165b74-c559-48ee-1d29-eaa906aa0393. | |||||
2021-06-28 | src/remembering-c.c: Use better grouping of parentheses for strcmp() | EuAndreh | 1 | -1/+1 | |
2021-06-28 | git mv tests/tests-lib.sh tests/lib.sh | EuAndreh | 5 | -4/+4 | |
2021-06-28 | TODOs.md: Add #task-06c8ef1b-15ed-5932-3391-8c02ff759e7a | EuAndreh | 1 | -0/+3 | |
2021-06-28 | tests/ranking.sh: Add test_pick_inexisting_value, disabled | EuAndreh | 1 | -0/+35 | |
2021-06-28 | tests/*.sh: Refactor error messages to be consistent, move helper all helper ↵ | EuAndreh | 2 | -47/+48 | |
funtions to the top | |||||
2021-06-28 | TODOs.md: Add #task-f5a3d036-f451-f469-56f6-73274162df8e | EuAndreh | 1 | -0/+3 | |
2021-06-27 | TODOs.md: Add #task-bd165b74-c559-48ee-1d29-eaa906aa0393 | EuAndreh | 1 | -0/+3 | |
2021-06-27 | mv {aux => tests}/tests-lib.sh | EuAndreh | 5 | -4/+4 | |
2021-06-27 | src/unit-test.h: Make its output equal to aux/tests-lib.sh | EuAndreh | 1 | -1/+1 | |
2021-06-27 | TODOs.md: Add #task-20f96d7d-2fd8-7a5f-e861-ded565c3b408 | EuAndreh | 1 | -0/+3 | |
2021-06-27 | src/remembering-c.c: Add tests for mkdir_p() | EuAndreh | 1 | -3/+49 | |
2021-06-27 | src/remembering-c.c: Mark as static two functions left | EuAndreh | 1 | -2/+2 | |
2021-06-27 | src/remembering-c.c: Add mkdir_p | EuAndreh | 1 | -4/+52 | |
2021-06-27 | src/remembering-c.c: Provide more precise location of errors for perror() | EuAndreh | 1 | -6/+6 | |
2021-06-27 | Makefile: Use DEFS over CFLAGS for defines | EuAndreh | 1 | -2/+5 | |
2021-06-27 | src/remembering-c.c: Add unit tests for get_profile_file() | EuAndreh | 2 | -5/+164 | |
Those tests led me to handling the case where $XDG_DATA_HOME was set, but as an empty string. This is the equivalent of the "[ -z ".." ]" test. I also parameterized get_profile_file() to receive the stream where it should write to in case of failing to getenv("HOME"). Even though this makes the arguments of functions that print longer, it looks like an overall good pattern. It is the equivalent of every sh function printing to STDOUT, and let the caller decide if it should go to STDOUT or STDERR. | |||||
2021-06-27 | src/remembering-c.c: Add get_profile_file() | EuAndreh | 1 | -0/+54 | |
2021-06-27 | src/remembering-c.c: Mark all functions as static | EuAndreh | 1 | -3/+3 | |
2021-06-27 | TODOs.md: Add #task-b3261473-9d12-9df4-cbfe-c4017ffed709 | EuAndreh | 1 | -0/+3 | |
2021-06-27 | tests/cli-opts.sh: Add N=$LINENO | EuAndreh | 1 | -0/+21 | |
2021-06-27 | TODOs.md: Add #task-013534fe-8839-9de1-ec4a-9d63980fc096 | EuAndreh | 1 | -0/+3 | |
2021-06-27 | src/remembering.in: Stop ignoring unrecognized flags | EuAndreh | 2 | -1/+25 | |
2021-06-27 | src/remembering.in: Don't look for --help and --version flags after -- | EuAndreh | 1 | -8/+16 | |
2021-06-27 | src/remembering.in: Fix ShellCheck offense, remove disable | EuAndreh | 1 | -2/+1 | |