Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unnecessary line continuations #1551

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions test/minideflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down
20 changes: 10 additions & 10 deletions test/minigzip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down
2 changes: 1 addition & 1 deletion test/switchlevels.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static int compress_chunk(PREFIX3(stream) *strm, int level, int size, int last)

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");
}

Expand Down