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 mkinit to init_using_expr



details:   https://anonhg.NetBSD.org/src/rev/adc7f1c9f26e
branches:  trunk
changeset: 952880:adc7f1c9f26e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Feb 20 16:03:56 2021 +0000

description:
lint: rename mkinit to init_using_expr

No functional change outside debug mode.

diffstat:

 usr.bin/xlint/lint1/cgram.y    |  6 +++---
 usr.bin/xlint/lint1/externs1.h |  5 ++---
 usr.bin/xlint/lint1/init.c     |  6 +++---
 3 files changed, 8 insertions(+), 9 deletions(-)

diffs (78 lines):

diff -r 93b4b30532be -r adc7f1c9f26e usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Sat Feb 20 15:23:07 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Sat Feb 20 16:03:56 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.162 2021/02/19 22:35:42 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.163 2021/02/20 16:03:56 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.162 2021/02/19 22:35:42 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.163 2021/02/20 16:03:56 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -1333,7 +1333,7 @@
 
 init_base_expr:
          expr                          %prec T_COMMA {
-               mkinit($1);
+               init_using_expr($1);
          }
        | init_lbrace init_rbrace
        | init_lbrace init_expr_list init_rbrace
diff -r 93b4b30532be -r adc7f1c9f26e usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h    Sat Feb 20 15:23:07 2021 +0000
+++ b/usr.bin/xlint/lint1/externs1.h    Sat Feb 20 16:03:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: externs1.h,v 1.66 2021/02/19 12:28:56 rillig Exp $     */
+/*     $NetBSD: externs1.h,v 1.67 2021/02/20 16:03:56 rillig Exp $     */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -287,12 +287,11 @@
  */
 extern bool    initerr;
 extern sym_t   *initsym;
-extern int     startinit;
 
 extern void    initstack_init(void);
 extern void    init_rbrace(void);
 extern void    init_lbrace(void);
-extern void    mkinit(tnode_t *);
+extern void    init_using_expr(tnode_t *);
 extern void    push_member(sbuf_t *);
 
 /*
diff -r 93b4b30532be -r adc7f1c9f26e usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c        Sat Feb 20 15:23:07 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c        Sat Feb 20 16:03:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.68 2021/02/20 15:23:07 rillig Exp $ */
+/*     $NetBSD: init.c,v 1.69 2021/02/20 16:03:56 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.68 2021/02/20 15:23:07 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.69 2021/02/20 16:03:56 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -616,7 +616,7 @@
 }
 
 void
-mkinit(tnode_t *tn)
+init_using_expr(tnode_t *tn)
 {
        ptrdiff_t offs;
        sym_t   *sym;



Home | Main Index | Thread Index | Old Index