summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-03-17 16:37:43 +0000
committerFrederic Culot <calcurse@culot.org>2007-03-17 16:37:43 +0000
commit57c6e161cbb41da5b30fac6ca9f7d22fb8ac75ed (patch)
tree8cabb39e57c9a93ebf7deaf94b0633f33b609a20
parente3adfbcade0bd865046b52dd9a67ecb57bac09a7 (diff)
downloadcalcurse-57c6e161cbb41da5b30fac6ca9f7d22fb8ac75ed.tar.gz
calcurse-57c6e161cbb41da5b30fac6ca9f7d22fb8ac75ed.zip
switch from defines to enum to describe recurrent types
-rwxr-xr-xsrc/recur.h14
1 files changed, 8 insertions, 6 deletions
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;