From: Rick Stanley <rstanley@rsiny.com>
To: mtk.manpages@gmail.com, linux-man@vger.kernel.org
Cc: Rick Stanley <rstanley@rsiny.com>
Subject: proposed patch to operator manpage
Date: Tue, 01 Oct 2019 09:48:42 -0400 [thread overview]
Message-ID: <b213bfc24fa025f4981655b00ea6824035858952.camel@rsiny.com> (raw)
In-Reply-To: <3cdbcb38-734a-2b1e-ba12-f5e85a89b805@gmail.com>
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@rsiny.com>
.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
prev parent reply other threads:[~2019-10-01 14:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-20 14:19 Man page pre & post operators error Rick Stanley
2019-09-20 17:00 ` Jakub Wilk
2019-09-22 21:01 ` Michael Kerrisk (man-pages)
2019-09-22 22:50 ` Rick Stanley
2019-09-23 7:43 ` Michael Kerrisk (man-pages)
2019-09-25 15:23 ` Rick Stanley
2019-09-25 19:42 ` Michael Kerrisk (man-pages)
2019-09-25 20:08 ` Michael Kerrisk (man-pages)
2019-09-25 22:53 ` Rick Stanley
2019-09-28 18:05 ` Manpage operator update Rick Stanley
2019-10-01 13:48 ` Rick Stanley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b213bfc24fa025f4981655b00ea6824035858952.camel@rsiny.com \
--to=rstanley@rsiny.com \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).