mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 09:37:34 -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:
@ -554,7 +554,7 @@ GtkWidget *make_gtk_toplevel_window(GtkFrontend *frontend)
|
||||
return gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||
}
|
||||
|
||||
const int buildinfo_gtk_relevant = TRUE;
|
||||
const int buildinfo_gtk_relevant = true;
|
||||
|
||||
struct post_initial_config_box_ctx {
|
||||
Conf *conf;
|
||||
@ -594,7 +594,7 @@ int main(int argc, char **argv)
|
||||
/* Call the function in ux{putty,pterm}.c to do app-type
|
||||
* specific setup */
|
||||
extern void setup(int);
|
||||
setup(TRUE); /* TRUE means we are a one-session process */
|
||||
setup(true); /* true means we are a one-session process */
|
||||
}
|
||||
|
||||
progname = argv[0];
|
||||
@ -633,7 +633,7 @@ int main(int argc, char **argv)
|
||||
smemclr(argv[1], strlen(argv[1]));
|
||||
|
||||
assert(!dup_check_launchable || conf_launchable(conf));
|
||||
need_config_box = FALSE;
|
||||
need_config_box = false;
|
||||
} else {
|
||||
if (do_cmdline(argc, argv, 0, conf))
|
||||
exit(1); /* pre-defaults pass to get -class */
|
||||
@ -646,7 +646,7 @@ int main(int argc, char **argv)
|
||||
if (cmdline_tooltype & TOOLTYPE_HOST_ARG)
|
||||
need_config_box = !cmdline_host_ok(conf);
|
||||
else
|
||||
need_config_box = FALSE;
|
||||
need_config_box = false;
|
||||
}
|
||||
|
||||
if (need_config_box) {
|
||||
|
Reference in New Issue
Block a user