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: in debug mode, use different names...



details:   https://anonhg.NetBSD.org/src/rev/42526e58b63b
branches:  trunk
changeset: 374231:42526e58b63b
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Apr 11 17:52:11 2023 +0000

description:
lint: in debug mode, use different names for macro and function

No functional change.

diffstat:

 usr.bin/xlint/lint1/debug.c    |   8 ++++----
 usr.bin/xlint/lint1/externs1.h |  10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (61 lines):

diff -r 221d8ae940c9 -r 42526e58b63b usr.bin/xlint/lint1/debug.c
--- a/usr.bin/xlint/lint1/debug.c       Tue Apr 11 14:50:47 2023 +0000
+++ b/usr.bin/xlint/lint1/debug.c       Tue Apr 11 17:52:11 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: debug.c,v 1.27 2023/04/10 23:56:30 rillig Exp $ */
+/* $NetBSD: debug.c,v 1.28 2023/04/11 17:52:11 rillig Exp $ */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID)
-__RCSID("$NetBSD: debug.c,v 1.27 2023/04/10 23:56:30 rillig Exp $");
+__RCSID("$NetBSD: debug.c,v 1.28 2023/04/11 17:52:11 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -81,7 +81,7 @@ debug_indent_dec(void)
 }
 
 void
-(debug_enter)(const char *func)
+debug_enter_func(const char *func)
 {
 
        printf("%*s+ %s\n", 2 * debug_indentation++, "", func);
@@ -100,7 +100,7 @@ debug_step(const char *fmt, ...)
 }
 
 void
-(debug_leave)(const char *func)
+debug_leave_func(const char *func)
 {
 
        printf("%*s- %s\n", 2 * --debug_indentation, "", func);
diff -r 221d8ae940c9 -r 42526e58b63b usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h    Tue Apr 11 14:50:47 2023 +0000
+++ b/usr.bin/xlint/lint1/externs1.h    Tue Apr 11 17:52:11 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: externs1.h,v 1.175 2023/03/28 14:44:35 rillig Exp $    */
+/*     $NetBSD: externs1.h,v 1.176 2023/04/11 17:52:11 rillig Exp $    */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -131,11 +131,11 @@ void      debug_printf(const char *fmt, ...) 
 void   debug_print_indent(void);
 void   debug_indent_inc(void);
 void   debug_indent_dec(void);
-void   debug_enter(const char *);
+void   debug_enter_func(const char *);
 void   debug_step(const char *fmt, ...) __printflike(1, 2);
-void   debug_leave(const char *);
-#define        debug_enter()           (debug_enter)(__func__)
-#define        debug_leave()           (debug_leave)(__func__)
+void   debug_leave_func(const char *);
+#define        debug_enter()           debug_enter_func(__func__)
+#define        debug_leave()           debug_leave_func(__func__)
 #else
 #define        debug_noop()            do { } while (false)
 #define        debug_dinfo(d)          debug_noop()



Home | Main Index | Thread Index | Old Index