aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-28 23:10:42 +0400
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-09-28 23:10:42 +0400
commit024d26ac0cd869826801889f1299df34676fdf57 (patch)
tree408cd593e9f0375225b56594063bb061b72f9e27 /src
parent41ceabc9a4d285c641b82ad3a571fed461c4ad9a (diff)
downloadsciteco-024d26ac0cd869826801889f1299df34676fdf57.tar.gz
replaced bool completely with gboolean
Diffstat (limited to 'src')
-rw-r--r--src/parser.h14
-rw-r--r--src/qreg.c3
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;
};
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 <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;
};