]> git.ipfire.org Git - thirdparty/xz.git/commit
xz: Change the way coder_run() and list_run() are called in main().
authorJia Tan <jiat0218@gmail.com>
Sat, 21 Oct 2023 15:07:08 +0000 (23:07 +0800)
committerJia Tan <jiat0218@gmail.com>
Mon, 29 Jan 2024 13:40:53 +0000 (21:40 +0800)
commitb10b2e4a8fe50629e6e45e2cf7b9193ccd9bda36
tree006ccb8587944931724be8a254f83fc9ee4d2fc0
parenta3bac71fe38408e7f023045749190c4310e324fd
xz: Change the way coder_run() and list_run() are called in main().

Previously, a function pointer was used to determine if coder_run() or
list_run() should be called in the main entry processing loop. This was
replaced by an extra function call to process_entry().

coder_run() and list_run() were changed to accept a file_pair * argument
instead of a filename. The common repeated code was moved to
process_entry() instead.
src/xz/args.c
src/xz/coder.c
src/xz/coder.h
src/xz/list.c
src/xz/list.h
src/xz/main.c