summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2011-09-13 13:30:45 (GMT)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2011-09-13 13:30:45 (GMT)
commit7c6229fb3d1b78f518108cee1b5088f615782ad9 (patch)
treecc5cac981274dd919d7fb6a0f416eb24b6bba810
parent32f4bab6fce8f94614a9e572f8caa9b3c76f9a7e (diff)
downloadlz4-7c6229fb3d1b78f518108cee1b5088f615782ad9.zip
lz4-7c6229fb3d1b78f518108cee1b5088f615782ad9.tar.gz
lz4-7c6229fb3d1b78f518108cee1b5088f615782ad9.tar.bz2
Updated : license text (main.c)
git-svn-id: https://lz4.googlecode.com/svn/trunk@17 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
-rw-r--r--main.c40
1 files changed, 22 insertions, 18 deletions
diff --git a/main.c b/main.c
index e3907a1..2b36c4f 100644
--- a/main.c
+++ b/main.c
@@ -1,20 +1,24 @@
/*
- Demo compression program using LZ4 compression
- Copyright (C) Yann Collet 2011,
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ LZ4Demo - Demo CLI program using LZ4 compression
+ Copyright (C) Yann Collet 2011,
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+ You can contact the author at :
+ - LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html
+ - LZ4 source repository : http://code.google.com/p/lz4/
*/
/*
Note : this is *only* a demo program, an example to show how LZ4 can be used.
@@ -186,7 +190,7 @@ int decode_file(char* input_filename, char* output_filename)
if (!strcmp (input_filename, stdinmark)) {
fprintf(stderr, "Using stdin for input\n");
finput = stdin;
-#ifdef _WIN32 /* We need to set stdin/stdout to binary mode. Damn windows. */
+#ifdef _WIN32 // need to set stdin/stdout to binary mode
_setmode( _fileno( stdin ), _O_BINARY );
#endif
} else {
@@ -196,7 +200,7 @@ int decode_file(char* input_filename, char* output_filename)
if (!strcmp (output_filename, stdoutmark)) {
fprintf(stderr, "Using stdout for output\n");
foutput = stdout;
-#ifdef _WIN32 /* We need to set stdin/stdout to binary mode. Damn windows. */
+#ifdef _WIN32 // need to set stdin/stdout to binary mode
_setmode( _fileno( stdout ), _O_BINARY );
#endif
} else {