瀏覽代碼

(EXTRACT_OVER_PIPE): New macro

Sergey Poznyakoff 20 年之前
父節點
當前提交
6609c2a607
共有 1 個文件被更改,包括 3 次插入0 次删除
  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.  */