Module Name:    src
Committed By:   rillig
Date:           Mon Feb 22 15:01:03 UTC 2021

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

Log Message:
lint: improve debug message and comment


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/usr.bin/xlint/lint1/init.c
cvs rdiff -u -r1.216 -r1.217 src/usr.bin/xlint/lint1/tree.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.87 src/usr.bin/xlint/lint1/init.c:1.88
--- src/usr.bin/xlint/lint1/init.c:1.87	Sun Feb 21 15:02:16 2021
+++ src/usr.bin/xlint/lint1/init.c	Mon Feb 22 15:01:03 2021
@@ -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 @@ initstack_push(void)
 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) {

Index: src/usr.bin/xlint/lint1/tree.c
diff -u src/usr.bin/xlint/lint1/tree.c:1.216 src/usr.bin/xlint/lint1/tree.c:1.217
--- src/usr.bin/xlint/lint1/tree.c:1.216	Sun Feb 21 15:02:16 2021
+++ src/usr.bin/xlint/lint1/tree.c	Mon Feb 22 15:01:03 2021
@@ -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 @@ is_constcond_false(const tnode_t *tn, ts
  * 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)

Reply via email to