switch from defines to enum to describe recurrent types

This commit is contained in:
Frederic Culot 2007-03-17 16:37:43 +00:00
parent e3adfbcade
commit 57c6e161cb

View File

@ -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 * Calcurse - text-based organizer
@ -30,11 +30,13 @@
#include "apoint.h" #include "apoint.h"
#include "notify.h" #include "notify.h"
#define RECUR_NO 0 typedef enum { RECUR_NO,
#define RECUR_DAILY 1 RECUR_DAILY,
#define RECUR_WEEKLY 2 RECUR_WEEKLY,
#define RECUR_MONTHLY 3 RECUR_MONTHLY,
#define RECUR_YEARLY 4 RECUR_YEARLY,
RECUR_TYPES
} recur_types_t;
struct days_s { struct days_s {
struct days_s *next; struct days_s *next;