Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit93c7e50

Browse files
committed
Correct compile failures in REL6_4 datetime code.
1 parent3533684 commit93c7e50

File tree

3 files changed

+5
-16
lines changed

3 files changed

+5
-16
lines changed

‎src/backend/utils/adt/datetime.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.25.2.2 1999/02/13 05:59:34 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.25.2.3 1999/03/06 22:49:03 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -27,14 +27,6 @@
2727

2828
staticintdate2tm(DateADTdateVal,int*tzp,structtm*tm,double*fsec,char**tzn);
2929

30-
#if0
31-
staticintday_tab[2][12]= {
32-
{31,28,31,30,31,30,31,31,30,31,30,31},
33-
{31,29,31,30,31,30,31,31,30,31,30,31}};
34-
35-
#defineisleap(y) (((y % 4) == 0 && (y % 100) != 0) || (y % 400) == 0)
36-
#endif
37-
3830
#defineUTIME_MINYEAR (1901)
3931
#defineUTIME_MINMONTH (12)
4032
#defineUTIME_MINDAY (14)

‎src/backend/utils/adt/dt.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.59.2.2 1999/02/13 05:59:34 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.59.2.3 1999/03/06 22:49:01 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -56,8 +56,6 @@ static inttm2timespan(struct tm * tm, double fsec, TimeSpan *span);
5656
#defineROUND_ALL 0
5757

5858
#if0
59-
#defineisleap(y) (((y % 4) == 0) && (((y % 100) != 0) || ((y % 400) == 0)))
60-
6159
intmdays[]= {31,28,31,30,31,30,31,31,30,31,30,31,0};
6260
#endif
6361

@@ -2302,8 +2300,7 @@ datetkn *deltacache[MAXDATEFIELDS] = {NULL};
23022300
* These routines will be used by other date/time packages - tgl 97/02/25
23032301
*/
23042302

2305-
#if0
2306-
XXXmovedtodt.h-thomas1999-01-15
2303+
#if1
23072304
/* Set the minimum year to one greater than the year of the first valid day
23082305
*to avoid having to check year and day both. - tgl 97/05/08
23092306
*/

‎src/include/utils/dt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
* Copyright (c) 1994, Regents of the University of California
1010
*
11-
* $Id: dt.h,v 1.33.2.1 1999/03/03 05:11:39 thomas Exp $
11+
* $Id: dt.h,v 1.33.2.2 1999/03/06 22:49:01 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -269,7 +269,7 @@ extern intdatetime_is_epoch(double j);
269269

270270
externintday_tab[2][13];
271271

272-
#defineisleap(y) (((y % 4) == 0 && (y % 100) != 0) || (y % 400) == 0)
272+
#defineisleap(y) (((y) % 4) == 0 && (((y) % 100) != 0 || ((y) % 400) == 0))
273273

274274
/* Julian date support for date2j() and j2date()
275275
* Set the minimum year to one greater than the year of the first valid day

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp