aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* src/remembering-c.c: Use better grouping of parentheses for strcmp()EuAndreh2021-06-281-1/+1
|
* src/unit-test.h: Make its output equal to aux/tests-lib.shEuAndreh2021-06-271-1/+1
|
* src/remembering-c.c: Add tests for mkdir_p()EuAndreh2021-06-271-3/+49
|
* src/remembering-c.c: Mark as static two functions leftEuAndreh2021-06-271-2/+2
|
* src/remembering-c.c: Add mkdir_pEuAndreh2021-06-271-4/+52
|
* src/remembering-c.c: Provide more precise location of errors for perror()EuAndreh2021-06-271-6/+6
|
* src/remembering-c.c: Add unit tests for get_profile_file()EuAndreh2021-06-272-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.
* src/remembering-c.c: Add get_profile_file()EuAndreh2021-06-271-0/+54
|
* src/remembering-c.c: Mark all functions as staticEuAndreh2021-06-271-3/+3
|
* src/remembering.in: Stop ignoring unrecognized flagsEuAndreh2021-06-271-1/+2
|
* src/remembering.in: Don't look for --help and --version flags after --EuAndreh2021-06-271-8/+16
|
* src/remembering.in: Fix ShellCheck offense, remove disableEuAndreh2021-06-271-2/+1
|
* src/remembering.in: Better instruction on looking at manpage in help stringEuAndreh2021-06-271-1/+1
|
* src/remembering.in: Fix syntax of help string output optionsEuAndreh2021-06-271-2/+2
|
* src/remembering-c.c: Restart C versionEuAndreh2021-06-271-899/+66
|
* git mv src/remembering.sh src/remembering.inEuAndreh2021-06-261-0/+0
|
* git mv src/remembering.c src/remembering-c.cEuAndreh2021-06-261-0/+0
|
* src/remembering.c: Comment existing codeEuAndreh2021-06-261-7/+7
|
* src/remembering.sh: Remove \" from COMMAND in help textEuAndreh2021-06-131-2/+2
|
* src/remembering.sh: Choose output only at the topEuAndreh2021-06-131-3/+3
|
* src/remembering.sh: Use printf over echoEuAndreh2021-06-131-3/+3
|
* src/remembering.sh: Remove verbose "exit 0" in favor of "exit"EuAndreh2021-06-131-2/+2
|
* src/remembering.sh: Use "cat <<EOF" for printing help stringEuAndreh2021-06-131-6/+7
|
* src/remembering.c: Use tabs over spacesEuAndreh2021-06-071-684/+735
|
* src/remembering.sh: Use tabs for separating options columnsEuAndreh2021-06-061-4/+4
|
* mv src/remembering.in src/remembering.shEuAndreh2021-06-061-0/+0
|
* src/remembering.c: clang-formatEuAndreh2021-03-231-43/+43
|
* src/remembering.c: WIP more tests for mkdir_pEuAndreh2021-03-221-5/+81
|
* src/remembering.c: clang-formatEuAndreh2021-03-101-13/+13
|
* src/remembering.c: Write more tests, make existing tests more robustEuAndreh2021-03-101-62/+250
|
* Support --version flagEuAndreh2021-03-101-1/+8
|
* src/remembering.c: Add tests for negative and floating-point numbers in the ↵EuAndreh2021-03-071-0/+12
| | | | profile lines
* src/remembering.c: Be more explicit on manpage pointerEuAndreh2021-03-071-1/+1
|
* src/remembering.c: Fix memory errorsEuAndreh2021-03-071-7/+14
|
* src/remembering.c: Assign and check in a single lineEuAndreh2021-03-071-3/+1
|
* src/remembering.c: Remove last reference to TupleEuAndreh2021-03-061-6/+10
|
* src/remembering.c: Use strdup over malloc+strcpyEuAndreh2021-03-061-5/+2
|
* src/remembering.c: Include <fallible/string.h>EuAndreh2021-03-061-0/+1
|
* clang-formatEuAndreh2021-03-041-13/+22
|
* src/remembering.c: Remove #ifdef DISABLEEuAndreh2021-03-041-3/+0
|
* WIP: work on C implementationEuAndreh2021-03-041-138/+331
|
* fmtEuAndreh2021-03-031-33/+32
|
* Add stub return 0EuAndreh2021-03-031-1/+1
|
* Comment all unused C codeEuAndreh2021-03-031-0/+3
|
* src/remembering.c: Delete old code, include FALLIBLEEuAndreh2021-02-281-148/+63
|
* Suppress unused function warnings for nowEuAndreh2021-02-201-1/+1
|
* Makefile.in: Simplify build/tests of C codeEuAndreh2021-02-191-7/+13
|
* Add commented src/remembering.c codeEuAndreh2021-02-181-0/+487
|
* mv remembering -> src/remembering.inEuAndreh2021-02-171-0/+128