bcc: remove usage of bool

Wed, 24 Feb 2021 14:23:05 +0100

author
David Demelier <markand@malikania.fr>
date
Wed, 24 Feb 2021 14:23:05 +0100
changeset 7
43056d03d89a
parent 6
2faca001afb6
child 8
036573d2f94a

bcc: remove usage of bool

.hgtags file | annotate | diff | comparison | revisions
bcc.c file | annotate | diff | comparison | revisions
--- a/.hgtags	Tue Dec 15 17:37:37 2020 +0100
+++ b/.hgtags	Wed Feb 24 14:23:05 2021 +0100
@@ -1,1 +1,2 @@
 e5fc6565dce08accf537d517d7e062f6cf1f57bb 1.0.0
+2faca001afb69ed680bf8d97ce5720d48f7f4024 s
--- a/bcc.c	Tue Dec 15 17:37:37 2020 +0100
+++ b/bcc.c	Wed Feb 24 14:23:05 2021 +0100
@@ -18,7 +18,6 @@
 
 #include <errno.h>
 #include <stdarg.h>
-#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdnoreturn.h>
@@ -27,10 +26,7 @@
 
 static const char *charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
 static char findentchar = '\t';
-static int findent = 1;
-static bool fconst;
-static bool fnull;
-static bool fstatic;
+static int findent = 1, fconst, fnull, fstatic;
 
 noreturn static void
 usage(void)
@@ -137,10 +133,10 @@
 	while ((ch = getopt(argc, argv, "0cI:i:s")) != -1) {
 		switch (ch) {
 		case '0':
-			fnull = true;
+			fnull = 1;
 			break;
 		case 'c':
-			fconst = true;
+			fconst = 1;
 			break;
 		case 'I':
 			findentchar = '\t';
@@ -151,7 +147,7 @@
 			findent = atoi(optarg);
 			break;
 		case 's':
-			fstatic = true;
+			fstatic = 1;
 			break;
 		default:
 			break;

mercurial