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: make function names a bit more con...



details:   https://anonhg.NetBSD.org/src/rev/413c96ed0aaf
branches:  trunk
changeset: 1029103:413c96ed0aaf
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Dec 21 16:50:11 2021 +0000

description:
lint: make function names a bit more concise

No binary change.

diffstat:

 tests/usr.bin/xlint/lint1/d_c99_init.c |   4 ++--
 usr.bin/xlint/lint1/init.c             |  24 ++++++++++++------------
 2 files changed, 14 insertions(+), 14 deletions(-)

diffs (121 lines):

diff -r 89881d931939 -r 413c96ed0aaf tests/usr.bin/xlint/lint1/d_c99_init.c
--- a/tests/usr.bin/xlint/lint1/d_c99_init.c    Tue Dec 21 16:25:14 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/d_c99_init.c    Tue Dec 21 16:50:11 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: d_c99_init.c,v 1.34 2021/12/17 15:52:30 rillig Exp $   */
+/*     $NetBSD: d_c99_init.c,v 1.35 2021/12/21 16:50:11 rillig Exp $   */
 # 3 "d_c99_init.c"
 
 /*
@@ -33,7 +33,7 @@
 }
 
 
-// See init_expr, initialization_init_array_using_string.
+// See initialization_expr, initialization_init_array_from_string.
 char static_duration[] = "static duration";
 signed char static_duration_signed[] = "static duration";
 unsigned char static_duration_unsigned[] = "static duration";
diff -r 89881d931939 -r 413c96ed0aaf usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c        Tue Dec 21 16:25:14 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c        Tue Dec 21 16:50:11 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.224 2021/12/21 15:15:45 rillig Exp $        */
+/*     $NetBSD: init.c,v 1.225 2021/12/21 16:50:11 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.224 2021/12/21 15:15:45 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.225 2021/12/21 16:50:11 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -395,7 +395,7 @@
 
 
 static const type_t *
-designator_look_up(const designator *dr, const type_t *tp)
+designator_type(const designator *dr, const type_t *tp)
 {
        switch (tp->t_tspec) {
        case STRUCT:
@@ -474,12 +474,12 @@
  * C99 6.7.8p18
  */
 static const type_t *
-designation_look_up(const designation *dn, const type_t *tp)
+designation_type(const designation *dn, const type_t *tp)
 {
        size_t i;
 
        for (i = 0; i < dn->dn_len && tp != NULL; i++)
-               tp = designator_look_up(dn->dn_items + i, tp);
+               tp = designator_type(dn->dn_items + i, tp);
        return tp;
 }
 
@@ -547,7 +547,7 @@
 {
 
        if (bl->bl_designation.dn_len > 0)
-               return designation_look_up(&bl->bl_designation, bl->bl_type);
+               return designation_type(&bl->bl_designation, bl->bl_type);
 
        switch (bl->bl_type->t_tspec) {
        case STRUCT:
@@ -708,7 +708,7 @@
 }
 
 static void
-initialization_begin_brace_level(initialization *in)
+initialization_lbrace(initialization *in)
 {
        const type_t *tp;
 
@@ -766,7 +766,7 @@
 }
 
 static void
-initialization_end_brace_level(initialization *in)
+initialization_rbrace(initialization *in)
 {
        brace_level *inner_bl, *outer_bl;
 
@@ -832,7 +832,7 @@
 
 /* Initialize a character array or wchar_t array with a string literal. */
 static bool
-initialization_init_array_using_string(initialization *in, tnode_t *tn)
+initialization_init_array_from_string(initialization *in, tnode_t *tn)
 {
        brace_level *bl;
        const type_t *tp;
@@ -898,7 +898,7 @@
                goto advance;
        if (initialization_expr_using_op(in, tn))
                goto done;
-       if (initialization_init_array_using_string(in, tn))
+       if (initialization_init_array_from_string(in, tn))
                goto advance;
        if (in->in_err)
                goto done;
@@ -1015,7 +1015,7 @@
 init_lbrace(void)
 {
 
-       initialization_begin_brace_level(current_init());
+       initialization_lbrace(current_init());
 }
 
 void
@@ -1029,5 +1029,5 @@
 init_rbrace(void)
 {
 
-       initialization_end_brace_level(current_init());
+       initialization_rbrace(current_init());
 }



Home | Main Index | Thread Index | Old Index