comparison bdengine.c @ 6:fc6e40f7bd5a

minor stuff
author meillo@marmaro.de
date Mon, 17 Dec 2007 16:31:40 +0100
parents 5af6bf2cb271
children
comparison
equal deleted inserted replaced
5:5af6bf2cb271 6:fc6e40f7bd5a
116 int iDWarn = DEF_WARN; 116 int iDWarn = DEF_WARN;
117 117
118 const unsigned MLENDAT[]={31,-1,31,30,31,30,31,31,30,31,30,31}; 118 const unsigned MLENDAT[]={31,-1,31,30,31,30,31,31,30,31,30,31};
119 119
120 const struct _ftable FTABLE[] = { 120 const struct _ftable FTABLE[] = {
121 {"bir",F_TBIRTHDAY},
122 {"bd", F_TBIRTHDAY}, 121 {"bd", F_TBIRTHDAY},
123 {"ann",F_TANNIVERSARY}, 122 {"ann",F_TANNIVERSARY},
124 {"ev", F_TEVENT}, 123 {"ev", F_TEVENT},
125 {"w", F_WTIME_P}, 124 {"w", F_WTIME_P},
126 {"to", F_TODATE}, 125 {"to", F_TODATE},
256 255
257 256
258 257
259 258
260 /* lists the birthdays in their string format, one by one, and passes the string to a function. */ 259 /* lists the birthdays in their string format, one by one, and passes the string to a function. */
261 void liststrings(struct event *evl, prnfunc outf) { 260 void liststrings(struct event* evl, prnfunc outf) {
262 int i,j; 261 int i,j;
263 char *buf, *tmp; 262 char *buf, *tmp;
264 int size; 263 int size;
265 264
266 for (i = 0; evl[i].text != NULL; i++) { 265 for (i = 0; evl[i].text != NULL; i++) {
443 tm = localtime(&t); 442 tm = localtime(&t);
444 today.day = tm->tm_mday; 443 today.day = tm->tm_mday;
445 today.month = tm->tm_mon + 1; /* 1-12 instead of 0-11 */ 444 today.month = tm->tm_mon + 1; /* 1-12 instead of 0-11 */
446 today.year = tm->tm_year + 1900; 445 today.year = tm->tm_year + 1900;
447 } 446 }
447
448
449
450
451
448 452
449 453
450 454
451 455
452 456