refactor: replace TRUE/FALSE with true/false

This commit is contained in:
Dundar Göc
2021-08-03 11:04:43 +02:00
parent 7d2233fad0
commit c0767bd4f3
7 changed files with 185 additions and 195 deletions

View File

@@ -1297,8 +1297,8 @@ void u_write_undo(const char *const name, const bool forceit, buf_T *const buf,
goto theend;
}
/* Undo must be synced. */
u_sync(TRUE);
// Undo must be synced.
u_sync(true);
/*
* Write the header.
@@ -1783,7 +1783,7 @@ void u_undo(int count)
* be compatible.
*/
if (curbuf->b_u_synced == false) {
u_sync(TRUE);
u_sync(true);
count = 1;
}
@@ -1943,9 +1943,10 @@ void undo_time(long step, bool sec, bool file, bool absolute)
bool above = false;
bool did_undo = true;
/* First make sure the current undoable change is synced. */
if (curbuf->b_u_synced == false)
u_sync(TRUE);
// First make sure the current undoable change is synced.
if (curbuf->b_u_synced == false) {
u_sync(true);
}
u_newcount = 0;
u_oldcount = 0;
@@ -2601,13 +2602,10 @@ static void u_undo_end(
msgbuf);
}
/*
* u_sync: stop adding to the current entry list
*/
void
u_sync(
int force // Also sync when no_u_sync is set.
)
/// u_sync: stop adding to the current entry list
///
/// @param force if true, also sync when no_u_sync is set.
void u_sync(bool force)
{
// Skip it when already synced or syncing is disabled.
if (curbuf->b_u_synced || (!force && no_u_sync > 0)) {