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 lint1: remove trailing whitespace



details:   https://anonhg.NetBSD.org/src/rev/7bf6cf0cbb23
branches:  trunk
changeset: 958195:7bf6cf0cbb23
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Dec 28 12:52:45 2020 +0000

description:
lint1: remove trailing whitespace

diffstat:

 usr.bin/xlint/lint1/emit1.c |   8 ++++----
 usr.bin/xlint/lint1/init.c  |   8 ++++----
 usr.bin/xlint/lint1/main1.c |   6 +++---
 usr.bin/xlint/lint1/mem1.c  |   8 ++++----
 usr.bin/xlint/lint1/print.c |   6 +++---
 usr.bin/xlint/lint1/tree.c  |  12 ++++++------
 6 files changed, 24 insertions(+), 24 deletions(-)

diffs (203 lines):

diff -r 75428911fc17 -r 7bf6cf0cbb23 usr.bin/xlint/lint1/emit1.c
--- a/usr.bin/xlint/lint1/emit1.c       Mon Dec 28 12:47:39 2020 +0000
+++ b/usr.bin/xlint/lint1/emit1.c       Mon Dec 28 12:52:45 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: emit1.c,v 1.20 2017/12/26 17:02:19 christos Exp $ */
+/* $NetBSD: emit1.c,v 1.21 2020/12/28 12:52:45 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: emit1.c,v 1.20 2017/12/26 17:02:19 christos Exp $");
+__RCSID("$NetBSD: emit1.c,v 1.21 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <ctype.h>
@@ -55,8 +55,8 @@
  * a node is coded as follows:
  *     _Bool                   B
  *     _Complex float          s X
- *     _Complex double         X 
- *     _Complex long double    l X 
+ *     _Complex double         X
+ *     _Complex long double    l X
  *     char                    C
  *     signed char             s C
  *     unsigned char           u C
diff -r 75428911fc17 -r 7bf6cf0cbb23 usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c        Mon Dec 28 12:47:39 2020 +0000
+++ b/usr.bin/xlint/lint1/init.c        Mon Dec 28 12:52:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.27 2015/07/28 17:55:13 christos Exp $       */
+/*     $NetBSD: init.c,v 1.28 2020/12/28 12:52:45 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.27 2015/07/28 17:55:13 christos Exp $");
+__RCSID("$NetBSD: init.c,v 1.28 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -87,7 +87,7 @@
 memberpush(sb)
        sbuf_t *sb;
 {
-       namlist_t *nam = xcalloc(1, sizeof (namlist_t)); 
+       namlist_t *nam = xcalloc(1, sizeof (namlist_t));
        nam->n_name = sb->sb_name;
        DPRINTF(("%s: %s %p\n", __func__, nam->n_name, nam));
        if (namedmem == NULL) {
@@ -356,7 +356,7 @@
                        if (m == NULL) {
                                DPRINTF(("%s(): struct pop\n", __func__));
                                goto pop;
-                       } 
+                       }
                        istk->i_mem = m;
                        istk->i_subt = m->s_type;
                        istk->i_namedmem = 1;
diff -r 75428911fc17 -r 7bf6cf0cbb23 usr.bin/xlint/lint1/main1.c
--- a/usr.bin/xlint/lint1/main1.c       Mon Dec 28 12:47:39 2020 +0000
+++ b/usr.bin/xlint/lint1/main1.c       Mon Dec 28 12:52:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main1.c,v 1.27 2018/12/23 19:09:03 christos Exp $      */
+/*     $NetBSD: main1.c,v 1.28 2020/12/28 12:52:45 rillig Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: main1.c,v 1.27 2018/12/23 19:09:03 christos Exp $");
+__RCSID("$NetBSD: main1.c,v 1.28 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -202,7 +202,7 @@
                        msglist();
                        return(0);
 
-               case 'R':       
+               case 'R':
                        fnaddreplsrcdir(optarg);
                        break;
 
diff -r 75428911fc17 -r 7bf6cf0cbb23 usr.bin/xlint/lint1/mem1.c
--- a/usr.bin/xlint/lint1/mem1.c        Mon Dec 28 12:47:39 2020 +0000
+++ b/usr.bin/xlint/lint1/mem1.c        Mon Dec 28 12:52:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mem1.c,v 1.18 2016/12/24 17:43:45 christos Exp $       */
+/*     $NetBSD: mem1.c,v 1.19 2020/12/28 12:52:45 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: mem1.c,v 1.18 2016/12/24 17:43:45 christos Exp $");
+__RCSID("$NetBSD: mem1.c,v 1.19 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <sys/types.h>
@@ -100,9 +100,9 @@
 fnaddreplsrcdir(char *arg)
 {
        struct repl *r = xmalloc(sizeof(*r));
-       
+
        r->orig = arg;
-       if ((r->repl = strchr(arg, '=')) == NULL) 
+       if ((r->repl = strchr(arg, '=')) == NULL)
                err(1, "Bad replacement directory spec `%s'", arg);
        r->len = r->repl - r->orig;
        *(r->repl)++ = '\0';
diff -r 75428911fc17 -r 7bf6cf0cbb23 usr.bin/xlint/lint1/print.c
--- a/usr.bin/xlint/lint1/print.c       Mon Dec 28 12:47:39 2020 +0000
+++ b/usr.bin/xlint/lint1/print.c       Mon Dec 28 12:52:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.4 2008/07/31 15:21:34 christos Exp $       */
+/*     $NetBSD: print.c,v 1.5 2020/12/28 12:52:45 rillig Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: print.c,v 1.4 2008/07/31 15:21:34 christos Exp $");
+__RCSID("$NetBSD: print.c,v 1.5 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <stdio.h>
@@ -132,7 +132,7 @@
                        break;
                }
                break;
-               
+
        case STRING:
                st = tn->tn_strg;
                switch (st->st_tspec) {
diff -r 75428911fc17 -r 7bf6cf0cbb23 usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Mon Dec 28 12:47:39 2020 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Mon Dec 28 12:52:45 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tree.c,v 1.88 2020/06/02 21:10:07 christos Exp $       */
+/*     $NetBSD: tree.c,v 1.89 2020/12/28 12:52:45 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.88 2020/06/02 21:10:07 christos Exp $");
+__RCSID("$NetBSD: tree.c,v 1.89 2020/12/28 12:52:45 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -702,7 +702,7 @@
 
        if ((ltp = ln->tn_type) == NULL)
                LERROR("typeok()");
-               
+
        if ((lt = ltp->t_tspec) == PTR)
                lst = (lstp = ltp->t_subt)->t_tspec;
        if (mp->m_binary) {
@@ -1298,7 +1298,7 @@
        switch (op) {
        case INIT:
                /* initialisation type mismatch */
-               error(185, tyname(lbuf, sizeof(lbuf), ltp), 
+               error(185, tyname(lbuf, sizeof(lbuf), ltp),
                    tyname(rbuf, sizeof(rbuf), rtp));
                break;
        case RETURN:
@@ -3040,7 +3040,7 @@
        tspec_t t = tp->t_tspec;
        if (t != STRUCT && t != UNION)
                error(111, "offsetof");
-               
+
        // XXX: wrong size, no checking for sym fixme
        return getinode(st, tsize(tp) / CHAR_BIT);
 }
@@ -3959,7 +3959,7 @@
                if ((!isityp(t) && t != PTR) || (!isityp(ot) && ot != PTR))
                        return (-1);
 #ifdef notdef
-               /* 
+               /*
                 * consider:
                 *      struct foo {
                 *          unsigned char a;



Home | Main Index | Thread Index | Old Index