Avoid unnecessary line continuations

This commit is contained in:
Dimitri Papadopoulos 2023-08-06 13:11:03 +02:00 committed by Hans Kristian Rosbach
parent 04e8561bde
commit 3605d984d8
3 changed files with 24 additions and 24 deletions

View File

@ -205,22 +205,22 @@ void inflate_params(FILE *fin, FILE *fout, int32_t read_buf_size, int32_t write_
}
void show_help(void) {
printf("Usage: minideflate [-c][-d][-k] [-f|-h|-R|-F] [-m level] [-r/-t size] [-s flush] [-w bits] [-0 to -9] [input file]\n\n" \
" -c : write to standard output\n" \
" -d : decompress\n" \
" -k : keep input file\n" \
" -f : compress with Z_FILTERED\n" \
" -h : compress with Z_HUFFMAN_ONLY\n" \
" -R : compress with Z_RLE\n" \
" -F : compress with Z_FIXED\n" \
" -m : memory level (1 to 8)\n" \
" -w : window bits..\n" \
printf("Usage: minideflate [-c][-d][-k] [-f|-h|-R|-F] [-m level] [-r/-t size] [-s flush] [-w bits] [-0 to -9] [input file]\n\n"
" -c : write to standard output\n"
" -d : decompress\n"
" -k : keep input file\n"
" -f : compress with Z_FILTERED\n"
" -h : compress with Z_HUFFMAN_ONLY\n"
" -R : compress with Z_RLE\n"
" -F : compress with Z_FIXED\n"
" -m : memory level (1 to 8)\n"
" -w : window bits..\n"
" : -1 to -15 for raw deflate\n"
" : 0 to 15 for deflate (adler32)\n"
" : 16 to 31 for gzip (crc32)\n"
" -s : flush type (0 to 5)\n" \
" -r : read buffer size\n" \
" -t : write buffer size\n" \
" -s : flush type (0 to 5)\n"
" -r : read buffer size\n"
" -t : write buffer size\n"
" -0 to -9 : compression level\n\n");
}

View File

@ -265,16 +265,16 @@ void file_uncompress(char *file, int keep) {
}
void show_help(void) {
printf("Usage: minigzip [-c] [-d] [-k] [-f|-h|-R|-F|-T] [-A] [-0 to -9] [files...]\n\n" \
" -c : write to standard output\n" \
" -d : decompress\n" \
" -k : keep input files\n" \
" -f : compress with Z_FILTERED\n" \
" -h : compress with Z_HUFFMAN_ONLY\n" \
" -R : compress with Z_RLE\n" \
" -F : compress with Z_FIXED\n" \
" -T : stored raw\n" \
" -A : auto detect type\n" \
printf("Usage: minigzip [-c] [-d] [-k] [-f|-h|-R|-F|-T] [-A] [-0 to -9] [files...]\n\n"
" -c : write to standard output\n"
" -d : decompress\n"
" -k : keep input files\n"
" -f : compress with Z_FILTERED\n"
" -h : compress with Z_HUFFMAN_ONLY\n"
" -R : compress with Z_RLE\n"
" -F : compress with Z_FIXED\n"
" -T : stored raw\n"
" -A : auto detect type\n"
" -0 to -9 : compression level\n\n");
}

View File

@ -111,7 +111,7 @@ done:
void show_help(void)
{
printf("Usage: switchlevels [-w bits] level1 size1 [level2 size2 ...]\n\n" \
printf("Usage: switchlevels [-w bits] level1 size1 [level2 size2 ...]\n\n"
" -w : window bits (8 to 15 for gzip, -8 to -15 for zlib)\n\n");
}