From 57c6e161cbb41da5b30fac6ca9f7d22fb8ac75ed Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Sat, 17 Mar 2007 16:37:43 +0000 Subject: switch from defines to enum to describe recurrent types --- src/recur.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/recur.h b/src/recur.h index d973315..1574b93 100755 --- a/src/recur.h +++ b/src/recur.h @@ -1,4 +1,4 @@ -/* $calcurse: recur.h,v 1.10 2007/03/10 15:55:25 culot Exp $ */ +/* $calcurse: recur.h,v 1.11 2007/03/17 16:37:43 culot Exp $ */ /* * Calcurse - text-based organizer @@ -30,11 +30,13 @@ #include "apoint.h" #include "notify.h" -#define RECUR_NO 0 -#define RECUR_DAILY 1 -#define RECUR_WEEKLY 2 -#define RECUR_MONTHLY 3 -#define RECUR_YEARLY 4 +typedef enum { RECUR_NO, + RECUR_DAILY, + RECUR_WEEKLY, + RECUR_MONTHLY, + RECUR_YEARLY, + RECUR_TYPES +} recur_types_t; struct days_s { struct days_s *next; -- cgit v1.2.3-70-g09d2