Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/indent indent: use standard definition for bool, tru...



details:   https://anonhg.NetBSD.org/src/rev/166553c9fff4
branches:  trunk
changeset: 1023748:166553c9fff4
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Sep 25 14:38:31 2021 +0000

description:
indent: use standard definition for bool, true, false

diffstat:

 usr.bin/indent/indent.h       |  4 +++-
 usr.bin/indent/indent_globs.h |  5 +----
 2 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 82904ddbfa5a -r 166553c9fff4 usr.bin/indent/indent.h
--- a/usr.bin/indent/indent.h   Sat Sep 25 14:26:05 2021 +0000
+++ b/usr.bin/indent/indent.h   Sat Sep 25 14:38:31 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: indent.h,v 1.19 2021/09/25 14:16:06 rillig Exp $       */
+/*     $NetBSD: indent.h,v 1.20 2021/09/25 14:38:31 rillig Exp $       */
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
@@ -32,6 +32,8 @@
 __FBSDID("$FreeBSD: head/usr.bin/indent/indent.h 336333 2018-07-16 05:46:50Z pstef $");
 #endif
 
+#include <stdbool.h>
+
 #include "indent_codes.h"
 #include "indent_globs.h"
 
diff -r 82904ddbfa5a -r 166553c9fff4 usr.bin/indent/indent_globs.h
--- a/usr.bin/indent/indent_globs.h     Sat Sep 25 14:26:05 2021 +0000
+++ b/usr.bin/indent/indent_globs.h     Sat Sep 25 14:38:31 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: indent_globs.h,v 1.27 2021/09/25 10:41:03 rillig Exp $ */
+/*     $NetBSD: indent_globs.h,v 1.28 2021/09/25 14:38:31 rillig Exp $ */
 
 /*-
  * SPDX-License-Identifier: BSD-4-Clause
@@ -46,9 +46,6 @@
                                 * of code */
 
 
-#define false 0
-#define true  1
-
 struct buffer {
     char *buf;                 /* buffer */
     char *s;                   /* start */



Home | Main Index | Thread Index | Old Index