Explorar el Código

(EXTRACT_OVER_PIPE): New macro

Sergey Poznyakoff hace 20 años
padre
commit
6609c2a607
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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.  */