aboutsummaryrefslogtreecommitdiff
path: root/print.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-18 11:52:00 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-18 11:52:00 -0800
commit4acf91f802b8b69721d76f57c305d9ada864f30f (patch)
tree5c4627d141ae1a7a70a79361bbc9d6117d8af9f2 /print.h
parent4b3579c968a5f6c9239ee6235f03108d80e1a2e3 (diff)
More bools
Diffstat (limited to 'print.h')
-rw-r--r--print.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/print.h b/print.h
index 09a30f6..9a0439b 100644
--- a/print.h
+++ b/print.h
@@ -4,15 +4,17 @@
#ifndef PRINT__H
#define PRINT__H
+#include <stdbool.h>
+
#include "types.h"
typedef struct {
file_t *file;
const char *pos;
int context_lines;
- unsigned int needs_line_number:1;
- unsigned int use_color:1;
- unsigned int print_line_numbers:1;
+ bool needs_line_number:1;
+ bool use_color:1;
+ bool print_line_numbers:1;
} printer_t;
__attribute__((nonnull))