mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 01:57:40 -05:00
Adopt C99 <stdbool.h>'s true/false.
This commit includes <stdbool.h> from defs.h and deletes my traditional definitions of TRUE and FALSE, but other than that, it's a 100% mechanical search-and-replace transforming all uses of TRUE and FALSE into the C99-standardised lowercase spellings. No actual types are changed in this commit; that will come next. This is just getting the noise out of the way, so that subsequent commits can have a higher proportion of signal.
This commit is contained in:
@ -88,7 +88,7 @@ gboolean fd_input_func(GIOChannel *source, GIOCondition condition,
|
||||
if (condition & G_IO_OUT)
|
||||
select_result(sourcefd, 2);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
void fd_input_func(gpointer data, gint sourcefd, GdkInputCondition condition)
|
||||
@ -173,11 +173,11 @@ static gint timer_trigger(gpointer data)
|
||||
}
|
||||
|
||||
/*
|
||||
* Returning FALSE means 'don't call this timer again', which
|
||||
* Returning false means 'don't call this timer again', which
|
||||
* _should_ be redundant given that we removed it above, but just
|
||||
* in case, return FALSE anyway.
|
||||
* in case, return false anyway.
|
||||
*/
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
void timer_change_notify(unsigned long next)
|
||||
@ -215,10 +215,10 @@ static gint idle_toplevel_callback_func(gpointer data)
|
||||
*/
|
||||
if (!toplevel_callback_pending() && idle_fn_scheduled) {
|
||||
g_source_remove(toplevel_callback_idle_id);
|
||||
idle_fn_scheduled = FALSE;
|
||||
idle_fn_scheduled = false;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
static void notify_toplevel_callback(void *vctx)
|
||||
@ -226,7 +226,7 @@ static void notify_toplevel_callback(void *vctx)
|
||||
if (!idle_fn_scheduled) {
|
||||
toplevel_callback_idle_id =
|
||||
g_idle_add(idle_toplevel_callback_func, NULL);
|
||||
idle_fn_scheduled = TRUE;
|
||||
idle_fn_scheduled = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user