Module Name:    src
Committed By:   rillig
Date:           Sat Sep 25 14:38:31 UTC 2021

Modified Files:
        src/usr.bin/indent: indent.h indent_globs.h

Log Message:
indent: use standard definition for bool, true, false


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.bin/indent/indent.h
cvs rdiff -u -r1.27 -r1.28 src/usr.bin/indent/indent_globs.h

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/indent.h
diff -u src/usr.bin/indent/indent.h:1.19 src/usr.bin/indent/indent.h:1.20
--- src/usr.bin/indent/indent.h:1.19	Sat Sep 25 14:16:06 2021
+++ src/usr.bin/indent/indent.h	Sat Sep 25 14:38:31 2021
@@ -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"
 

Index: src/usr.bin/indent/indent_globs.h
diff -u src/usr.bin/indent/indent_globs.h:1.27 src/usr.bin/indent/indent_globs.h:1.28
--- src/usr.bin/indent/indent_globs.h:1.27	Sat Sep 25 10:41:03 2021
+++ src/usr.bin/indent/indent_globs.h	Sat Sep 25 14:38:31 2021
@@ -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 */

Reply via email to