From 56949550025f447691b0f32632b35af4749da358 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sun, 12 Jul 2009 16:21:57 +0000 Subject: stdbool header removed, unsigned type used instead --- src/todo.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/todo.c') diff --git a/src/todo.c b/src/todo.c index e027685..b2dbd5e 100755 --- a/src/todo.c +++ b/src/todo.c @@ -1,4 +1,4 @@ -/* $calcurse: todo.c,v 1.33 2009/07/05 20:33:24 culot Exp $ */ +/* $calcurse: todo.c,v 1.34 2009/07/12 16:22:01 culot Exp $ */ /* * Calcurse - text-based organizer @@ -277,7 +277,7 @@ todo_delete (conf_t *conf) _("This item has a note attached to it. " "Delete (t)odo or just its (n)ote ?"); char *erase_choice = _("[t/n] "); - bool go_for_todo_del = false; + unsigned go_for_todo_del = 0; int answer, has_note; if (conf->confirm_delete) @@ -286,7 +286,7 @@ todo_delete (conf_t *conf) answer = wgetch (win[STA].p); if ((answer == 'y') && (todos > 0)) { - go_for_todo_del = true; + go_for_todo_del = 1; } else { @@ -295,9 +295,9 @@ todo_delete (conf_t *conf) } } else if (todos > 0) - go_for_todo_del = true; + go_for_todo_del = 1; - if (go_for_todo_del == false) + if (go_for_todo_del == 0) { wins_erase_status_bar (); return; @@ -483,7 +483,7 @@ todo_update_panel (int which_pan) float ratio = ((float) max_items) / ((float) todos); int sbar_length = (int) (ratio * (max_items + 1)); int highend = (int) (ratio * first); - bool hilt_bar = (which_pan == TOD) ? true : false; + unsigned hilt_bar = (which_pan == TOD) ? 1 : 0; int sbar_top = highend + title_lines; if ((sbar_top + sbar_length) > win[TOD].h - 1) -- cgit v1.2.3-54-g00ecf