1ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao/*===---- iso646.h - Standard header for alternate spellings of operators---===
2ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao *
3ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * Copyright (c) 2008 Eli Friedman
4ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao *
5ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * Permission is hereby granted, free of charge, to any person obtaining a copy
6ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * of this software and associated documentation files (the "Software"), to deal
7ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * in the Software without restriction, including without limitation the rights
8ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * copies of the Software, and to permit persons to whom the Software is
10ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * furnished to do so, subject to the following conditions:
11ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao *
12ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * The above copyright notice and this permission notice shall be included in
13ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * all copies or substantial portions of the Software.
14ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao *
15ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao * THE SOFTWARE.
22ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao *
23ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao *===-----------------------------------------------------------------------===
24ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao */
25ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao
26ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#ifndef __ISO646_H
27ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define __ISO646_H
28ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao
29ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#ifndef __cplusplus
30ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define and    &&
31ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define and_eq &=
32ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define bitand &
33ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define bitor  |
34ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define compl  ~
35ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define not    !
36ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define not_eq !=
37ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define or     ||
38ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define or_eq  |=
39ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define xor    ^
40ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#define xor_eq ^=
41ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#endif
42ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao
43ea285162342df160e7860e26528bc7110bc6c0cdShih-wei Liao#endif /* __ISO646_H */
44