derick          Wed Jun 29 15:08:26 2005 EDT

  Modified files:              
    /php-src/ext/date   TODO 
    /php-src/ext/date/lib       dow.c parse_tz.c timelib.c timelib_structs.h 
                                tm2unixtime.c unixtime2tm.c 
  Log:
  - Reorganize headers, and update TODO.
  
  
http://cvs.php.net/diff.php/php-src/ext/date/TODO?r1=1.7&r2=1.8&ty=u
Index: php-src/ext/date/TODO
diff -u php-src/ext/date/TODO:1.7 php-src/ext/date/TODO:1.8
--- php-src/ext/date/TODO:1.7   Mon Jun 20 07:08:28 2005
+++ php-src/ext/date/TODO       Wed Jun 29 15:08:26 2005
@@ -1,6 +1,6 @@
 - Port over my 200 test cases to .phpt format.
 - Write an error handler for unexpected characters while parsing dates.
 - Cache lookups for timezone information.
-- Change tz structure lookup to use binary search.
 - Move all date/time related functions from ext/standard to ext/date.
 - Move all date/time related tests from ext/standard/tests to ext/data/tests.
+- Optimize parsing @ with a negative timestamp.
http://cvs.php.net/diff.php/php-src/ext/date/lib/dow.c?r1=1.5&r2=1.6&ty=u
Index: php-src/ext/date/lib/dow.c
diff -u php-src/ext/date/lib/dow.c:1.5 php-src/ext/date/lib/dow.c:1.6
--- php-src/ext/date/lib/dow.c:1.5      Fri Jun 17 10:53:59 2005
+++ php-src/ext/date/lib/dow.c  Wed Jun 29 15:08:26 2005
@@ -16,11 +16,9 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: dow.c,v 1.5 2005/06/17 14:53:59 derick Exp $ */
+/* $Id: dow.c,v 1.6 2005/06/29 19:08:26 derick Exp $ */
 
-#include <timelib_config.h>
-
-#include "timelib_structs.h"
+#include "timelib.h"
 
 static int m_table_common[13] = { -1, 0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5 }; /* 
1 = jan */
 static int m_table_leap[13] =   { -1, 6, 2, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5 }; /* 
1 = jan */
http://cvs.php.net/diff.php/php-src/ext/date/lib/parse_tz.c?r1=1.15&r2=1.16&ty=u
Index: php-src/ext/date/lib/parse_tz.c
diff -u php-src/ext/date/lib/parse_tz.c:1.15 
php-src/ext/date/lib/parse_tz.c:1.16
--- php-src/ext/date/lib/parse_tz.c:1.15        Tue Jun 28 17:37:36 2005
+++ php-src/ext/date/lib/parse_tz.c     Wed Jun 29 15:08:26 2005
@@ -16,9 +16,9 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: parse_tz.c,v 1.15 2005/06/28 21:37:36 derick Exp $ */
+/* $Id: parse_tz.c,v 1.16 2005/06/29 19:08:26 derick Exp $ */
 
-#include <timelib_config.h>
+#include "timelib.h"
 
 #include <stdio.h>
 
@@ -27,8 +27,6 @@
 #else
 #include <strings.h>
 #endif
-
-#include "timelib.h"
 #include "timezonedb.h"
 
 #ifdef WORDS_BIGENDIAN
http://cvs.php.net/diff.php/php-src/ext/date/lib/timelib.c?r1=1.4&r2=1.5&ty=u
Index: php-src/ext/date/lib/timelib.c
diff -u php-src/ext/date/lib/timelib.c:1.4 php-src/ext/date/lib/timelib.c:1.5
--- php-src/ext/date/lib/timelib.c:1.4  Fri Jun 17 10:54:00 2005
+++ php-src/ext/date/lib/timelib.c      Wed Jun 29 15:08:26 2005
@@ -16,11 +16,8 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: timelib.c,v 1.4 2005/06/17 14:54:00 derick Exp $ */
+/* $Id: timelib.c,v 1.5 2005/06/29 19:08:26 derick Exp $ */
 
-#include <timelib_config.h>
-
-#include "timelib_structs.h"
 #include "timelib.h"
 #include <ctype.h>
 
http://cvs.php.net/diff.php/php-src/ext/date/lib/timelib_structs.h?r1=1.9&r2=1.10&ty=u
Index: php-src/ext/date/lib/timelib_structs.h
diff -u php-src/ext/date/lib/timelib_structs.h:1.9 
php-src/ext/date/lib/timelib_structs.h:1.10
--- php-src/ext/date/lib/timelib_structs.h:1.9  Sat Jun 18 15:23:58 2005
+++ php-src/ext/date/lib/timelib_structs.h      Wed Jun 29 15:08:26 2005
@@ -16,11 +16,13 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: timelib_structs.h,v 1.9 2005/06/18 19:23:58 derick Exp $ */
+/* $Id: timelib_structs.h,v 1.10 2005/06/29 19:08:26 derick Exp $ */
 
 #ifndef __TIMELIB_STRUCTS_H__
 #define __TIMELIB_STRUCTS_H__
 
+#include <timelib_config.h>
+
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
http://cvs.php.net/diff.php/php-src/ext/date/lib/tm2unixtime.c?r1=1.10&r2=1.11&ty=u
Index: php-src/ext/date/lib/tm2unixtime.c
diff -u php-src/ext/date/lib/tm2unixtime.c:1.10 
php-src/ext/date/lib/tm2unixtime.c:1.11
--- php-src/ext/date/lib/tm2unixtime.c:1.10     Sat Jun 18 15:23:58 2005
+++ php-src/ext/date/lib/tm2unixtime.c  Wed Jun 29 15:08:26 2005
@@ -16,9 +16,8 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: tm2unixtime.c,v 1.10 2005/06/18 19:23:58 derick Exp $ */
+/* $Id: tm2unixtime.c,v 1.11 2005/06/29 19:08:26 derick Exp $ */
 
-#include <timelib_config.h>
 #include "timelib.h"
 
 /*                                    jan  feb  mrt  apr  may  jun  jul  aug  
sep  oct  nov  dec */
http://cvs.php.net/diff.php/php-src/ext/date/lib/unixtime2tm.c?r1=1.8&r2=1.9&ty=u
Index: php-src/ext/date/lib/unixtime2tm.c
diff -u php-src/ext/date/lib/unixtime2tm.c:1.8 
php-src/ext/date/lib/unixtime2tm.c:1.9
--- php-src/ext/date/lib/unixtime2tm.c:1.8      Fri Jun 17 10:54:00 2005
+++ php-src/ext/date/lib/unixtime2tm.c  Wed Jun 29 15:08:26 2005
@@ -16,9 +16,9 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: unixtime2tm.c,v 1.8 2005/06/17 14:54:00 derick Exp $ */
+/* $Id: unixtime2tm.c,v 1.9 2005/06/29 19:08:26 derick Exp $ */
 
-#include <timelib_config.h>
+#include "timelib.h"
 
 #include <stdio.h>
 
@@ -38,8 +38,6 @@
 #define TIMELIB_LL_CONST(n) n ## ll
 #endif
 
-#include "timelib.h"
-
 static int month_tab_leap[12] = { -1, 30, 59, 90, 120, 151, 181, 212, 243, 
273, 304, 334 };
 static int month_tab[12] =      { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 
304, 334 };
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to