main.c (278433) | main.c (291125) |
---|---|
1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file main.c 4/// \brief main() 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 198 unchanged lines hidden (view full) --- 207 208 // coder_run() handles compression, decompression, and testing. 209 // list_file() is for --list. 210 void (*run)(const char *filename) = opt_mode == MODE_LIST 211 ? &list_file : &coder_run; 212 213 // Process the files given on the command line. Note that if no names 214 // were given, args_parse() gave us a fake "-" filename. | 1/////////////////////////////////////////////////////////////////////////////// 2// 3/// \file main.c 4/// \brief main() 5// 6// Author: Lasse Collin 7// 8// This file has been put into the public domain. --- 198 unchanged lines hidden (view full) --- 207 208 // coder_run() handles compression, decompression, and testing. 209 // list_file() is for --list. 210 void (*run)(const char *filename) = opt_mode == MODE_LIST 211 ? &list_file : &coder_run; 212 213 // Process the files given on the command line. Note that if no names 214 // were given, args_parse() gave us a fake "-" filename. |
215 for (size_t i = 0; i < args.arg_count && !user_abort; ++i) { | 215 for (unsigned i = 0; i < args.arg_count && !user_abort; ++i) { |
216 if (strcmp("-", args.arg_names[i]) == 0) { 217 // Processing from stdin to stdout. Check that we 218 // aren't writing compressed data to a terminal or 219 // reading it from a terminal. 220 if (opt_mode == MODE_COMPRESS) { 221 if (is_tty_stdout()) 222 continue; 223 } else if (is_tty_stdin()) { --- 84 unchanged lines hidden --- | 216 if (strcmp("-", args.arg_names[i]) == 0) { 217 // Processing from stdin to stdout. Check that we 218 // aren't writing compressed data to a terminal or 219 // reading it from a terminal. 220 if (opt_mode == MODE_COMPRESS) { 221 if (is_tty_stdout()) 222 continue; 223 } else if (is_tty_stdin()) { --- 84 unchanged lines hidden --- |