/*\r
- Demo compression program using LZ4 compression\r
- Copyright (C) Yann Collet 2011,\r
-\r
- This program is free software; you can redistribute it and/or modify\r
- it under the terms of the GNU General Public License as published by\r
- the Free Software Foundation; either version 2 of the License, or\r
- (at your option) any later version.\r
-\r
- This program is distributed in the hope that it will be useful,\r
- but WITHOUT ANY WARRANTY; without even the implied warranty of\r
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
- GNU General Public License for more details.\r
-\r
- You should have received a copy of the GNU General Public License\r
- along with this program; if not, write to the Free Software\r
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
+ LZ4Demo - Demo CLI program using LZ4 compression\r
+ Copyright (C) Yann Collet 2011,\r
+\r
+ This program is free software; you can redistribute it and/or modify\r
+ it under the terms of the GNU General Public License as published by\r
+ the Free Software Foundation; either version 2 of the License, or\r
+ (at your option) any later version.\r
+\r
+ This program is distributed in the hope that it will be useful,\r
+ but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+ GNU General Public License for more details.\r
+\r
+ You should have received a copy of the GNU General Public License along\r
+ with this program; if not, write to the Free Software Foundation, Inc.,\r
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\r
+\r
+ You can contact the author at :\r
+ - LZ4 homepage : http://fastcompression.blogspot.com/p/lz4.html\r
+ - LZ4 source repository : http://code.google.com/p/lz4/\r
*/\r
/*\r
Note : this is *only* a demo program, an example to show how LZ4 can be used.\r
if (!strcmp (input_filename, stdinmark)) {\r
fprintf(stderr, "Using stdin for input\n");\r
finput = stdin;\r
-#ifdef _WIN32 /* We need to set stdin/stdout to binary mode. Damn windows. */\r
+#ifdef _WIN32 // need to set stdin/stdout to binary mode\r
_setmode( _fileno( stdin ), _O_BINARY );\r
#endif\r
} else {\r
if (!strcmp (output_filename, stdoutmark)) {\r
fprintf(stderr, "Using stdout for output\n");\r
foutput = stdout;\r
-#ifdef _WIN32 /* We need to set stdin/stdout to binary mode. Damn windows. */\r
+#ifdef _WIN32 // need to set stdin/stdout to binary mode\r
_setmode( _fileno( stdout ), _O_BINARY );\r
#endif\r
} else {\r