blob: a1e52b3aac80be50014eaf3c93bb8c93008bfb20 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
@node Language facilities
@chapter Language facilities
@menu
* Alternative tokens:: Alternative spellings of common operators.
@end menu
@node Alternative tokens
@section Alternative tokens
@hfindex iso646.h
@cpindex Alternative tokens
@cpindex Tokens, alternative
The C90 standard was amended in 1995 to include
alternative spellings of common operators, referred
to as C alternative tokens.
@table @code
@item and
@fnindex and
@code{&&}
@item and_eq
@fnindex and_eq
@code{&=}
@item bitand
@fnindex bitand
@code{&}
@item bitor
@fnindex bitor
@code{|}
@item compl
@fnindex compl
@code{~}
@item not
@fnindex not
@code{!}
@item not_eq
@fnindex not_eq
@code{!=}
@item or
@fnindex or
@code{||}
@item or_eq
@fnindex or_eq
@code{|=}
@item xor
@fnindex xor
@code{^}
@item xor_eq
@fnindex xor_eq
@code{^=}
@end table
These alternative spellings are implemented as a
group of macro constants, and are made available
by including the header file @file{<iso646.h>}.
They were added because a concern that the standard
names are difficult to type on some keyboard-layouts.
Use of these alternative tokens are discouraged,
they lessen the readability of your code. If it is
difficult to type some characters without yout
keyboard-layout, it is better to change keyboard-layout.
|