Module Name:    src
Committed By:   rillig
Date:           Mon May 15 09:00:51 UTC 2023

Modified Files:
        src/usr.bin/indent: debug.c

Log Message:
indent: document feature toggle for debugging output


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/indent/debug.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/indent/debug.c
diff -u src/usr.bin/indent/debug.c:1.6 src/usr.bin/indent/debug.c:1.7
--- src/usr.bin/indent/debug.c:1.6	Mon May 15 07:57:22 2023
+++ src/usr.bin/indent/debug.c	Mon May 15 09:00:51 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: debug.c,v 1.6 2023/05/15 07:57:22 rillig Exp $	*/
+/*	$NetBSD: debug.c,v 1.7 2023/05/15 09:00:51 rillig Exp $	*/
 
 /*-
  * Copyright (c) 2023 The NetBSD Foundation, Inc.
@@ -30,13 +30,20 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: debug.c,v 1.6 2023/05/15 07:57:22 rillig Exp $");
+__RCSID("$NetBSD: debug.c,v 1.7 2023/05/15 09:00:51 rillig Exp $");
 
 #include <stdarg.h>
 
 #include "indent.h"
 
 #ifdef debug
+
+/*
+ * false	show only the changes to the parser state
+ * true		show unchanged parts of the parser state as well
+ */
+static bool debug_full_parser_state = true;
+
 const char *const lsym_name[] = {
     "eof",
     "preprocessing",
@@ -105,8 +112,6 @@ static const char *in_enum_name[] = {
     "brace",
 };
 
-static bool debug_full_parser_state = true;
-
 void
 debug_printf(const char *fmt, ...)
 {

Reply via email to