mirror of https://github.com/upx/upx.git
all: minor cleanups
This commit is contained in:
parent
8d1a98e03b
commit
7c57b10cae
|
@ -13,7 +13,7 @@ if [[ $UPX_CONTAINER_IMAGE_NAME != upx-cross-compile-* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# go to upx top-level directory
|
# go to upx top-level directory
|
||||||
cd $argv0dir/../..
|
cd "$argv0dir/../.." || exit 1
|
||||||
pwd
|
pwd
|
||||||
[[ -f src/version.h ]] || exit 1 # sanity check
|
[[ -f src/version.h ]] || exit 1 # sanity check
|
||||||
|
|
||||||
|
|
|
@ -569,7 +569,7 @@ static int do_option(int optc, const char *arg) {
|
||||||
case 525: // --exact
|
case 525: // --exact
|
||||||
opt->exact = true;
|
opt->exact = true;
|
||||||
break;
|
break;
|
||||||
// compression runtime parameters
|
// CRP - Compression Runtime Parameters (undocumented and subject to change)
|
||||||
case 801:
|
case 801:
|
||||||
getoptvar(&opt->crp.crp_ucl.c_flags, 0, 3, arg);
|
getoptvar(&opt->crp.crp_ucl.c_flags, 0, 3, arg);
|
||||||
break;
|
break;
|
||||||
|
@ -866,7 +866,7 @@ int main_get_options(int argc, char **argv) {
|
||||||
{"filter", 0x31, N, 521}, // --filter=
|
{"filter", 0x31, N, 521}, // --filter=
|
||||||
{"no-filter", 0x10, N, 522},
|
{"no-filter", 0x10, N, 522},
|
||||||
{"small", 0x10, N, 520},
|
{"small", 0x10, N, 520},
|
||||||
// compression runtime parameters
|
// CRP - Compression Runtime Parameters (undocumented and subject to change)
|
||||||
{"crp-nrv-cf", 0x31, N, 801},
|
{"crp-nrv-cf", 0x31, N, 801},
|
||||||
{"crp-nrv-sl", 0x31, N, 802},
|
{"crp-nrv-sl", 0x31, N, 802},
|
||||||
{"crp-nrv-hl", 0x31, N, 803},
|
{"crp-nrv-hl", 0x31, N, 803},
|
||||||
|
|
|
@ -96,7 +96,8 @@ struct options_t {
|
||||||
enum { SKIP_OVERLAY = 0, COPY_OVERLAY = 1, STRIP_OVERLAY = 2 };
|
enum { SKIP_OVERLAY = 0, COPY_OVERLAY = 1, STRIP_OVERLAY = 2 };
|
||||||
int overlay;
|
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 {
|
struct crp_t {
|
||||||
lzma_compress_config_t crp_lzma;
|
lzma_compress_config_t crp_lzma;
|
||||||
ucl_compress_config_t crp_ucl;
|
ucl_compress_config_t crp_ucl;
|
||||||
|
|
Loading…
Reference in New Issue