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 is_string_array to is_chara...



details:   https://anonhg.NetBSD.org/src/rev/95947e92d86d
branches:  trunk
changeset: 1027713:95947e92d86d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Dec 17 01:24:00 2021 +0000

description:
lint: rename is_string_array to is_character_array

The old name was too confusing.

No functional change.

diffstat:

 usr.bin/xlint/lint1/init.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 1a87350bef0e -r 95947e92d86d usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c        Fri Dec 17 01:00:50 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c        Fri Dec 17 01:24:00 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.211 2021/12/16 23:46:21 rillig Exp $        */
+/*     $NetBSD: init.c,v 1.212 2021/12/17 01:24:00 rillig Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.211 2021/12/16 23:46:21 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.212 2021/12/17 01:24:00 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -190,7 +190,7 @@
 
 /* C99 6.7.8p14, 6.7.8p15 */
 static bool
-is_string_array(const type_t *tp, tspec_t t)
+is_character_array(const type_t *tp, tspec_t t)
 {
        tspec_t st;
 
@@ -853,7 +853,7 @@
        tp = initialization_sub_type(in, true);
        strg = tn->tn_string;
 
-       if (!is_string_array(tp, strg->st_tspec))
+       if (!is_character_array(tp, strg->st_tspec))
                return false;
        if (bl != NULL && tp->t_tspec != ARRAY && bl->bl_subscript != 0)
                return false;



Home | Main Index | Thread Index | Old Index