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