diff options
author | Frederic Culot <calcurse@culot.org> | 2009-07-12 16:21:57 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2009-07-12 16:21:57 +0000 |
commit | 56949550025f447691b0f32632b35af4749da358 (patch) | |
tree | b51bf757d54bfca2ed7a0bd8124f18e506c83d98 /src/calendar.c | |
parent | d4d29be0fa41c079ab0a9e11585f65ff5e2828cf (diff) | |
download | calcurse-56949550025f447691b0f32632b35af4749da358.zip |
stdbool header removed, unsigned type used instead
Diffstat (limited to 'src/calendar.c')
-rwxr-xr-x | src/calendar.c | 14 |
1 files changed, 7 insertions, 7 deletions
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); |