]> Kevux Git Server - fll/commit
Progress: Focus on directory recursion related changes and Featureless Make.
authorKevin Day <kevin@kevux.org>
Sun, 9 Apr 2023 23:21:10 +0000 (18:21 -0500)
committerKevin Day <kevin@kevux.org>
Sun, 9 Apr 2023 23:21:10 +0000 (18:21 -0500)
commit5959327193000ab98b6f660a9fb632e6c3cfc8b6
treed7ce0403e97cfb1964c30323742eaf019297ef41
parentc12bfc720b9e2c883bb074e58b0db226eb5a6570
Progress: Focus on directory recursion related changes and Featureless Make.

I decided to offload some of the design in fl_directory_do().
The caller provides a callback and handles the combining of the path and the base file name.
This should allow for more optimization in string allocation and reduce some of the overhead of recursion.
The recursion now only records the used string rather than allocate an array of the path each time.
This should ideally reduce the amount of memory in the recursion.

The caller can now provide a custom variable to pass local data to the callbacks.

Rename 'first' and 'last' into 'before' and 'after', respectively, to be more semantically accurate.

Initial implementation of callbacks for action and handle.
I may have more work to do in the error handling, but I decided now is a good place to stop and save the progress.
21 files changed:
build/level_0/settings
build/monolithic/settings
level_0/f_directory/c/directory/common.h
level_0/f_directory/c/directory/type.c
level_0/f_directory/c/directory/type.h
level_1/fl_directory/c/directory.c
level_1/fl_directory/c/directory.h
level_1/fl_directory/c/private-directory.c
level_1/fl_directory/c/private-directory.h
level_3/fake/c/main/build.c
level_3/fake/c/main/build.h
level_3/fake/c/main/build/print/message.c
level_3/fake/c/main/build/print/message.h
level_3/fake/c/main/build/print/verbose.c
level_3/fake/c/main/build/print/verbose.h
level_3/fake/c/main/common/print.c
level_3/fake/c/main/common/print.h
level_3/fake/c/main/common/type.c
level_3/fake/c/main/common/type.h
level_3/fake/c/main/print/error.c
level_3/fake/c/main/print/error.h