Home | History | Annotate | Download | only in programs

Lines Matching refs:DISPLAY

105 #define DISPLAY(...)           fprintf(stderr, __VA_ARGS__)
106 #define DISPLAYLEVEL(l, ...) if (displayLevel>=l) { DISPLAY(__VA_ARGS__); }
107 static unsigned displayLevel = 2; /* 0 : no display ; 1: errors ; 2 : + result + interaction + warnings ; 3 : + progression; 4 : + information */
120 #define DEBUGOUTPUT(...) if (DEBUG) DISPLAY(__VA_ARGS__);
147 DISPLAY( "Usage :\n");
148 DISPLAY( " %s [arg] [input] [output]\n", programName);
149 DISPLAY( "\n");
150 DISPLAY( "input : a filename\n");
151 DISPLAY( " with no FILE, or when FILE is - or %s, read standard input\n", stdinmark);
152 DISPLAY( "Arguments :\n");
153 DISPLAY( " -1 : Fast compression (default) \n");
154 DISPLAY( " -9 : High compression \n");
155 DISPLAY( " -d : decompression (default for %s extension)\n", LZ4_EXTENSION);
156 DISPLAY( " -z : force compression\n");
157 DISPLAY( " -f : overwrite output without prompting \n");
158 DISPLAY( " -h/-H : display help/long help and exit\n");
164 DISPLAY(WELCOME_MESSAGE);
166 DISPLAY( "\n");
167 DISPLAY( "Advanced arguments :\n");
168 DISPLAY( " -V : display Version number and exit\n");
169 DISPLAY( " -v : verbose mode\n");
170 DISPLAY( " -q : suppress warnings; specify twice to suppress errors too\n");
171 DISPLAY( " -c : force write to standard output, even if it is the console\n");
172 DISPLAY( " -t : test compressed file integrity\n");
173 DISPLAY( " -l : compress using Legacy format (Linux kernel compression)\n");
174 DISPLAY( " -B# : Block size [4-7](default : 7)\n");
175 DISPLAY( " -BD : Block dependency (improve compression ratio)\n");
176 /* DISPLAY( " -BX : enable block checksum (default:disabled)\n"); *//* Option currently inactive */
177 DISPLAY( " -Sx : disable stream checksum (default:enabled)\n");
178 DISPLAY( "Benchmark arguments :\n");
179 DISPLAY( " -b : benchmark file(s)\n");
180 DISPLAY( " -i# : iteration loops [1-9](default : 3), benchmark mode only\n");
182 DISPLAY( "Legacy arguments :\n");
183 DISPLAY( " -c0 : fast compression\n");
184 DISPLAY( " -c1 : high compression\n");
185 DISPLAY( " -hc : high compression\n");
186 DISPLAY( " -y : overwrite output without prompting \n");
187 DISPLAY( " -s : suppress warnings \n");
195 DISPLAY( "\n");
196 DISPLAY( "Which values can get [output] ? \n");
197 DISPLAY( "[output] : a filename\n");
198 DISPLAY( " '%s', or '-' for standard output (pipe mode)\n", stdoutmark);
199 DISPLAY( " '%s' to discard output (test mode)\n", NULL_OUTPUT);
200 DISPLAY( "[output] can be left empty. In this case, it receives the following value : \n");
201 DISPLAY( " - if stdout is not the console, then [output] = stdout \n");
202 DISPLAY( " - if stdout is console : \n");
203 DISPLAY( " + if compression selected, output to filename%s \n", LZ4_EXTENSION);
204 DISPLAY( " + if decompression selected, output to filename without '%s'\n", LZ4_EXTENSION);
205 DISPLAY( " > if input filename has no '%s' extension : error\n", LZ4_EXTENSION);
206 DISPLAY( "\n");
207 DISPLAY( "Compression levels : \n");
208 DISPLAY( "There are technically 2 accessible compression levels.\n");
209 DISPLAY( "-0 ... -2 => Fast compression\n");
210 DISPLAY( "-3 ... -9 => High compression\n");
211 DISPLAY( "\n");
212 DISPLAY( "stdin, stdout and the console : \n");
213 DISPLAY( "To protect the console from binary flooding (bad argument mistake)\n");
214 DISPLAY( "%s will refuse to read from console, or write to console \n", programName);
215 DISPLAY( "except if '-c' command is specified, to force output to console \n");
216 DISPLAY( "\n");
217 DISPLAY( "Simple example :\n");
218 DISPLAY( "1 : compress 'filename' fast, using default output name 'filename.lz4'\n");
219 DISPLAY( " %s filename\n", programName);
220 DISPLAY( "\n");
221 DISPLAY( "Arguments can be appended together, or provided independently. For example :\n");
222 DISPLAY( "2 : compress 'filename' in high compression mode, overwrite output if exists\n");
223 DISPLAY( " %s -f9 filename \n", programName);
224 DISPLAY( " is equivalent to :\n");
225 DISPLAY( " %s -f -9 filename \n", programName);
226 DISPLAY( "\n");
227 DISPLAY( "%s can be used in 'pure pipe mode', for example :\n", programName);
228 DISPLAY( "3 : compress data stream from 'generator', send result to 'consumer'\n");
229 DISPLAY( " generator | %s | consumer \n", programName);
231 DISPLAY( "\n");
232 DISPLAY( "Warning :\n");
233 DISPLAY( "Legacy arguments take precedence. Therefore : \n");
234 DISPLAY( " %s -hc filename\n", programName);
235 DISPLAY( "means 'compress filename in high compression mode'\n");
236 DISPLAY( "It is not equivalent to :\n");
237 DISPLAY( " %s -h -c filename\n", programName);
238 DISPLAY( "which would display help text and exit\n");
253 DISPLAY("Press enter to continue...\n");
329 /* Display help */
330 case 'V': DISPLAY(WELCOME_MESSAGE); return 0; /* Version */