Thread (2 messages) 2 messages, 1 author, 2021-08-28

[PATCH 2/2] operator.7: Reorder symbols as in the standard (C11)

From: Alejandro Colomar <hidden>
Date: 2021-08-28 12:15:12
Subsystem: the rest · Maintainer: Linus Torvalds

This makes it easier to compare this page to the standard,
to get more details about the rules between operators.

Signed-off-by: Alejandro Colomar <redacted>
---
 man7/operator.7 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/man7/operator.7 b/man7/operator.7
index 22c107c7f..2770c5806 100644
--- a/man7/operator.7
+++ b/man7/operator.7
@@ -47,13 +47,13 @@ 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]
+[] () . \-> ++ \-\-	left to right	[1]
+++ \-\- & * + \- \(ti ! sizeof	right to left	[2]
 (type)	right to left
 * / %	left to right
 + \-	left to right
 << >>	left to right
-< <= > >=	left to right
+< > <= >=	left to right
 == !=	left to right
 &	left to right
 \(ha	left to right
@@ -61,7 +61,7 @@ Operator	Associativity	Notes
 &&	left to right
 ||	left to right
 ?:	right to left
-= += \-= *= /= %= <<= >>= &= \(ha= |=	right to left
+= *= /= %= += \-= <<= >>= &= \(ha= |=	right to left
 ,	left to right
 .TE
 .PP
-- 
2.33.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help