Re: [patch] Time fixes for Win32

2001-02-01 Thread Cliff Woolley
--- Cliff Woolley <[EMAIL PROTECTED]> wrote: > If y is divisible evenly by 400, it's automatically divisible by 100... you > don't need > to check both. =-) That's what I get for talking before I think... I guess you actually DO have to check, since you have to be sure that if it's not divisi

Re: [patch] Time fixes for Win32

2001-02-01 Thread Ben Collins-Sussman
Cliff Woolley <[EMAIL PROTECTED]> writes: > --- [EMAIL PROTECTED] wrote: > > +/* Leap year is any year divisible by four, but not by 100 unless also > > + * divisible by 400 > > + */ > > +#define IsLeapYear(y) ((!(y % 4)) ? (((!(y % 400)) && (y % 100)) ? 1 : 0) > > : 0) > > + > > If y is divisib

Re: [patch] Time fixes for Win32

2001-02-01 Thread Cliff Woolley
--- [EMAIL PROTECTED] wrote: > +/* Leap year is any year divisible by four, but not by 100 unless also > + * divisible by 400 > + */ > +#define IsLeapYear(y) ((!(y % 4)) ? (((!(y % 400)) && (y % 100)) ? 1 : 0) : > 0) > + If y is divisible evenly by 400, it's automatically divisible by 100... you

[patch] Time fixes for Win32

2001-02-01 Thread cmpilato
Some fixes in the Win32 time support. * (IsLeapYear): New macro for quickly figgerin' out if a given year is a leap year. * (SystemTimeToAprExpTime): Perform the calculation of tm_yday. Also, negate the sign of the tm_gmtoff field to be consistent with Unix platforms and APR header file

apr_lstat inconsistency

2001-02-01 Thread William A. Rowe, Jr.
Question, The check_symlinks() fn of http_request carries the following warning: /* * Strip trailing '/', if any, off what we're checking; trailing slashes * make some systems follow symlinks to directories even in lstat(). * After we've done the lstat, put it back. Also, don'