proposed patch to operator manpage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael:

I have created a patch to update the current version of the operator
table, as we have discussed.

The current table is the K&R, 1st edition, and has not been updated in
30 years.

Three updates are proposed, The first you have already added to the
source. Numbers are the Sections within the C Standard changed.

In C89/90 C Standard, the postfix, increment( ++ ) and decrement( -- )
operators, have been promoted to level 1, (Section: 6.3.2) leaving the
prefix versions in the unary operators, on  Level 2 (Section: 6.3.3).

In C89/90 C Standard, the cast operator( (type) ), has been demoted to
a new third level, (Section: 6.3.4) inserted between the unary
operators, (Section: 6.3.3) and the multiplicative operators, (Section:
6.3.5) expanding the table to 16 levels.

In C11 C Standard, a new unary operator, _Alignof has been added to the
unary operators (Section: 6.5.3).

I have made the additional changes along with the update you have
already made.  The proposed patch is shown below:

diff --git a/man7/operator.7 b/man7/operator.7
index f22dc5d17..2e4b92b9f 100644
--- a/man7/operator.7
+++ b/man7/operator.7
@@ -37,18 +37,22 @@
 .\"
 .\" 2007-12-08, mtk, Converted from mdoc to man macros
 .\"
+.\" 2019-09-30, Updated for 2 changes, and 1 addition
+.\"   Rick Stanley <rstanley@xxxxxxxxx>
 .TH OPERATOR 7 2011-09-09 "Linux" "Linux Programmer's Manual"
 .SH NAME
 operator \- C operator precedence and order of evaluation
 .SH DESCRIPTION
 This manual page lists C operators and their precedence in evaluation.
+Updated through the C18 C Standard
 .PP
 .TS
 lb lb lb
 l l l.
 Operator	Associativity	Notes
 () [] \-> . ++ \-\-	left to right	[1]
-! ~ ++ \-\- + \- (type) * & sizeof	right to left	[2]
+! ~ ++ \-\- + \- * & _Alignof sizeof	right to left	[2]
+(type)	right to left
 * / %	left to right
 + \-	left to right
 << >>	left to right

-- 
RSI (Rick Stanley, Inc.)
(917) 822-7771
www.rsiny.com
Computer Systems Consulting
Linux & Open Source Specialists




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux