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: clean up debug logging for initial...
details: https://anonhg.NetBSD.org/src/rev/69e74e2446ba
branches: trunk
changeset: 960747:69e74e2446ba
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Mar 28 09:43:28 2021 +0000
description:
lint: clean up debug logging for initialization
No functional change.
diffstat:
usr.bin/xlint/lint1/init.c | 25 +++++++------------------
1 files changed, 7 insertions(+), 18 deletions(-)
diffs (58 lines):
diff -r 785082b182de -r 69e74e2446ba usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c Sun Mar 28 09:39:04 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c Sun Mar 28 09:43:28 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.150 2021/03/28 09:39:04 rillig Exp $ */
+/* $NetBSD: init.c,v 1.151 2021/03/28 09:43:28 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.150 2021/03/28 09:39:04 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.151 2021/03/28 09:43:28 rillig Exp $");
#endif
#include <stdlib.h>
@@ -307,13 +307,16 @@
printf("%*s- %s\n", 2 * --debug_ind, "", func);
}
+#define debug_enter() (debug_enter)(__func__)
+#define debug_leave() (debug_leave)(__func__)
+
#else
#define debug_printf(fmt, ...) do { } while (false)
#define debug_indent() do { } while (false)
-#define debug_enter(function) do { } while (false)
+#define debug_enter() do { } while (false)
#define debug_step(fmt, ...) do { } while (false)
-#define debug_leave(function) do { } while (false)
+#define debug_leave() do { } while (false)
#endif
@@ -565,20 +568,6 @@
#define initsym (*current_initsym())
-#ifndef DEBUG
-
-#define debug_designation() do { } while (false)
-#define debug_brace_level(level) do { } while (false)
-#define debug_initstack() do { } while (false)
-
-#else
-
-
-#define debug_enter() debug_enter(__func__)
-#define debug_leave() debug_leave(__func__)
-
-#endif
-
void
begin_initialization(sym_t *sym)
Home |
Main Index |
Thread Index |
Old Index