diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-02 22:42:58 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-02 22:42:58 +0000 |
commit | a85d93d9d5c06911d843f281439a8d3e65aeb165 (patch) | |
tree | 1ba9a981fdfe6ff13de96a31c367ee1b2c9b626b /opnames.h | |
parent | 9f82a64980942b22611342057ad38094f4b84b6f (diff) | |
download | perl-a85d93d9d5c06911d843f281439a8d3e65aeb165.tar.gz |
Generate OP_IS_SOCKET() and OP_IS_FILETEST() macros
that are hopefully soon put into use.
p4raw-id: //depot/perl@6498
Diffstat (limited to 'opnames.h')
-rw-r--r-- | opnames.h | 46 |
1 files changed, 46 insertions, 0 deletions
@@ -360,3 +360,49 @@ typedef enum opcode { #define MAXO 351 + +#define OP_IS_SOCKET(op) \ + ((op) == OP_ACCEPT || \ + (op) == OP_BIND || \ + (op) == OP_CONNECT || \ + (op) == OP_GETPEERNAME || \ + (op) == OP_GETSOCKNAME || \ + (op) == OP_GSOCKOPT || \ + (op) == OP_LISTEN || \ + (op) == OP_RECV || \ + (op) == OP_SEND || \ + (op) == OP_SHUTDOWN || \ + (op) == OP_SOCKET || \ + (op) == OP_SOCKPAIR || \ + (op) == OP_SSOCKOPT) + + +#define OP_IS_FILETEST(op) \ + ((op) == OP_FTATIME || \ + (op) == OP_FTBINARY || \ + (op) == OP_FTBLK || \ + (op) == OP_FTCHR || \ + (op) == OP_FTCTIME || \ + (op) == OP_FTDIR || \ + (op) == OP_FTEEXEC || \ + (op) == OP_FTEOWNED || \ + (op) == OP_FTEREAD || \ + (op) == OP_FTEWRITE || \ + (op) == OP_FTFILE || \ + (op) == OP_FTIS || \ + (op) == OP_FTLINK || \ + (op) == OP_FTMTIME || \ + (op) == OP_FTPIPE || \ + (op) == OP_FTREXEC || \ + (op) == OP_FTROWNED || \ + (op) == OP_FTRREAD || \ + (op) == OP_FTRWRITE || \ + (op) == OP_FTSGID || \ + (op) == OP_FTSIZE || \ + (op) == OP_FTSOCK || \ + (op) == OP_FTSUID || \ + (op) == OP_FTSVTX || \ + (op) == OP_FTTEXT || \ + (op) == OP_FTTTY || \ + (op) == OP_FTZERO) + |