Browse Source

(EXTRACT_OVER_PIPE): New macro

Sergey Poznyakoff 20 years ago
parent
commit
6609c2a607
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/common.h

+ 3 - 0
src/common.h

@@ -272,6 +272,9 @@ GLOBAL bool touch_option;
 GLOBAL char *to_command_option;
 GLOBAL bool ignore_command_error_option;
 
+/* Return true if the extracted files are not being written to disk */
+#define EXTRACT_OVER_PIPE (to_stdout_option || to_command_option)
+
 /* Count how many times the option has been set, multiple setting yields
    more verbose behavior.  Value 0 means no verbosity, 1 means file name
    only, 2 means file name and all attributes.  More than 2 is just like 2.  */