]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man7/operator.7: Add some primary expressions that look like operators
authorAlejandro Colomar <alx@kernel.org>
Sun, 27 Jul 2025 10:50:44 +0000 (12:50 +0200)
committerAlejandro Colomar <alx@kernel.org>
Tue, 19 Aug 2025 11:13:55 +0000 (13:13 +0200)
This allows comparing them with the precedence of operators.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man7/operator.7

index e80d4a87964a20ccd48ebe92302c309991e95806..f20e8386f17abd0bbd3a48d032bf6337b28352df 100644 (file)
@@ -14,8 +14,9 @@ This manual page lists C operators and their precedence in evaluation.
 lb lb lb
 l l l.
 Operator       Associativity   Notes
-[] () . \-> ++ \-\-    left to right   [1]
-++ \-\- & * + \- \[ti] ! sizeof        right to left   [2]
+() _Generic()  -       [1]
+[] () . \-> ++ \-\-    left to right   [2] [3]
+++ \-\- & * + \- \[ti] ! sizeof        right to left   [4]
 (type) right to left
 * / %  left to right
 + \-   left to right
@@ -36,9 +37,13 @@ The following notes provide further information to the above table:
 .P
 .PD 0
 .IP [1] 5
+The () at this precedence is the parenthesized expression.
+.IP [2]
+The () at this precedence is the function call operator.
+.IP [3]
 The ++ and \-\- operators at this precedence level are
 the postfix flavors of the operators.
-.IP [2]
+.IP [4]
 The ++ and \-\- operators at this precedence level are
 the prefix flavors of the operators.
 .PD