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: swap columns 1 and 2 in ops.def



details:   https://anonhg.NetBSD.org/src/rev/442b4fb28845
branches:  trunk
changeset: 949224:442b4fb28845
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Jan 05 21:40:42 2021 +0000

description:
lint: swap columns 1 and 2 in ops.def

List the ID of a record first, followed by the describing fields.

diffstat:

 usr.bin/xlint/lint1/mkops   |    6 +-
 usr.bin/xlint/lint1/ops.def |  124 ++++++++++++++++++++++----------------------
 2 files changed, 65 insertions(+), 65 deletions(-)

diffs (152 lines):

diff -r acb8c68f722e -r 442b4fb28845 usr.bin/xlint/lint1/mkops
--- a/usr.bin/xlint/lint1/mkops Tue Jan 05 21:32:47 2021 +0000
+++ b/usr.bin/xlint/lint1/mkops Tue Jan 05 21:40:42 2021 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#      $NetBSD: mkops,v 1.12 2021/01/05 21:32:47 rillig Exp $
+#      $NetBSD: mkops,v 1.13 2021/01/05 21:40:42 rillig Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -95,11 +95,11 @@
                        }
                }
                FIRST = LAST;
-               LAST = $2;
+               LAST = $1;
                LASTCOMMENT = $5;
        }
        if (v == "c")
-               printf("\t{ /* %s */\t{ %s, \"%s\" }, %d },\n", $2, $3, $1, $4);
+               printf("\t{ /* %s */\t{ %s, \"%s\" }, %d },\n", $1, $3, $2, $4);
 }
 
 END {
diff -r acb8c68f722e -r 442b4fb28845 usr.bin/xlint/lint1/ops.def
--- a/usr.bin/xlint/lint1/ops.def       Tue Jan 05 21:32:47 2021 +0000
+++ b/usr.bin/xlint/lint1/ops.def       Tue Jan 05 21:40:42 2021 +0000
@@ -1,62 +1,62 @@
-no-op  NOOP    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
-->     ARROW   1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0     1
-.      POINT   1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
-!      NOT     0,1,0,1,0,1,0,1,0,0,0,0,0,0,0,1,0,0     1
-~      COMPL   0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,1     1
-p + 1  INC     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
-p - 1  DEC     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
-++p    INCBEF  0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
---p    DECBEF  0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-p++    INCAFT  0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-p--    DECAFT  0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-+p     UPLUS   0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,0     1
--p     UMINUS  0,0,0,0,1,1,1,0,0,0,1,0,0,0,0,1,1,0     1
-*p     STAR    0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0     1
-&p     AMPER   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
-p * p  MULT    1,0,0,0,1,1,1,0,1,0,0,1,0,0,0,1,1,0     1
-p / p  DIV     1,0,0,0,1,1,1,0,1,0,1,1,0,0,0,1,1,0     1
-p % p  MOD     1,0,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0     1
-p + p  PLUS    1,0,0,1,0,1,1,0,1,0,0,0,0,0,0,1,0,0     1
-p - p  MINUS   1,0,0,1,0,1,1,0,1,0,0,0,0,0,0,1,0,0     1
-p << p SHL     1,0,1,0,0,1,1,0,0,0,0,0,1,0,0,1,1,0     1
-p >> p SHR     1,0,1,0,0,1,1,0,0,0,1,0,1,0,0,1,1,0     1
-p < p  LT      1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0     1
-p <= p LE      1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0     1
-p > p  GT      1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0     1
-p >= p GE      1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0     1
-p == p EQ      1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,1,0     1
-p != p NE      1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,1,0     1
-p & p  AND     1,0,1,0,0,1,1,0,1,0,0,0,1,0,0,1,0,0     1
-p ^ p  XOR     1,0,1,0,0,1,1,0,1,0,0,0,1,0,0,1,0,0     1
-p | p  OR      1,0,1,0,0,1,1,0,1,0,0,0,1,0,0,1,0,0     1
-p && p LOGAND  1,1,0,1,0,1,0,1,0,0,0,0,0,0,0,1,0,0     1
-p || p LOGOR   1,1,0,1,0,1,0,1,0,0,0,0,1,0,0,1,0,0     1
-?      QUEST   1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0     1
-:      COLON   1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0     1
-p = p  ASSIGN  1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0     1
-p *= p MULASS  1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-p /= p DIVASS  1,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0     1
-p %= p MODASS  1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0     1
-p += p ADDASS  1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-p -= p SUBASS  1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-p << p SHLASS  1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-p >> p SHRASS  1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-p &= p ANDASS  1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-p ^= p XORASS  1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-p |= p ORASS   1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
-n      NAME    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
-const  CON     0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
-char * STRING  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
-fsel   FSEL    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
-p()    CALL    1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0     1
-,      COMMA   1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0     1
-(cast)p        CVT     0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0     1
-icall  ICALL   1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0     1
-load   LOAD    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
-push   PUSH    0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0     1
-return RETURN  1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0     1
-p.re   REAL    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
-p.im   IMAG    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
-p = {} INIT    1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0     1       pseudo
-case   CASE    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0       pseudo
-f(p)   FARG    1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0     1       pseudo
+NOOP   no-op   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
+ARROW  ->      1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0     1
+POINT  .       1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
+NOT    !       0,1,0,1,0,1,0,1,0,0,0,0,0,0,0,1,0,0     1
+COMPL  ~       0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,1     1
+INC    p + 1   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
+DEC    p - 1   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
+INCBEF ++p     0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+DECBEF --p     0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+INCAFT p++     0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+DECAFT p--     0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+UPLUS  +p      0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,1,1,0     1
+UMINUS -p      0,0,0,0,1,1,1,0,0,0,1,0,0,0,0,1,1,0     1
+STAR   *p      0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0     1
+AMPER  &p      0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
+MULT   p * p   1,0,0,0,1,1,1,0,1,0,0,1,0,0,0,1,1,0     1
+DIV    p / p   1,0,0,0,1,1,1,0,1,0,1,1,0,0,0,1,1,0     1
+MOD    p % p   1,0,1,0,0,1,1,0,1,0,1,1,0,0,0,1,1,0     1
+PLUS   p + p   1,0,0,1,0,1,1,0,1,0,0,0,0,0,0,1,0,0     1
+MINUS  p - p   1,0,0,1,0,1,1,0,1,0,0,0,0,0,0,1,0,0     1
+SHL    p << p  1,0,1,0,0,1,1,0,0,0,0,0,1,0,0,1,1,0     1
+SHR    p >> p  1,0,1,0,0,1,1,0,0,0,1,0,1,0,0,1,1,0     1
+LT     p < p   1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0     1
+LE     p <= p  1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0     1
+GT     p > p   1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0     1
+GE     p >= p  1,1,0,1,0,1,1,0,1,0,1,1,0,1,1,0,1,0     1
+EQ     p == p  1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,1,0     1
+NE     p != p  1,1,0,1,0,1,1,0,1,0,0,0,0,1,1,0,1,0     1
+AND    p & p   1,0,1,0,0,1,1,0,1,0,0,0,1,0,0,1,0,0     1
+XOR    p ^ p   1,0,1,0,0,1,1,0,1,0,0,0,1,0,0,1,0,0     1
+OR     p | p   1,0,1,0,0,1,1,0,1,0,0,0,1,0,0,1,0,0     1
+LOGAND p && p  1,1,0,1,0,1,0,1,0,0,0,0,0,0,0,1,0,0     1
+LOGOR  p || p  1,1,0,1,0,1,0,1,0,0,0,0,1,0,0,1,0,0     1
+QUEST  ?       1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0     1
+COLON  :       1,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0,0,0     1
+ASSIGN p = p   1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0     1
+MULASS p *= p  1,0,0,0,1,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+DIVASS p /= p  1,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0     1
+MODASS p %= p  1,0,1,0,0,0,0,0,0,1,0,1,0,0,0,1,0,0     1
+ADDASS p += p  1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+SUBASS p -= p  1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+SHLASS p << p  1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+SHRASS p >> p  1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+ANDASS p &= p  1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+XORASS p ^= p  1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+ORASS  p |= p  1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0     1
+NAME   n       0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
+CON    const   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
+STRING char *  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
+FSEL   fsel    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
+CALL   p()     1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0     1
+COMMA  ,       1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0     1
+CVT    (cast)p 0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0     1
+ICALL  icall   1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0     1
+LOAD   load    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     1
+PUSH   push    0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0     1
+RETURN return  1,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0     1
+REAL   p.re    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
+IMAG   p.im    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0
+INIT   p = {}  1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0     1       pseudo
+CASE   case    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0     0       pseudo
+FARG   f(p)    1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0     1       pseudo



Home | Main Index | Thread Index | Old Index