diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-04 05:17:34 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-04 05:17:34 +0000 |
commit | 80fc392c0907bdbc2b0dc3e58797a6a3c66804e1 (patch) | |
tree | b5268ad9d665bddd7e2758d436d8da5afe39c445 /misc/libmcal/files/patch-af | |
parent | . Update to 1.1.3. (diff) |
Really remove the files this time.
PR: ports/47608
Notes
Notes:
svn path=/head/; revision=74630
Diffstat (limited to 'misc/libmcal/files/patch-af')
-rw-r--r-- | misc/libmcal/files/patch-af | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/misc/libmcal/files/patch-af b/misc/libmcal/files/patch-af deleted file mode 100644 index 6fab309d4a87..000000000000 --- a/misc/libmcal/files/patch-af +++ /dev/null @@ -1,65 +0,0 @@ ---- datetime.h.orig Sat Mar 11 03:14:43 2000 -+++ datetime.h Fri Mar 16 20:27:14 2001 -@@ -1,5 +1,5 @@ - /* -- * $Id: datetime.h,v 1.2 2000/03/11 02:14:43 chuck Exp $ -+ * $Id: datetime.h,v 1.4 2001/03/16 19:27:14 chuck Exp $ - * Libmcal - Modular Calendar Access Library - * Copyright (C) 1999 Mark Musone and Andrew Skalski - * -@@ -26,7 +26,7 @@ - * Andrew Skalski - * askalski@chek.com - * -- * mcal@lists.chek.com -+ * libmcal-users@lists.sourceforge.net - */ - - #ifndef _DATETIME_H -@@ -66,6 +66,11 @@ - DECEMBER - } month_t; - -+typedef enum { -+ DT_FORWARD, -+ DT_BACKWARD -+} direction_t; -+ - /** - * struct datetime - * -@@ -178,11 +183,34 @@ - /* Returns the week number for d=day, m=month, y=year */ - int dt_weekofyear(int d, int m, int y); - -+/* Returns the week number in the given month counting in the given direction */ -+int dt_orderofmonth( const datetime_t *dt, const direction_t direction); -+ - /* convenience macros to get the first/last days of a week */ - #define dt_startofweek(dt, ref, weekstart) \ - dt_setweekof((dt), (ref), (weekstart), (weekstart)) - #define dt_endofweek(dt, ref, weekstart) \ - dt_setweekof((dt), (ref), (weekstart), (7+(weekstart)-1)%7) -+#define dt_dayofweekstr(dayno) \ -+ (dayno) >= 4 ? \ -+ (dayno) = 6 ? \ -+ "SA" : \ -+ (dayno) = 5 ? \ -+ "FR" : \ -+ "TH" \ -+ ; \ -+ ;: \ -+ (dayno) >= 2 ? \ -+ (dayno) = 3 ? \ -+ "WE" : \ -+ "TU" \ -+ ;: \ -+ (dayno) = 1 ? \ -+ "MO" : \ -+ "SU" \ -+ ; \ -+ ; \ -+ - - /**********************************/ - |