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: rename typeok_amper to typeok_address
details: https://anonhg.NetBSD.org/src/rev/db738ec9fd76
branches: trunk
changeset: 949828:db738ec9fd76
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jan 17 17:16:47 2021 +0000
description:
lint: rename typeok_amper to typeok_address
This is about the address-of operator, not about the '&' sign that is
also used for bitwise and.
diffstat:
usr.bin/xlint/lint1/tree.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 87781aa22c68 -r db738ec9fd76 usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c Sun Jan 17 17:14:34 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c Sun Jan 17 17:16:47 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tree.c,v 1.179 2021/01/17 17:14:34 rillig Exp $ */
+/* $NetBSD: tree.c,v 1.180 2021/01/17 17:16:47 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.179 2021/01/17 17:14:34 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.180 2021/01/17 17:16:47 rillig Exp $");
#endif
#include <float.h>
@@ -775,8 +775,8 @@
}
static bool
-typeok_amper(const mod_t *mp,
- const tnode_t *tn, const type_t *tp, tspec_t t)
+typeok_address(const mod_t *mp,
+ const tnode_t *tn, const type_t *tp, tspec_t t)
{
if (t == ARRAY || t == FUNC) {
/* ok, a warning comes later (in build_address()) */
@@ -1284,7 +1284,7 @@
return false;
break;
case ADDR:
- if (!typeok_amper(mp, ln, ltp, lt))
+ if (!typeok_address(mp, ln, ltp, lt))
return false;
break;
case INDIR:
Home |
Main Index |
Thread Index |
Old Index