Module Name: src Committed By: rillig Date: Wed Dec 15 00:44:05 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: externs1.h tree.c Log Message: lint: unexport struct_or_union_member Strangely, lint2 didn't notice this unnecessary export. To generate a diff of this commit: cvs rdiff -u -r1.140 -r1.141 src/usr.bin/xlint/lint1/externs1.h cvs rdiff -u -r1.397 -r1.398 src/usr.bin/xlint/lint1/tree.c 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/externs1.h diff -u src/usr.bin/xlint/lint1/externs1.h:1.140 src/usr.bin/xlint/lint1/externs1.h:1.141 --- src/usr.bin/xlint/lint1/externs1.h:1.140 Tue Nov 16 21:01:05 2021 +++ src/usr.bin/xlint/lint1/externs1.h Wed Dec 15 00:44:05 2021 @@ -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 bool is_compiler_builtin(const ch 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 *); Index: src/usr.bin/xlint/lint1/tree.c diff -u src/usr.bin/xlint/lint1/tree.c:1.397 src/usr.bin/xlint/lint1/tree.c:1.398 --- src/usr.bin/xlint/lint1/tree.c:1.397 Mon Dec 6 23:26:28 2021 +++ src/usr.bin/xlint/lint1/tree.c Wed Dec 15 00:44:05 2021 @@ -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 @@ build_string(strg_t *strg) * 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;