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 c_rchif to c_reached_end_of...



details:   https://anonhg.NetBSD.org/src/rev/9c114ce96828
branches:  trunk
changeset: 1019836:9c114ce96828
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Mar 21 13:03:42 2021 +0000

description:
lint: rename c_rchif to c_reached_end_of_then

No functional change.

diffstat:

 usr.bin/xlint/lint1/func.c  |  10 +++++-----
 usr.bin/xlint/lint1/lint1.h |   4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r b3d6df001a87 -r 9c114ce96828 usr.bin/xlint/lint1/func.c
--- a/usr.bin/xlint/lint1/func.c        Sun Mar 21 12:19:36 2021 +0000
+++ b/usr.bin/xlint/lint1/func.c        Sun Mar 21 13:03:42 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: func.c,v 1.86 2021/03/21 12:10:27 rillig Exp $ */
+/*     $NetBSD: func.c,v 1.87 2021/03/21 13:03:42 rillig Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: func.c,v 1.86 2021/03/21 12:10:27 rillig Exp $");
+__RCSID("$NetBSD: func.c,v 1.87 2021/03/21 13:03:42 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -615,8 +615,8 @@
 if2(void)
 {
 
-       cstmt->c_rchif = reached;
-       reached = true;
+       cstmt->c_reached_end_of_then = reached;
+       reached = true;         /* XXX: sure? */
 }
 
 /*
@@ -628,7 +628,7 @@
 {
 
        if (els) {
-               reached |= cstmt->c_rchif;
+               reached |= cstmt->c_reached_end_of_then;
        } else {
                reached = true;
        }
diff -r b3d6df001a87 -r 9c114ce96828 usr.bin/xlint/lint1/lint1.h
--- a/usr.bin/xlint/lint1/lint1.h       Sun Mar 21 12:19:36 2021 +0000
+++ b/usr.bin/xlint/lint1/lint1.h       Sun Mar 21 13:03:42 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lint1.h,v 1.84 2021/03/21 12:08:34 rillig Exp $ */
+/* $NetBSD: lint1.h,v 1.85 2021/03/21 13:03:42 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -393,7 +393,7 @@
                                         * always true (as in 'for (;;)' or
                                         * 'while (1)'), there may be break
                                         * statements though */
-       bool    c_rchif : 1;            /* end of if-branch reached */
+       bool    c_reached_end_of_then : 1;
        bool    c_had_return_noval : 1; /* had "return;" */
        bool    c_had_return_value : 1; /* had "return (e);" */
        type_t  *c_swtype;              /* type of switch expression */



Home | Main Index | Thread Index | Old Index