bday

diff bday.c @ 14:a56120a4678f

wrapping of long lines
author meillo@marmaro.de
date Thu, 13 Nov 2008 13:31:33 +0100
parents 4f48b4f86e3d
children 032af48d590b
line diff
     1.1 --- a/bday.c	Thu Nov 13 13:30:40 2008 +0100
     1.2 +++ b/bday.c	Thu Nov 13 13:31:33 2008 +0100
     1.3 @@ -317,7 +317,8 @@
     1.4  			if (delta(&(evl[i].date)) <= evl[i].warn) {
     1.5  				append(buf, evl[i].text);
     1.6  				append(buf, " for ");
     1.7 -				/* +1 because, if the difference between two dates is one day, then the length of an event on those days is two days */
     1.8 +				/* +1 because, if the difference between two dates is one day,
     1.9 +				   then the length of an event on those days is two days */
    1.10  				j = ddiff(&(evl[i].date),&(evl[i].enddate)) + 1;
    1.11  				tmp = ttime(0, 0, j/7, j%7);
    1.12  				append(buf, tmp);
    1.13 @@ -603,7 +604,8 @@
    1.14  				break;
    1.15  			case F_TEVENT:
    1.16  				/* if a year was specified, and this warning isn't for it, ignore! */
    1.17 -				if ((evl[i].date.year != 0 && ydelta(evl[i].date, today) != 0) && (evl[i].enddate.year == 0 || ydelta(evl[i].enddate, today) != 0)) {
    1.18 +				if ((evl[i].date.year != 0 && ydelta(evl[i].date, today) != 0)
    1.19 +				    && (evl[i].enddate.year == 0 || ydelta(evl[i].enddate, today) != 0)) {
    1.20  					i--;
    1.21  					continue;
    1.22  				}