Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | src/remembering-c.c: Use better grouping of parentheses for strcmp() | EuAndreh | 2021-06-28 | 1 | -1/+1 |
| | |||||
* | src/remembering-c.c: Add tests for mkdir_p() | EuAndreh | 2021-06-27 | 1 | -3/+49 |
| | |||||
* | src/remembering-c.c: Mark as static two functions left | EuAndreh | 2021-06-27 | 1 | -2/+2 |
| | |||||
* | src/remembering-c.c: Add mkdir_p | EuAndreh | 2021-06-27 | 1 | -4/+52 |
| | |||||
* | src/remembering-c.c: Provide more precise location of errors for perror() | EuAndreh | 2021-06-27 | 1 | -6/+6 |
| | |||||
* | src/remembering-c.c: Add unit tests for get_profile_file() | EuAndreh | 2021-06-27 | 1 | -5/+141 |
| | | | | | | | | | | | | | 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() | EuAndreh | 2021-06-27 | 1 | -0/+54 |
| | |||||
* | src/remembering-c.c: Mark all functions as static | EuAndreh | 2021-06-27 | 1 | -3/+3 |
| | |||||
* | src/remembering-c.c: Restart C version | EuAndreh | 2021-06-27 | 1 | -899/+66 |
| | |||||
* | git mv src/remembering.c src/remembering-c.c | EuAndreh | 2021-06-26 | 1 | -0/+943 |