From 024d26ac0cd869826801889f1299df34676fdf57 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 28 Sep 2024 23:10:42 +0400 Subject: replaced bool completely with gboolean --- src/parser.h | 14 ++++++-------- src/qreg.c | 3 +-- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/parser.h b/src/parser.h index 7cc286e..3bf9050 100644 --- a/src/parser.h +++ b/src/parser.h @@ -16,8 +16,6 @@ */ #pragma once -#include - #include #include @@ -48,7 +46,7 @@ typedef struct { * a signed integer, it's ok steal one * bit for the pass_through flag. */ - bool pass_through : 1; + gboolean pass_through : 1; } teco_loop_context_t; extern GArray *teco_loop_stack; @@ -73,8 +71,8 @@ void undo__remove_index__teco_loop_stack(guint); * FIXME: Maybe use TECO_DECLARE_VTABLE_METHOD()? */ typedef const struct { - bool string_building : 1; - bool last : 1; + gboolean string_building : 1; + gboolean last : 1; /** * Called repeatedly to process chunks of input and give interactive feedback. @@ -188,7 +186,7 @@ struct teco_state_t { * This is separate of TECO_KEYMACRO_MASK_START which is set * only in the main machine's start states. */ - bool is_start : 1; + gboolean is_start : 1; /** * Key macro mask. * This is not a bitmask since it is compared with values set @@ -444,8 +442,8 @@ struct teco_machine_main_t { struct { teco_mode_t mode : 8; - bool modifier_colon : 1; - bool modifier_at : 1; + gboolean modifier_colon : 1; + gboolean modifier_at : 1; }; guint __flags; }; diff --git a/src/qreg.c b/src/qreg.c index c337dbe..58c0966 100644 --- a/src/qreg.c +++ b/src/qreg.c @@ -18,7 +18,6 @@ #include "config.h" #endif -#include #include #include @@ -1269,7 +1268,7 @@ struct teco_machine_qregspec_t { union { struct { teco_qreg_type_t type : 8; - bool parse_only : 1; + gboolean parse_only : 1; }; guint __flags; }; -- cgit v1.2.3