[Numpy-svn] r8399 - trunk/numpy/core/src/multiarray

numpy-svn at scipy.org numpy-svn at scipy.org
Sat May 8 21:11:42 EDT 2010


Author: charris
Date: 2010-05-08 20:11:42 -0500 (Sat, 08 May 2010)
New Revision: 8399

Modified:
   trunk/numpy/core/src/multiarray/datetime.c
Log:
ENH: Remove obsolete keyword 'register'.

Modified: trunk/numpy/core/src/multiarray/datetime.c
===================================================================
--- trunk/numpy/core/src/multiarray/datetime.c	2010-05-09 00:04:58 UTC (rev 8398)
+++ trunk/numpy/core/src/multiarray/datetime.c	2010-05-09 01:11:42 UTC (rev 8399)
@@ -59,7 +59,7 @@
 
 /* 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 @@
  * 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 @@
 days_to_ymdstruct(npy_datetime dlong)
 {
     ymdstruct ymd;
-    register long year;
+    long year;
     npy_longlong yearoffset;
     int leap, dayoffset;
     int month = 1, day = 1;




More information about the Numpy-svn mailing list