diff options
| author | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:45:44 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2018-11-13 21:48:24 +0000 |
| commit | 5f5b284c0bddbe67de14b2d2bfb596bc7ba1298a (patch) | |
| tree | f96b55a27088ae71d74dc83d7cc3731c5d5bf6dc /nestedvm.c | |
| parent | a550ea0a47374705a37f36b0f05ffe9e4c8161fb (diff) | |
| download | puzzles-5f5b284c0bddbe67de14b2d2bfb596bc7ba1298a.zip puzzles-5f5b284c0bddbe67de14b2d2bfb596bc7ba1298a.tar.gz puzzles-5f5b284c0bddbe67de14b2d2bfb596bc7ba1298a.tar.bz2 puzzles-5f5b284c0bddbe67de14b2d2bfb596bc7ba1298a.tar.xz | |
Use C99 bool within source modules.
This is the main bulk of this boolification work, but although it's
making the largest actual change, it should also be the least
disruptive to anyone interacting with this code base downstream of me,
because it doesn't modify any interface between modules: all the
inter-module APIs were updated one by one in the previous commits.
This just cleans up the code within each individual source file to use
bool in place of int where I think that makes things clearer.
Diffstat (limited to 'nestedvm.c')
| -rw-r--r-- | nestedvm.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -31,10 +31,11 @@ void fatal(const char *fmt, ...) struct frontend { // TODO kill unneeded members! midend *me; - int timer_active; + bool timer_active; struct timeval last_time; config_item *cfg; - int cfg_which, cfgret; + int cfg_which; + bool cfgret; int ox, oy, w, h; }; @@ -291,7 +292,7 @@ void jcallback_config_set_choice(int item_ptr, int selected) { i->u.choices.selected = selected; } -static int get_config(frontend *fe, int which) +static bool get_config(frontend *fe, int which) { char *title; config_item *i; |