summaryrefslogtreecommitdiffstats
path: root/ffexample.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-02-21 16:16:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-02-21 16:16:10 +0000
commit87cba41e30f31fb96d606fa5079d598ab7ebe4f7 (patch)
tree56fad1ae369f72a13426af15677dcead81c1eb0b /ffexample.c
parentAdding upstream version 1.12. (diff)
downloadlzlib-87cba41e30f31fb96d606fa5079d598ab7ebe4f7.tar.xz
lzlib-87cba41e30f31fb96d606fa5079d598ab7ebe4f7.zip
Adding upstream version 1.13.upstream/1.13
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ffexample.c')
-rw-r--r--ffexample.c12
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