all: minor cleanups

This commit is contained in:
Markus F.X.J. Oberhumer 2022-12-02 16:46:16 +01:00
parent 8d1a98e03b
commit 7c57b10cae
3 changed files with 5 additions and 4 deletions

View File

@ -13,7 +13,7 @@ if [[ $UPX_CONTAINER_IMAGE_NAME != upx-cross-compile-* ]]; then
fi
# go to upx top-level directory
cd $argv0dir/../..
cd "$argv0dir/../.." || exit 1
pwd
[[ -f src/version.h ]] || exit 1 # sanity check

View File

@ -569,7 +569,7 @@ static int do_option(int optc, const char *arg) {
case 525: // --exact
opt->exact = true;
break;
// compression runtime parameters
// CRP - Compression Runtime Parameters (undocumented and subject to change)
case 801:
getoptvar(&opt->crp.crp_ucl.c_flags, 0, 3, arg);
break;
@ -866,7 +866,7 @@ int main_get_options(int argc, char **argv) {
{"filter", 0x31, N, 521}, // --filter=
{"no-filter", 0x10, N, 522},
{"small", 0x10, N, 520},
// compression runtime parameters
// CRP - Compression Runtime Parameters (undocumented and subject to change)
{"crp-nrv-cf", 0x31, N, 801},
{"crp-nrv-sl", 0x31, N, 802},
{"crp-nrv-hl", 0x31, N, 803},

View File

@ -96,7 +96,8 @@ struct options_t {
enum { SKIP_OVERLAY = 0, COPY_OVERLAY = 1, STRIP_OVERLAY = 2 };
int overlay;
// compression runtime parameters - see struct XXX_compress_config_t
// CRP - Compression Runtime Parameters (undocumented and subject to change)
// see struct XXX_compress_config_t
struct crp_t {
lzma_compress_config_t crp_lzma;
ucl_compress_config_t crp_ucl;