diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-18 00:59:11 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-18 00:59:11 +0200 |
commit | 6b5b93239eab623c786e1c537563a81a285ffbd2 (patch) | |
tree | da1a11ea6a886e812f5f7455d5e943adfb0b7d52 /client | |
parent | 4dc5c77d8236e0d2ce7aa4a82da3d8103ef9426b (diff) | |
download | bemenu-6b5b93239eab623c786e1c537563a81a285ffbd2.tar.gz bemenu-6b5b93239eab623c786e1c537563a81a285ffbd2.tar.bz2 bemenu-6b5b93239eab623c786e1c537563a81a285ffbd2.zip |
Use bools instead of ints
Diffstat (limited to 'client')
-rw-r--r-- | client/bemenu-run.c | 10 | ||||
-rw-r--r-- | client/bemenu.c | 10 | ||||
-rw-r--r-- | client/common/common.c | 6 | ||||
-rw-r--r-- | client/common/common.h | 12 |
4 files changed, 19 insertions, 19 deletions
diff --git a/client/bemenu-run.c b/client/bemenu-run.c index ab633c5..a1cb5ef 100644 --- a/client/bemenu-run.c +++ b/client/bemenu-run.c @@ -9,16 +9,16 @@ static struct client client = { .filter_mode = BM_FILTER_MODE_DMENU, - .wrap = 0, - .lines = 0, .colors = {0}, .title = "bemenu", .prefix = NULL, .font = NULL, + .lines = 0, .selected = 0, - .bottom = 0, - .grab = 0, - .monitor = 0 + .monitor = 0, + .bottom = false, + .grab = false, + .wrap = false, }; struct paths { diff --git a/client/bemenu.c b/client/bemenu.c index f2a4c4f..6a4f95d 100644 --- a/client/bemenu.c +++ b/client/bemenu.c @@ -6,16 +6,16 @@ static struct client client = { .filter_mode = BM_FILTER_MODE_DMENU, - .wrap = 0, - .lines = 0, .colors = {0}, .title = "bemenu", .prefix = NULL, .font = NULL, + .lines = 0, .selected = 0, - .bottom = 0, - .grab = 0, - .monitor = 0 + .monitor = 0, + .bottom = false, + .grab = false, + .wrap = false, }; static void diff --git a/client/common/common.c b/client/common/common.c index ef25280..e8ad262 100644 --- a/client/common/common.c +++ b/client/common/common.c @@ -156,7 +156,7 @@ parse_args(struct client *client, int *argc, char **argv[]) client->filter_mode = BM_FILTER_MODE_DMENU_CASE_INSENSITIVE; break; case 'w': - client->wrap = 1; + client->wrap = true; break; case 'l': client->lines = strtol(optarg, NULL, 10); @@ -172,10 +172,10 @@ parse_args(struct client *client, int *argc, char **argv[]) break; case 'b': - client->bottom = 1; + client->bottom = true; break; case 'f': - client->grab = 1; + client->grab = true; break; case 'm': client->monitor = strtol(optarg, NULL, 10); diff --git a/client/common/common.h b/client/common/common.h index fa2025c..fab8758 100644 --- a/client/common/common.h +++ b/client/common/common.h @@ -5,16 +5,16 @@ struct client { enum bm_filter_mode filter_mode; - int32_t wrap; - uint32_t lines; const char *colors[BM_COLOR_LAST]; const char *title; const char *prefix; const char *font; - int32_t selected; - int32_t bottom; - int32_t grab; - int32_t monitor; + uint32_t lines; + uint32_t selected; + uint32_t monitor; + bool bottom; + bool grab; + bool wrap; }; void parse_args(struct client *client, int *argc, char **argv[]); |