xref: /csrg-svn/bin/test/operators.h (revision 66643)
159574Sbostic /*-
2*66643Spendry  * Copyright (c) 1993, 1994
360726Sbostic  *	The Regents of the University of California.  All rights reserved.
459574Sbostic  *
559574Sbostic  * %sccs.include.redist.c%
659574Sbostic  *
7*66643Spendry  *	@(#)operators.h	8.3 (Berkeley) 04/02/94
859574Sbostic  */
959574Sbostic 
1059574Sbostic #define	NOT		0
1159574Sbostic #define	ISBLOCK		1
1259574Sbostic #define	ISCHAR		2
1359574Sbostic #define	ISDIR		3
1459574Sbostic #define	ISEXIST		4
1559574Sbostic #define	ISFILE		5
1659574Sbostic #define	ISSETGID	6
1760597Sbostic #define	ISSYMLINK	7
1860597Sbostic #define	ISSTICKY	8
1960597Sbostic #define	STRLEN		9
2060597Sbostic #define	ISFIFO		10
2160597Sbostic #define	ISREAD		11
2260597Sbostic #define	ISSIZE		12
2360597Sbostic #define	ISTTY		13
2460597Sbostic #define	ISSETUID	14
2560597Sbostic #define	ISWRITE		15
2660597Sbostic #define	ISEXEC		16
2760597Sbostic #define	NULSTR		17
2859574Sbostic 
2960597Sbostic #define	FIRST_BINARY_OP	18
3060597Sbostic #define	OR1		18
3160597Sbostic #define	OR2		19
3260597Sbostic #define	AND1		20
3360597Sbostic #define	AND2		21
3460597Sbostic #define	STREQ		22
3560597Sbostic #define	STRNE		23
3660597Sbostic #define	EQ		24
3760597Sbostic #define	NE		25
3860597Sbostic #define	GT		26
3960597Sbostic #define	LT		27
4060597Sbostic #define	LE		28
4160597Sbostic #define	GE		29
4259574Sbostic 
4359574Sbostic 
4459574Sbostic #define	OP_INT		1	/* arguments to operator are integer */
4559574Sbostic #define	OP_STRING	2	/* arguments to operator are string */
4659574Sbostic #define	OP_FILE		3	/* argument is a file name */
4759574Sbostic 
4866565Spendry extern const char *const unary_op[];
4966565Spendry extern const char *const binary_op[];
5059574Sbostic extern const char op_priority[];
5159574Sbostic extern const char op_argflag[];
52