aboutsummaryrefslogtreecommitdiff
path: root/src/tar.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup repo, reinit in shEuAndreh2023-04-141-103/+0
|
* src/*.c: Add newline between function return type and its nameEuAndreh2021-08-271-6/+11
| | | | | | | | | | | | | The purpose of this change is two-fold: - make function and variable declarations grep-friendly (one can use a pattern /^fn_name/ to find the definition); - make the lines shorter, so less functions need to have their arguments span over many lines. This is more grep-friendly both for finding the function definition, but also for matching on the return type of the function or the variable. Update tests/c-lint.sh to enforce this.
* src/: Move logerr* functions to src/logerr.{c,h}; forward tarballs_fd to ↵EuAndreh2021-08-231-2/+82
| | | | src/tar.c
* src/tar.c: Add link to the reference specificationEuAndreh2021-08-221-0/+7
|
* re 's/write_tarball_from_directory/tarball_write_from_directory/g'EuAndreh2021-08-221-1/+1
|
* src/: s/tarzify/tarball_write_from_directory/gEuAndreh2021-08-221-1/+1
|
* src/tar.c: tarzify(): Return 0 by default for nowEuAndreh2021-08-221-1/+1
|
* src/lib.c: Write repo_tarballs_refs_each, calling stub tarzify() functionEuAndreh2021-08-221-0/+5
|
* Have a single top-level main for running unit-testsEuAndreh2021-08-221-31/+1
| | | | | | | | | | | | | | | | | | | Instead of each .c file becoming a self-standing .t executable file, and being run for executing the unit tests local to the file, now each .c becomes a .to object (akin to a .o object, but one where the -DTEST flag is given to the compiler). After that, all the .to objects are linked together in a gistatic-tests executable, in a equivalent way that all .o files get linked together in a gistatic executable. This change was necessary in order to allow dependencies between objects. The next task will be making a tar of a repository tree checkout, and src/gistatic.{o,to} will start depending on src/tar.{o,to}. If each file has its own main function when -DTEST is given, then I wont be able to link them together. I took the opportunity that I had to change the Makefile, and I improved the dependency between targets and dependencies greatly. From what I can tell now, it is correct.
* src/tests-lib.c: Move testing helper function and share it with other filesEuAndreh2021-08-211-4/+20
|
* src/tar.{h,c}: Add src/tar.hEuAndreh2021-08-191-1/+6
|
* Add stub src/tar.cEuAndreh2021-08-071-0/+15