summaryrefslogtreecommitdiff
path: root/op.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-05-03 05:33:04 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-05-03 05:33:04 +0000
commit1af34c76bc1167bbfada70004d6cbc41b0098f64 (patch)
tree42cb39da264764002e1343505a4de2678e02fcf6 /op.h
parent1911be8391700522b225cf514eddd9ebe9eaf644 (diff)
downloadperl-1af34c76bc1167bbfada70004d6cbc41b0098f64.tar.gz
Salvage 'use filetest "access"' from compiletime to runtime.
p4raw-id: //depot/perl@19392
Diffstat (limited to 'op.h')
-rw-r--r--op.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/op.h b/op.h
index 831ccbbf5e..cfc5e2b4bd 100644
--- a/op.h
+++ b/op.h
@@ -205,6 +205,16 @@ Deprecated. Use C<GIMME_V> instead.
#define OPpHUSH_VMSISH 64 /* hush DCL exit msg vmsish mode*/
#define OPpEXIT_VMSISH 128 /* exit(0) vs. exit(1) vmsish mode*/
+/* Private of OP_FTXXX */
+#define OPpFT_ACCESS 2 /* use filetest 'access' */
+#define OP_IS_FILETEST_ACCESS(op) \
+ (((op)->op_type) == OP_FTRREAD || \
+ ((op)->op_type) == OP_FTRWRITE || \
+ ((op)->op_type) == OP_FTREXEC || \
+ ((op)->op_type) == OP_FTEREAD || \
+ ((op)->op_type) == OP_FTEWRITE || \
+ ((op)->op_type) == OP_FTEEXEC)
+
struct op {
BASEOP
};