refactor: use bool to represent boolean values

This commit is contained in:
dundargoc
2023-12-16 22:14:28 +01:00
committed by dundargoc
parent 693aea0e9e
commit 7f6b775b45
49 changed files with 175 additions and 186 deletions

View File

@@ -91,7 +91,7 @@ static int typeahead_char = 0; ///< typeahead char that's not flushed
/// When block_redo is true the redo buffer will not be changed.
/// Used by edit() to repeat insertions.
static int block_redo = false;
static bool block_redo = false;
static int KeyNoremap = 0; ///< remapping flags
@@ -375,16 +375,16 @@ static void start_stuff(void)
}
}
/// Return true if the stuff buffer is empty.
int stuff_empty(void)
/// @return true if the stuff buffer is empty.
bool stuff_empty(void)
FUNC_ATTR_PURE
{
return (readbuf1.bh_first.b_next == NULL && readbuf2.bh_first.b_next == NULL);
}
/// Return true if readbuf1 is empty. There may still be redo characters in
/// redbuf2.
int readbuf1_empty(void)
/// @return true if readbuf1 is empty. There may still be redo characters in
/// redbuf2.
bool readbuf1_empty(void)
FUNC_ATTR_PURE
{
return (readbuf1.bh_first.b_next == NULL);