bday
diff birthday.h @ 5:5af6bf2cb271
reads only stdin now, no files anymore; removed -f option aswell; code beatifing
author | meillo@marmaro.de |
---|---|
date | Mon, 17 Dec 2007 15:09:03 +0100 |
parents | 5326c222cd4e |
children | fc6e40f7bd5a |
line diff
1.1 --- a/birthday.h Mon Dec 17 12:14:41 2007 +0100 1.2 +++ b/birthday.h Mon Dec 17 15:09:03 2007 +0100 1.3 @@ -25,16 +25,14 @@ 1.4 $Id: birthday.h,v 1.6 1999/04/25 14:01:29 andy Exp $ 1.5 */ 1.6 1.7 +#include <stdio.h> 1.8 + 1.9 /* ========== Configuration section */ 1.10 1.11 -#define DEFAULT_FILE ".birthdays" 1.12 +/* standard time to warn in advance, when no explicit w flag is given. */ 1.13 +#define DEF_WARN 14 1.14 1.15 -/* standard time to warn in advance, when no explicit w flag is given. */ 1.16 -#define DEF_WARN 21 1.17 1.18 -/* ========== Required includes */ 1.19 - 1.20 -#include <stdio.h> 1.21 1.22 /* ========== Global constants and data types */ 1.23 1.24 @@ -81,7 +79,7 @@ 1.25 1.26 /* ========== */ 1.27 1.28 -struct event *readlist(char *fname); 1.29 +struct event* readlist(void); 1.30 void gettoday(void); 1.31 unsigned delta(struct date *); 1.32 unsigned ddiff(struct date *D1, struct date *D2);