Lines Matching refs:DISPLAY
71 #define DISPLAY(...) fprintf(stderr, __VA_ARGS__)
72 #define DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); }
80 #define DEBUGOUTPUT(...) if (DEBUG) DISPLAY(__VA_ARGS__);
107 DISPLAY( "Usage : \n");
108 DISPLAY( " %s [arg] [input] [output] \n", exeName);
109 DISPLAY( "\n");
110 DISPLAY( "input : a filename \n");
111 DISPLAY( " with no FILE, or when FILE is - or %s, read standard input\n", stdinmark);
112 DISPLAY( "Arguments : \n");
113 DISPLAY( " -1 : Fast compression (default) \n");
114 DISPLAY( " -9 : High compression \n");
115 DISPLAY( " -d : decompression (default for %s extension)\n", LZ4_EXTENSION);
116 DISPLAY( " -z : force compression \n");
117 DISPLAY( " -D FILE: use FILE as dictionary \n");
118 DISPLAY( " -f : overwrite output without prompting \n");
119 DISPLAY( " -k : preserve source files(s) (default) \n");
120 DISPLAY( "--rm : remove source file(s) after successful de/compression \n");
121 DISPLAY( " -h/-H : display help/long help and exit \n");
127 DISPLAY(WELCOME_MESSAGE);
129 DISPLAY( "\n");
130 DISPLAY( "Advanced arguments :\n");
131 DISPLAY( " -V : display Version number and exit \n");
132 DISPLAY( " -v : verbose mode \n");
133 DISPLAY( " -q : suppress warnings; specify twice to suppress errors too\n");
134 DISPLAY( " -c : force write to standard output, even if it is the console\n");
135 DISPLAY( " -t : test compressed file integrity\n");
136 DISPLAY( " -m : multiple input files (implies automatic output filenames)\n");
138 DISPLAY( " -r : operate recursively on directories (sets also -m) \n");
140 DISPLAY( " -l : compress using Legacy format (Linux kernel compression)\n");
141 DISPLAY( " -B# : cut file into blocks of size # bytes [32+] \n");
142 DISPLAY( " or predefined block size [4-7] (default: 7) \n");
143 DISPLAY( " -BI : Block Independence (default) \n");
144 DISPLAY( " -BD : Block dependency (improves compression ratio) \n");
145 DISPLAY( " -BX : enable block checksum (default:disabled) \n");
146 DISPLAY( "--no-frame-crc : disable stream checksum (default:enabled) \n");
147 DISPLAY( "--content-size : compressed frame includes original size (default:not present)\n");
148 DISPLAY( "--list FILE : lists information about .lz4 files (useful for files compressed with --content-size flag)\n");
149 DISPLAY( "--[no-]sparse : sparse mode (default:enabled on file, disabled on stdout)\n");
150 DISPLAY( "--favor-decSpeed: compressed files decompress faster, but are less compressed \n");
151 DISPLAY( "--fast[=#]: switch to ultra fast compression level (default: %i)\n", 1);
152 DISPLAY( "--best : same as -%d\n", LZ4HC_CLEVEL_MAX);
153 DISPLAY( "Benchmark arguments : \n");
154 DISPLAY( " -b# : benchmark file(s), using # compression level (default : 1) \n");
155 DISPLAY( " -e# : test all compression levels from -bX to # (default : 1)\n");
156 DISPLAY( " -i# : minimum evaluation time in seconds (default : 3s) \n");
158 DISPLAY( "Legacy arguments : \n");
159 DISPLAY( " -c0 : fast compression \n");
160 DISPLAY( " -c1 : high compression \n");
161 DISPLAY( " -c2,-hc: very high compression \n");
162 DISPLAY( " -y : overwrite output without prompting \n");
170 DISPLAY( "\n");
171 DISPLAY( "****************************\n");
172 DISPLAY( "***** Advanced comment *****\n");
173 DISPLAY( "****************************\n");
174 DISPLAY( "\n");
175 DISPLAY( "Which values can [output] have ? \n");
176 DISPLAY( "---------------------------------\n");
177 DISPLAY( "[output] : a filename \n");
178 DISPLAY( " '%s', or '-' for standard output (pipe mode)\n", stdoutmark);
179 DISPLAY( " '%s' to discard output (test mode) \n", NULL_OUTPUT);
180 DISPLAY( "[output] can be left empty. In this case, it receives the following value :\n");
181 DISPLAY( " - if stdout is not the console, then [output] = stdout \n");
182 DISPLAY( " - if stdout is console : \n");
183 DISPLAY( " + for compression, output to filename%s \n", LZ4_EXTENSION);
184 DISPLAY( " + for decompression, output to filename without '%s'\n", LZ4_EXTENSION);
185 DISPLAY( " > if input filename has no '%s' extension : error \n", LZ4_EXTENSION);
186 DISPLAY( "\n");
187 DISPLAY( "Compression levels : \n");
188 DISPLAY( "---------------------\n");
189 DISPLAY( "-0 ... -2 => Fast compression, all identical\n");
190 DISPLAY( "-3 ... -%d => High compression; higher number == more compression but slower\n", LZ4HC_CLEVEL_MAX);
191 DISPLAY( "\n");
192 DISPLAY( "stdin, stdout and the console : \n");
193 DISPLAY( "--------------------------------\n");
194 DISPLAY( "To protect the console from binary flooding (bad argument mistake)\n");
195 DISPLAY( "%s will refuse to read from console, or write to console \n", exeName);
196 DISPLAY( "except if '-c' command is specified, to force output to console \n");
197 DISPLAY( "\n");
198 DISPLAY( "Simple example :\n");
199 DISPLAY( "----------------\n");
200 DISPLAY( "1 : compress 'filename' fast, using default output name 'filename.lz4'\n");
201 DISPLAY( " %s filename\n", exeName);
202 DISPLAY( "\n");
203 DISPLAY( "Short arguments can be aggregated. For example :\n");
204 DISPLAY( "----------------------------------\n");
205 DISPLAY( "2 : compress 'filename' in high compression mode, overwrite output if exists\n");
206 DISPLAY( " %s -9 -f filename \n", exeName);
207 DISPLAY( " is equivalent to :\n");
208 DISPLAY( " %s -9f filename \n", exeName);
209 DISPLAY( "\n");
210 DISPLAY( "%s can be used in 'pure pipe mode'. For example :\n", exeName);
211 DISPLAY( "-------------------------------------\n");
212 DISPLAY( "3 : compress data stream from 'generator', send result to 'consumer'\n");
213 DISPLAY( " generator | %s | consumer \n", exeName);
215 DISPLAY( "\n");
216 DISPLAY( "***** Warning ***** \n");
217 DISPLAY( "Legacy arguments take precedence. Therefore : \n");
218 DISPLAY( "--------------------------------- \n");
219 DISPLAY( " %s -hc filename \n", exeName);
220 DISPLAY( "means 'compress filename in high compression mode' \n");
221 DISPLAY( "It is not equivalent to : \n");
222 DISPLAY( " %s -h -c filename \n", exeName);
223 DISPLAY( "which displays help text and exits \n");
238 DISPLAY("Press enter to continue...\n");
341 DISPLAY("Allocation error : not enough memory \n");