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/calendar.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/calendar.c') diff --git a/src/calendar.c b/src/calendar.c index a1c5975..c626888 100755 --- a/src/calendar.c +++ b/src/calendar.c @@ -1,4 +1,4 @@ -/* $calcurse: calendar.c,v 1.24 2009/07/05 20:33:15 culot Exp $ */ +/* $calcurse: calendar.c,v 1.25 2009/07/12 16:21:59 culot Exp $ */ /* * Calcurse - text-based organizer @@ -69,7 +69,7 @@ #define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0) static date_t today, slctd_day; -static bool week_begins_on_monday; +static unsigned week_begins_on_monday; static pthread_mutex_t date_thread_mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_t calendar_t_date; @@ -132,14 +132,14 @@ calendar_set_first_day_of_week (wday_e first_day) switch (first_day) { case SUNDAY: - week_begins_on_monday = false; + week_begins_on_monday = 0; break; case MONDAY: - week_begins_on_monday = true; + week_begins_on_monday = 1; break; default: ERROR_MSG (_("ERROR setting first day of week")); - week_begins_on_monday = false; + week_begins_on_monday = 0; /* NOTREACHED */ } } @@ -151,8 +151,8 @@ calendar_change_first_day_of_week (void) week_begins_on_monday = !week_begins_on_monday; } -/* Return true if week begins on monday, false otherwise. */ -bool +/* Return 1 if week begins on monday, 0 otherwise. */ +unsigned calendar_week_begins_on_monday (void) { return (week_begins_on_monday); -- cgit v1.2.3