]> Kevux Git Server - kevux-tools/commit
Progress: Continue working on completing the remove program.
authorKevin Day <Kevin@kevux.org>
Wed, 2 Apr 2025 04:24:47 +0000 (23:24 -0500)
committerKevin Day <Kevin@kevux.org>
Wed, 2 Apr 2025 04:24:47 +0000 (23:24 -0500)
commit5f45a44fa2cb1c194a82c9bbe5e8ed1b7fe61422
tree72790ff1f62bfe013f056f0fe05a5bfbad728068
parent97ef5cd464f51735088127d5049191d9d972668c
Progress: Continue working on completing the remove program.

Remove redundant code and get rid of a lot of the callbacks.
I did further structural investigation and found that I really didn't need most callbacks.

Add special flags to distinguish when file types are being specified and when they are not.
Then when this is set, handle accordingly and print errors.
This reduces the need for custom handling code in each of the other programs like `rm`, `rmdir`, and `unlink`.

Update the settings and flags accordingly.

I have not gotten the time to update the unit tests, which currently now fail.
I also need to review the programs and their replacement counterparts for any problems.
29 files changed:
sources/c/program/kevux/tools/remove/main/common.c
sources/c/program/kevux/tools/remove/main/common/define.h
sources/c/program/kevux/tools/remove/main/common/string.c
sources/c/program/kevux/tools/remove/main/common/string.h
sources/c/program/kevux/tools/remove/main/common/type.h
sources/c/program/kevux/tools/remove/main/operate.c
sources/c/program/kevux/tools/remove/main/preprocess.c
sources/c/program/kevux/tools/remove/main/preprocess.h
sources/c/program/kevux/tools/remove/main/print/error.c
sources/c/program/kevux/tools/remove/main/print/error.h
sources/c/program/kevux/tools/remove/main/print/warning.c
sources/c/program/kevux/tools/remove/main/remove.c
sources/c/program/kevux/tools/remove/remove/main.c
sources/c/program/kevux/tools/remove/rm/main.c
sources/c/program/kevux/tools/remove/rm/print.c
sources/c/program/kevux/tools/remove/rm/print.h
sources/c/program/kevux/tools/remove/rm/rm.c
sources/c/program/kevux/tools/remove/rm/rm.h
sources/c/program/kevux/tools/remove/rmdir/main.c
sources/c/program/kevux/tools/remove/rmdir/print.c
sources/c/program/kevux/tools/remove/rmdir/print.h
sources/c/program/kevux/tools/remove/rmdir/rmdir.c
sources/c/program/kevux/tools/remove/rmdir/rmdir.h
sources/c/program/kevux/tools/remove/unlink/main.c
sources/c/program/kevux/tools/remove/unlink/print.c
sources/c/program/kevux/tools/remove/unlink/print.h
sources/c/program/kevux/tools/remove/unlink/unlink.c
sources/c/program/kevux/tools/remove/unlink/unlink.h
tests/unit/remove/c/main-test-remove.c