Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/lint1 lint: document where in C99 the behavior...



details:   https://anonhg.NetBSD.org/src/rev/98e8bd912c54
branches:  trunk
changeset: 959909:98e8bd912c54
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Feb 28 20:04:52 2021 +0000

description:
lint: document where in C99 the behavior of cconv is specified

diffstat:

 usr.bin/xlint/lint1/tree.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 467a9b8afc9d -r 98e8bd912c54 usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Sun Feb 28 19:24:15 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Sun Feb 28 20:04:52 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tree.c,v 1.230 2021/02/28 19:24:15 rillig Exp $        */
+/*     $NetBSD: tree.c,v 1.231 2021/02/28 20:04:52 rillig Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.230 2021/02/28 19:24:15 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.231 2021/02/28 20:04:52 rillig Exp $");
 #endif
 
 #include <float.h>
@@ -673,6 +673,10 @@
  * Arrays of type T are converted into pointers to type T.
  * Functions are converted to pointers to functions.
  * Lvalues are converted to rvalues.
+ *
+ * C99 6.3 "Conversions"
+ * C99 6.3.2 "Other operands"
+ * C99 6.3.2.1 "Lvalues, arrays, and function designators"
  */
 tnode_t *
 cconv(tnode_t *tn)



Home | Main Index | Thread Index | Old Index