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: improve debug message and comment



details:   https://anonhg.NetBSD.org/src/rev/b9add5808587
branches:  trunk
changeset: 952967:b9add5808587
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Feb 22 15:01:03 2021 +0000

description:
lint: improve debug message and comment

diffstat:

 usr.bin/xlint/lint1/init.c |  6 +++---
 usr.bin/xlint/lint1/tree.c |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 1517ec428ed9 -r b9add5808587 usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c        Mon Feb 22 11:38:13 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c        Mon Feb 22 15:01:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.87 2021/02/21 15:02:16 rillig Exp $ */
+/*     $NetBSD: init.c,v 1.88 2021/02/22 15:01:03 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.87 2021/02/21 15:02:16 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.88 2021/02/22 15:01:03 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -491,7 +491,7 @@
 again:
        istk = initstk;
 
-       debug_step("typename %s", type_name(istk->i_type));
+       debug_step("expecting type '%s'", type_name(istk->i_type));
        switch (istk->i_type->t_tspec) {
        case ARRAY:
                if (namedmem != NULL) {
diff -r 1517ec428ed9 -r b9add5808587 usr.bin/xlint/lint1/tree.c
--- a/usr.bin/xlint/lint1/tree.c        Mon Feb 22 11:38:13 2021 +0000
+++ b/usr.bin/xlint/lint1/tree.c        Mon Feb 22 15:01:03 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tree.c,v 1.216 2021/02/21 15:02:16 rillig Exp $        */
+/*     $NetBSD: tree.c,v 1.217 2021/02/22 15:01:03 rillig Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: tree.c,v 1.216 2021/02/21 15:02:16 rillig Exp $");
+__RCSID("$NetBSD: tree.c,v 1.217 2021/02/22 15:01:03 rillig Exp $");
 #endif
 
 #include <float.h>
@@ -3732,8 +3732,8 @@
  * functions called by build(). These tests must be done here because
  * we need some information about the context in which the operations
  * are performed.
- * After all tests are performed, expr() frees the memory which is used
- * for the expression.
+ * After all tests are performed and dofreeblk is true, expr() frees the
+ * memory which is used for the expression.
  */
 void
 expr(tnode_t *tn, bool vctx, bool tctx, bool dofreeblk, bool constcond_zero_ok)



Home | Main Index | Thread Index | Old Index