]> granicus.if.org Git - php/commitdiff
- Reorganize headers, and update TODO.
authorDerick Rethans <derick@php.net>
Wed, 29 Jun 2005 19:08:26 +0000 (19:08 +0000)
committerDerick Rethans <derick@php.net>
Wed, 29 Jun 2005 19:08:26 +0000 (19:08 +0000)
ext/date/TODO
ext/date/lib/dow.c
ext/date/lib/parse_tz.c
ext/date/lib/timelib.c
ext/date/lib/timelib_structs.h
ext/date/lib/tm2unixtime.c
ext/date/lib/unixtime2tm.c

index 4c625d0b7d5c01f61eb64d698161f1b3f3fb3552..1daae52dfff00d7f9933aa5d27d444fa2a73ea8c 100644 (file)
@@ -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.
index 3a3b6bf368ce1d55b9d1719794575e80ec80e8ff..eaa3165cd5b3dfdb6ccb15ad301e837c4fa5162a 100644 (file)
@@ -18,9 +18,7 @@
 
 /* $Id$ */
 
-#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 */
index 11df4d92aedb3a25ea368086c80ed9e17da24241..79e8f621a9c2a018a835d0a6c3953ddc2d0b6e33 100644 (file)
@@ -18,7 +18,7 @@
 
 /* $Id$ */
 
-#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
index 1ab0a49feaff2cd28bc9328017e44eba7b82a4b6..576b2e2efcd2b38e2dc60e1e766791b3fe48e07b 100644 (file)
@@ -18,9 +18,6 @@
 
 /* $Id$ */
 
-#include <timelib_config.h>
-
-#include "timelib_structs.h"
 #include "timelib.h"
 #include <ctype.h>
 
index 068f8b8a65415b29df64059dad2c70cef276bb05..8590e47f6925f6542d7a1b4a8a4258ca4fe2c2ec 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef __TIMELIB_STRUCTS_H__
 #define __TIMELIB_STRUCTS_H__
 
+#include <timelib_config.h>
+
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
index 22b739708b1c85c19cd9347ca6dbf229f22862c5..e67df46f2abe017a61a401fe13a5a823aca5941d 100644 (file)
@@ -18,7 +18,6 @@
 
 /* $Id$ */
 
-#include <timelib_config.h>
 #include "timelib.h"
 
 /*                                    jan  feb  mrt  apr  may  jun  jul  aug  sep  oct  nov  dec */
index b6c2cc0b73cf9e7ed9312497742421a8de7f7281..169cce0c9349ddef48cf84a887b813b0b53f8db2 100644 (file)
@@ -18,7 +18,7 @@
 
 /* $Id$ */
 
-#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 };