mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-17 02:57:33 -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 @@ https://wiki.gnome.org/Projects/GTK%2B/OSX/Bundling has some links.
|
||||
|
||||
char *x_get_default(const char *key) { return NULL; }
|
||||
|
||||
const int buildinfo_gtk_relevant = TRUE;
|
||||
const int buildinfo_gtk_relevant = true;
|
||||
|
||||
#if !GTK_CHECK_VERSION(3,0,0)
|
||||
/* This front end only works in GTK 3. If that's not what we've got,
|
||||
@ -275,7 +275,7 @@ void window_setup_error(const char *errmsg)
|
||||
create_message_box(NULL, "Error creating session window", errmsg,
|
||||
string_width("Some sort of fiddly error message that "
|
||||
"might be technical"),
|
||||
TRUE, &buttons_ok, window_setup_error_callback, NULL);
|
||||
true, &buttons_ok, window_setup_error_callback, NULL);
|
||||
}
|
||||
|
||||
static void activate(GApplication *app,
|
||||
@ -319,7 +319,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(FALSE); /* FALSE means we are not a one-session process */
|
||||
setup(false); /* false means we are not a one-session process */
|
||||
}
|
||||
|
||||
if (argc > 1) {
|
||||
|
Reference in New Issue
Block a user