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: flip parameters in verror_at, vwar...



details:   https://anonhg.NetBSD.org/src/rev/a3de0aa7683c
branches:  trunk
changeset: 961411:a3de0aa7683c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Apr 18 10:02:16 2021 +0000

description:
lint: flip parameters in verror_at, vwarning_at, vmessage_at

The parameters are in the same order now as in the corresponding macros.

diffstat:

 usr.bin/xlint/lint1/err.c |  26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diffs (105 lines):

diff -r 4ec4a0c90994 -r a3de0aa7683c usr.bin/xlint/lint1/err.c
--- a/usr.bin/xlint/lint1/err.c Sun Apr 18 09:53:03 2021 +0000
+++ b/usr.bin/xlint/lint1/err.c Sun Apr 18 10:02:16 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: err.c,v 1.113 2021/04/18 08:52:04 rillig Exp $ */
+/*     $NetBSD: err.c,v 1.114 2021/04/18 10:02:16 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: err.c,v 1.113 2021/04/18 08:52:04 rillig Exp $");
+__RCSID("$NetBSD: err.c,v 1.114 2021/04/18 10:02:16 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -484,7 +484,7 @@
 }
 
 static void
-verror_at(pos_t pos, int n, va_list ap)
+verror_at(int n, pos_t pos, va_list ap)
 {
        const   char *fn;
 
@@ -500,7 +500,7 @@
 }
 
 static void
-vwarning_at(pos_t pos, int n, va_list ap)
+vwarning_at(int n, pos_t pos, va_list ap)
 {
        const   char *fn;
 
@@ -544,7 +544,7 @@
        va_list ap;
 
        va_start(ap, pos);
-       verror_at(pos, n, ap);
+       verror_at(n, pos, ap);
        va_end(ap);
 }
 
@@ -554,7 +554,7 @@
        va_list ap;
 
        va_start(ap, n);
-       verror_at(curr_pos, n, ap);
+       verror_at(n, curr_pos, ap);
        va_end(ap);
 }
 
@@ -594,7 +594,7 @@
        va_list ap;
 
        va_start(ap, pos);
-       vwarning_at(pos, n, ap);
+       vwarning_at(n, pos, ap);
        va_end(ap);
 }
 
@@ -604,7 +604,7 @@
        va_list ap;
 
        va_start(ap, n);
-       vwarning_at(curr_pos, n, ap);
+       vwarning_at(n, curr_pos, ap);
        va_end(ap);
 }
 
@@ -642,9 +642,9 @@
 
        va_start(ap, n);
        if (sflag && !extensions_ok) {
-               verror_at(curr_pos, n, ap);
+               verror_at(n, curr_pos, ap);
        } else if (sflag || !extensions_ok) {
-               vwarning_at(curr_pos, n, ap);
+               vwarning_at(n, curr_pos, ap);
        }
        va_end(ap);
 }
@@ -657,7 +657,7 @@
        if (c11flag || gflag)
                return;
        va_start(ap, n);
-       verror_at(curr_pos, n, ap);
+       verror_at(n, curr_pos, ap);
        va_end(ap);
 }
 
@@ -668,9 +668,9 @@
 
        va_start(ap, n);
        if (sflag && !gflag) {
-               verror_at(curr_pos, n, ap);
+               verror_at(n, curr_pos, ap);
        } else if (sflag || !gflag) {
-               vwarning_at(curr_pos, n, ap);
+               vwarning_at(n, curr_pos, ap);
        }
        va_end(ap);
 }



Home | Main Index | Thread Index | Old Index