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: unexport struct_or_union_member



details:   https://anonhg.NetBSD.org/src/rev/7b88e31d05fe
branches:  trunk
changeset: 1027665:7b88e31d05fe
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Dec 15 00:44:05 2021 +0000

description:
lint: unexport struct_or_union_member

Strangely, lint2 didn't notice this unnecessary export.

diffstat:

 usr.bin/xlint/lint1/externs1.h |  3 +--
 usr.bin/xlint/lint1/tree.c     |  6 +++---
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 57d4b394571e -r 7b88e31d05fe usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h    Tue Dec 14 23:57:48 2021 +0000
+++ b/usr.bin/xlint/lint1/externs1.h    Wed Dec 15 00:44:05 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: externs1.h,v 1.140 2021/11/16 21:01:05 rillig Exp $    */
+/*     $NetBSD: externs1.h,v 1.141 2021/12/15 00:44:05 rillig Exp $    */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -237,7 +237,6 @@
 extern tnode_t *build_constant(type_t *, val_t *);
 extern tnode_t *build_name(sym_t *, int);
 extern tnode_t *build_string(strg_t *);
-extern sym_t   *struct_or_union_member(tnode_t *, op_t, sym_t *);
 extern tnode_t *build_generic_selection(const tnode_t *,
                    struct generic_association *);
 
diff -r 57d4b394571e -r 7b88e31d05fe usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Tue Dec 14 23:57:48 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Wed Dec 15 00:44:05 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tree.c,v 1.397 2021/12/06 23:26:28 rillig Exp $        */
+/*     $NetBSD: tree.c,v 1.398 2021/12/15 00:44:05 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.397 2021/12/06 23:26:28 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.398 2021/12/15 00:44:05 rillig Exp $");
 #endif
 
 #include <float.h>
@@ -350,7 +350,7 @@
  * Returns a symbol which has the same name as the msym argument and is a
  * member of the struct or union specified by the tn argument.
  */
-sym_t *
+static sym_t *
 struct_or_union_member(tnode_t *tn, op_t op, sym_t *msym)
 {
        struct_or_union *str;



Home | Main Index | Thread Index | Old Index