diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-28 23:10:42 +0400 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-09-28 23:10:42 +0400 |
commit | 024d26ac0cd869826801889f1299df34676fdf57 (patch) | |
tree | 408cd593e9f0375225b56594063bb061b72f9e27 | |
parent | 41ceabc9a4d285c641b82ad3a571fed461c4ad9a (diff) | |
download | sciteco-024d26ac0cd869826801889f1299df34676fdf57.tar.gz |
replaced bool completely with gboolean
-rw-r--r-- | src/parser.h | 14 | ||||
-rw-r--r-- | src/qreg.c | 3 |
2 files changed, 7 insertions, 10 deletions
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 <stdbool.h> - #include <glib.h> #include <Scintilla.h> @@ -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; }; @@ -18,7 +18,6 @@ #include "config.h" #endif -#include <stdbool.h> #include <string.h> #include <glib.h> @@ -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; }; |