diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-21 16:16:13 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-21 16:16:27 +0000 |
commit | e19c8398c1946bd4616c3fa1c095149462346d15 (patch) | |
tree | 85f55afe5b89928e59ea76bdff18478bd1cc6b82 /ffexample.c | |
parent | Releasing debian version 1.12-3. (diff) | |
download | lzlib-e19c8398c1946bd4616c3fa1c095149462346d15.tar.xz lzlib-e19c8398c1946bd4616c3fa1c095149462346d15.zip |
Merging upstream version 1.13.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ffexample.c')
-rw-r--r-- | ffexample.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ffexample.c b/ffexample.c index 2891f02..59345ee 100644 --- a/ffexample.c +++ b/ffexample.c @@ -1,5 +1,5 @@ /* File to file example - Test program for the library lzlib - Copyright (C) 2010-2021 Antonio Diaz Diaz. + Copyright (C) 2010-2022 Antonio Diaz Diaz. This program is free software: you have unlimited permission to copy, distribute, and modify it. @@ -20,7 +20,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> -#if defined(__MSVCRT__) || defined(__OS2__) || defined(__DJGPP__) +#if defined __MSVCRT__ || defined __OS2__ || defined __DJGPP__ #include <fcntl.h> #include <io.h> #endif @@ -178,9 +178,9 @@ int ffmmcompress( FILE * const infile, FILE * const outfile ) } -/* Compresses 'infile' to 'outfile' as a multimember stream with one member +/* Compress 'infile' to 'outfile' as a multimember stream with one member for each line of text terminated by a newline character or by EOF. - Returns 0 if success, 1 if error. + Return 0 if success, 1 if error. */ int fflfcompress( struct LZ_Encoder * const encoder, FILE * const infile, FILE * const outfile ) @@ -219,7 +219,7 @@ int fflfcompress( struct LZ_Encoder * const encoder, } -/* Decompresses 'infile' to 'outfile' with automatic resynchronization to +/* Decompress 'infile' to 'outfile' with automatic resynchronization to next member in case of data error, including the automatic removal of leading garbage. */ @@ -257,7 +257,7 @@ int ffrsdecompress( struct LZ_Decoder * const decoder, int main( const int argc, const char * const argv[] ) { -#if defined(__MSVCRT__) || defined(__OS2__) || defined(__DJGPP__) +#if defined __MSVCRT__ || defined __OS2__ || defined __DJGPP__ setmode( STDIN_FILENO, O_BINARY ); setmode( STDOUT_FILENO, O_BINARY ); #endif |