mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-12-22 14:30:29 +00:00
d23148604d
This is taken from NetBSD.
57 lines
1.0 KiB
C
57 lines
1.0 KiB
C
/*
|
|
* $Id: operators.h,v 1.1 1996/02/10 08:27:31 gdr Exp $
|
|
*/
|
|
|
|
#ifndef __P
|
|
#ifdef __STDC__
|
|
#define __P(a) a
|
|
#else
|
|
#define __P(a) ()
|
|
#endif
|
|
#endif
|
|
|
|
#define NOT 0
|
|
#define ISBLOCK 1
|
|
#define ISCHAR 2
|
|
#define ISDIR 3
|
|
#define ISEXIST 4
|
|
#define ISFILE 5
|
|
#define ISSETGID 6
|
|
#define ISSTICKY 7
|
|
#define STRLEN 8
|
|
#define ISFIFO 9
|
|
#define ISREAD 10
|
|
#define ISSIZE 11
|
|
#define ISTTY 12
|
|
#define ISSETUID 13
|
|
#define ISWRITE 14
|
|
#define ISEXEC 15
|
|
#define NULSTR 16
|
|
#define OR1 17
|
|
#define OR2 18
|
|
#define AND1 19
|
|
#define AND2 20
|
|
#define STREQ 21
|
|
#define STRNE 22
|
|
#define EQ 23
|
|
#define NE 24
|
|
#define GT 25
|
|
#define LT 26
|
|
#define LE 27
|
|
#define GE 28
|
|
|
|
#define FIRST_BINARY_OP 17
|
|
|
|
#define OP_INT 1 /* arguments to operator are integer */
|
|
#define OP_STRING 2 /* arguments to operator are string */
|
|
#define OP_FILE 3 /* argument is a file name */
|
|
|
|
extern char *const unary_op[];
|
|
extern char *const binary_op[];
|
|
extern char *const andor_op[];
|
|
extern const char op_priority[];
|
|
extern const char op_argflag[];
|
|
|
|
extern void err __P((const char *, ...));
|
|
|