Module Name: src Committed By: rillig Date: Tue Jan 5 21:40:42 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: mkops ops.def Log Message: lint: swap columns 1 and 2 in ops.def List the ID of a record first, followed by the describing fields. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/usr.bin/xlint/lint1/mkops cvs rdiff -u -r1.4 -r1.5 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/mkops diff -u src/usr.bin/xlint/lint1/mkops:1.12 src/usr.bin/xlint/lint1/mkops:1.13 --- src/usr.bin/xlint/lint1/mkops:1.12 Tue Jan 5 21:32:47 2021 +++ src/usr.bin/xlint/lint1/mkops Tue Jan 5 21:40:42 2021 @@ -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 @@ BEGIN { } } 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 { Index: src/usr.bin/xlint/lint1/ops.def diff -u src/usr.bin/xlint/lint1/ops.def:1.4 src/usr.bin/xlint/lint1/ops.def:1.5 --- src/usr.bin/xlint/lint1/ops.def:1.4 Tue Jan 5 21:32:47 2021 +++ src/usr.bin/xlint/lint1/ops.def Tue Jan 5 21:40:42 2021 @@ -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 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