Module Name: src
Committed By: rillig
Date: Wed Jun 15 18:44:42 UTC 2022
Modified Files:
src/usr.bin/xlint/lint1: ops.def
Log Message:
lint: update comments in operator table
No binary change.
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/xlint/lint1/ops.def
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/ops.def
diff -u src/usr.bin/xlint/lint1/ops.def:1.28 src/usr.bin/xlint/lint1/ops.def:1.29
--- src/usr.bin/xlint/lint1/ops.def:1.28 Sat Apr 16 22:21:10 2022
+++ src/usr.bin/xlint/lint1/ops.def Wed Jun 15 18:44:41 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: ops.def,v 1.28 2022/04/16 22:21:10 rillig Exp $ */
+/* $NetBSD: ops.def,v 1.29 2022/06/15 18:44:41 rillig Exp $ */
begin_ops()
@@ -21,12 +21,12 @@ begin_ops()
* requires arithmetic x | | |
* requires integer or complex x | | |
* requires integer - - - - x | | |
- * requires _Bool x | | | |
+ * compares with zero x | | | |
* takes _Bool x | | | |
* logical x | | | |
* binary x | | | |
*/
-/* name repr b l b B i c a s f v - b s l r p c e e = */
+/* name repr b l b z i c a s f v - b s l r p c e e = */
op( NOOP, "no-op", , , , , , , , , , , , , , , , , , , , )
op( ARROW, "->", 1, ,1, , , , , , ,1, , , , , , , , , , )
op( POINT, ".", 1, ,1, , , , , , , , , , , , , , , , , )
@@ -44,7 +44,7 @@ op( INDIR, "*", , , , , , , , , ,1, ,
op( ADDR, "&", , ,1, , , , , , , , , , , , , , , , , )
/* the operator 'arr[ind]' is translated to '*(arr + ind)' during parsing. */
-/* name repr b l b B i c a s f v - b s l r p c e e = */
+/* name repr b l b z i c a s f v - b s l r p c e e = */
op( MULT, "*", 1, , , , , ,1, ,1,1, ,1, , ,1, , , ,1,1)
op( DIV, "/", 1, , , , , ,1, ,1,1, ,1, ,1,1, , , ,1,1)
op( MOD, "%", 1, , , ,1, , , ,1,1, ,1, ,1,1, , , ,1,1)
@@ -53,7 +53,7 @@ op( MINUS, "-", 1, , , , , , ,1,1,1, ,1
op( SHL, "<<", 1, , , ,1, , , ,1,1, , , , , ,1, , ,1,1)
op( SHR, ">>", 1, , , ,1, , , ,1,1, , , ,1, ,1, , ,1,1)
-/* name repr b l b B i c a s f v - b s l r p c e e = */
+/* name repr b l b z i c a s f v - b s l r p c e e = */
op( LT, "<", 1,1, , , , , ,1,1,1, ,1, ,1,1, ,1,1, ,1)
op( LE, "<=", 1,1, , , , , ,1,1,1, ,1, ,1,1, ,1,1, ,1)
op( GT, ">", 1,1, , , , , ,1,1,1, ,1, ,1,1, ,1,1, ,1)
@@ -61,7 +61,7 @@ op( GE, ">=", 1,1, , , , , ,1,1,1, ,1,
op( EQ, "==", 1,1,1, , , , ,1,1,1, ,1, , , , ,1,1, ,1)
op( NE, "!=", 1,1,1, , , , ,1,1,1, ,1, , , , ,1,1, ,1)
-/* name repr b l b B i c a s f v - b s l r p c e e = */
+/* name repr b l b z i c a s f v - b s l r p c e e = */
op( BITAND, "&", 1, ,1, ,1, , , ,1,1, ,1, , , ,1, , ,1, )
op( BITXOR, "^", 1, ,1, ,1, , , ,1,1, ,1, , , ,1, , ,1, )
op( BITOR, "|", 1, ,1, ,1, , , ,1,1, ,1, , , ,1, , ,1, )
@@ -70,7 +70,7 @@ op( LOGOR, "||", 1,1,1,1, , , ,1,1, , ,
op( QUEST, "?", 1, , ,1, , , , ,1, , , , , , , , , , , )
op( COLON, ":", 1, ,1, , , , , , ,1, ,1, , , , , ,1, , )
-/* name repr b l b B i c a s f v - b s l r p c e e = */
+/* name repr b l b z i c a s f v - b s l r p c e e = */
op( ASSIGN, "=", 1, ,1, , , , , , , , , ,1, , , , ,1, , )
op( MULASS, "*=", 1, , , , , ,1, , , , , ,1, , , , , ,1, )
op( DIVASS, "/=", 1, , , , , ,1, , , , , ,1, ,1, , , ,1, )
@@ -83,7 +83,7 @@ op( ANDASS, "&=", 1, ,1, ,1, , , , , ,
op( XORASS, "^=", 1, ,1, ,1, , , , , , , ,1, , , , , ,1, )
op( ORASS, "|=", 1, ,1, ,1, , , , , , , ,1, , , , , ,1, )
-/* name repr b l b B i c a s f v - b s l r p c e e = */
+/* name repr b l b z i c a s f v - b s l r p c e e = */
op( NAME, "name", , , , , , , , , , , , , , , , , , , , )
op( CON, "constant", , , , , , , , , , , , , , , , , , , , )
op( STRING, "string", , , , , , , , , , , , , , , , , , , , )
@@ -105,7 +105,7 @@ op( REAL, "real", , , , , , , , , , ,
op( IMAG, "imag", , , , , , , , , , , , , , , , , , , , )
/* INIT, CASE and FARG are pseudo operators that don't appear in the tree. */
-/* name repr b l b B i c a s f v - b s l r p c e e = */
+/* name repr b l b z i c a s f v - b s l r p c e e = */
op( INIT, "init", 1, ,1, , , , , , , , , ,1, , , , ,1, , )
op( CASE, "case", , , , , , , , , , , , , , , , , , , , )
/*