diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-05-09 01:11:42 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-05-09 01:11:42 +0000 |
commit | cdfd96a091e004a53a3aba2be55309ddf67e2b7a (patch) | |
tree | b355cbde502f702b9682f8c298291624f0a028bd | |
parent | 8884dedab08177a3eecf03ce6f7e3dab1a2ab53e (diff) | |
download | numpy-cdfd96a091e004a53a3aba2be55309ddf67e2b7a.tar.gz |
ENH: Remove obsolete keyword 'register'.
-rw-r--r-- | numpy/core/src/multiarray/datetime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/src/multiarray/datetime.c b/numpy/core/src/multiarray/datetime.c index 859936c61..b75260dd4 100644 --- a/numpy/core/src/multiarray/datetime.c +++ b/numpy/core/src/multiarray/datetime.c @@ -59,7 +59,7 @@ static int days_in_month[2][12] = { /* Return 1/0 iff year points to a leap year in calendar. */ static int -is_leapyear(register long year) +is_leapyear(long year) { return (year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0)); } @@ -88,7 +88,7 @@ day_of_week(npy_longlong absdate) * 31.12.(year-1) since 31.12.1969 in the proleptic Gregorian calendar. */ static npy_longlong -year_offset(register npy_longlong year) +year_offset(npy_longlong year) { /* Note that 477 == 1969/4 - 1969/100 + 1969/400 */ year--; @@ -173,7 +173,7 @@ static ymdstruct days_to_ymdstruct(npy_datetime dlong) { ymdstruct ymd; - register long year; + long year; npy_longlong yearoffset; int leap, dayoffset; int month = 1, day = 1; |