diff options
author | Frederic Culot <calcurse@culot.org> | 2008-04-12 21:14:03 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2008-04-12 21:14:03 +0000 |
commit | efd782699b63038a36bf68eaa1230d2d10bd9b38 (patch) | |
tree | a8bf286c6aa9bbfc12192cefed63a98567a3f010 /src/calendar.h | |
parent | 0c281d2c1e53248f0075f988fb4ba02f041bd170 (diff) | |
download | calcurse-efd782699b63038a36bf68eaa1230d2d10bd9b38.zip |
Yet another style for source code. GNU style now used (I am fed up with tabs...)
Diffstat (limited to 'src/calendar.h')
-rwxr-xr-x | src/calendar.h | 98 |
1 files changed, 53 insertions, 45 deletions
diff --git a/src/calendar.h b/src/calendar.h index 270ab97..3e1736d 100755 --- a/src/calendar.h +++ b/src/calendar.h @@ -1,4 +1,4 @@ -/* $calcurse: calendar.h,v 1.9 2008/04/09 20:38:29 culot Exp $ */ +/* $calcurse: calendar.h,v 1.10 2008/04/12 21:14:03 culot Exp $ */ /* * Calcurse - text-based organizer @@ -34,53 +34,61 @@ #define CALHEIGHT 12 #define CALWIDTH 30 -typedef enum { /* days of week */ - SUNDAY, - MONDAY, - TUESDAY, - WEDNESDAY, - THURSDAY, - FRIDAY, - SATURDAY, - WDAYS -} wday_e; +typedef enum +{ /* days of week */ + SUNDAY, + MONDAY, + TUESDAY, + WEDNESDAY, + THURSDAY, + FRIDAY, + SATURDAY, + WDAYS +} +wday_e; -typedef struct { - unsigned dd; - unsigned mm; - unsigned yyyy; -} date_t; +typedef struct +{ + unsigned dd; + unsigned mm; + unsigned yyyy; +} +date_t; -typedef enum { - NO_POM, - FIRST_QUARTER, - FULL_MOON, - LAST_QUARTER, - NEW_MOON, - MOON_PHASES -} pom_e; +typedef enum +{ + NO_POM, + FIRST_QUARTER, + FULL_MOON, + LAST_QUARTER, + NEW_MOON, + MOON_PHASES +} +pom_e; -typedef enum { - UP, - DOWN, - LEFT, - RIGHT, - MOVES -} move_t; +typedef enum +{ + UP, + DOWN, + LEFT, + RIGHT, + MOVES +} +move_t; -void calendar_start_date_thread(void); -void calendar_stop_date_thread(void); -void calendar_set_current_date(void); -void calendar_set_first_day_of_week(wday_e); -void calendar_change_first_day_of_week(void); -bool calendar_week_begins_on_monday(void); -void calendar_store_current_date(date_t *); -void calendar_init_slctd_day(void); -date_t *calendar_get_slctd_day(void); -long calendar_get_slctd_day_sec(void); -void calendar_update_panel(WINDOW *); -void calendar_change_day(int datefmt); -void calendar_move(move_t); -char *calendar_get_pom(time_t); +void calendar_start_date_thread (void); +void calendar_stop_date_thread (void); +void calendar_set_current_date (void); +void calendar_set_first_day_of_week (wday_e); +void calendar_change_first_day_of_week (void); +bool calendar_week_begins_on_monday (void); +void calendar_store_current_date (date_t *); +void calendar_init_slctd_day (void); +date_t *calendar_get_slctd_day (void); +long calendar_get_slctd_day_sec (void); +void calendar_update_panel (WINDOW *); +void calendar_change_day (int); +void calendar_move (move_t); +char *calendar_get_pom (time_t); #endif /* CALCURSE_CALENDAR_H */ |