Module Name:    src
Committed By:   rillig
Date:           Fri Dec 17 01:24:01 UTC 2021

Modified Files:
        src/usr.bin/xlint/lint1: init.c

Log Message:
lint: rename is_string_array to is_character_array

The old name was too confusing.

No functional change.


To generate a diff of this commit:
cvs rdiff -u -r1.211 -r1.212 src/usr.bin/xlint/lint1/init.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/init.c
diff -u src/usr.bin/xlint/lint1/init.c:1.211 src/usr.bin/xlint/lint1/init.c:1.212
--- src/usr.bin/xlint/lint1/init.c:1.211	Thu Dec 16 23:46:21 2021
+++ src/usr.bin/xlint/lint1/init.c	Fri Dec 17 01:24:00 2021
@@ -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 @@ has_automatic_storage_duration(const sym
 
 /* 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 @@ initialization_init_array_using_string(s
 	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;

Reply via email to