Skip to content

Commit e4860af

Browse files
author
Derick Rethans
committed
- Reorganize headers, and update TODO.
1 parent e7de7ff commit e4860af

File tree

7 files changed

+6
-14
lines changed

7 files changed

+6
-14
lines changed

ext/date/TODO

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- Port over my 200 test cases to .phpt format.
22
- Write an error handler for unexpected characters while parsing dates.
33
- Cache lookups for timezone information.
4-
- Change tz structure lookup to use binary search.
54
- Move all date/time related functions from ext/standard to ext/date.
65
- Move all date/time related tests from ext/standard/tests to ext/data/tests.
6+
- Optimize parsing @ with a negative timestamp.

ext/date/lib/dow.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818

1919
/* $Id$ */
2020

21-
#include <timelib_config.h>
22-
23-
#include "timelib_structs.h"
21+
#include "timelib.h"
2422

2523
static int m_table_common[13] = { -1, 0, 3, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5 }; /* 1 = jan */
2624
static int m_table_leap[13] = { -1, 6, 2, 3, 6, 1, 4, 6, 2, 5, 0, 3, 5 }; /* 1 = jan */

ext/date/lib/parse_tz.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/* $Id$ */
2020

21-
#include <timelib_config.h>
21+
#include "timelib.h"
2222

2323
#include <stdio.h>
2424

@@ -27,8 +27,6 @@
2727
#else
2828
#include <strings.h>
2929
#endif
30-
31-
#include "timelib.h"
3230
#include "timezonedb.h"
3331

3432
#ifdef WORDS_BIGENDIAN

ext/date/lib/timelib.c

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
/* $Id$ */
2020

21-
#include <timelib_config.h>
22-
23-
#include "timelib_structs.h"
2421
#include "timelib.h"
2522
#include <ctype.h>
2623

ext/date/lib/timelib_structs.h

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
#ifndef __TIMELIB_STRUCTS_H__
2222
#define __TIMELIB_STRUCTS_H__
2323

24+
#include <timelib_config.h>
25+
2426
#ifdef HAVE_SYS_TYPES_H
2527
#include <sys/types.h>
2628
#endif

ext/date/lib/tm2unixtime.c

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
/* $Id$ */
2020

21-
#include <timelib_config.h>
2221
#include "timelib.h"
2322

2423
/* jan feb mrt apr may jun jul aug sep oct nov dec */

ext/date/lib/unixtime2tm.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/* $Id$ */
2020

21-
#include <timelib_config.h>
21+
#include "timelib.h"
2222

2323
#include <stdio.h>
2424

@@ -38,8 +38,6 @@
3838
#define TIMELIB_LL_CONST(n) n ## ll
3939
#endif
4040

41-
#include "timelib.h"
42-
4341
static int month_tab_leap[12] = { -1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };
4442
static int month_tab[12] = { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 };
4543

0 commit comments

Comments
 (0)