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

Commit45409f0

Browse files
author
Thomas G. Lockhart
committed
Remove code not previously enabled with USE_NEW_DATE and USE_NEW_TIME
#defines.
1 parent7424254 commit45409f0

File tree

3 files changed

+3
-63
lines changed

3 files changed

+3
-63
lines changed

‎src/include/utils/builtins.h

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: builtins.h,v 1.18 1997/05/14 04:33:41 thomas Exp $
9+
* $Id: builtins.h,v 1.19 1997/06/23 15:03:38 thomas Exp $
1010
*
1111
* NOTES
1212
* This should normally only be included by fmgr.h.
@@ -481,8 +481,6 @@ extern struct varlena *byteaSetByte(struct varlena *v, int32 n, int32 newByte);
481481
externstructvarlena*byteaSetBit(structvarlena*v,int32n,int32newBit);
482482

483483
/* datetime.c */
484-
#ifUSE_NEW_DATE
485-
486484
externDateADTdate_in(char*datestr);
487485
externchar*date_out(DateADTdateVal);
488486
externbooldate_eq(DateADTdateVal1,DateADTdateVal2);
@@ -502,29 +500,6 @@ extern DateADT datetime_date(DateTime *datetime);
502500
externDateTime*datetime_datetime(DateADTdate,TimeADT*time);
503501
externDateADTabstime_date(AbsoluteTimeabstime);
504502

505-
#else
506-
507-
externint4date_in(char*datestr);
508-
externchar*date_out(int4dateVal);
509-
externbooldate_eq(int4dateVal1,int4dateVal2);
510-
externbooldate_ne(int4dateVal1,int4dateVal2);
511-
externbooldate_lt(int4dateVal1,int4dateVal2);
512-
externbooldate_le(int4dateVal1,int4dateVal2);
513-
externbooldate_gt(int4dateVal1,int4dateVal2);
514-
externbooldate_ge(int4dateVal1,int4dateVal2);
515-
externintdate_cmp(int4dateVal1,int4dateVal2);
516-
externint4date_larger(int4dateVal1,int4dateVal2);
517-
externint4date_smaller(int4dateVal1,int4dateVal2);
518-
externint32date_mi(int4dateVal1,int4dateVal2);
519-
externint4date_pli(int4dateVal,int32days);
520-
externint4date_mii(int4dateVal,int32days);
521-
externDateTime*date_datetime(int4date);
522-
externint4datetime_date(DateTime*datetime);
523-
externDateTime*datetime_datetime(int4date,TimeADT*time);
524-
externint4abstime_date(AbsoluteTimeabstime);
525-
526-
#endif
527-
528503
externTimeADT*time_in(char*timestr);
529504
externchar*time_out(TimeADT*time);
530505
externbooltime_eq(TimeADT*time1,TimeADT*time2);

‎src/include/utils/datetime.h

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: datetime.h,v 1.2 1997/03/14 23:33:21 scrappy Exp $
9+
* $Id: datetime.h,v 1.3 1997/06/23 15:03:41 thomas Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -15,34 +15,8 @@
1515

1616
#include"utils/dt.h"
1717

18-
#ifUSE_NEW_DATE
19-
2018
typedefint32DateADT;
2119

22-
#else
23-
24-
/* these things look like structs, but we pass them by value so be careful
25-
For example, passing an int -> DateADT is not portable! */
26-
typedefstructDateADT {
27-
charday;
28-
charmonth;
29-
shortyear;
30-
}DateADT;
31-
32-
#endif
33-
34-
#ifUSE_NEW_TIME
35-
3620
typedeffloat8TimeADT;
3721

38-
#else
39-
40-
typedefstructTimeADT {
41-
shorthr;
42-
shortmin;
43-
floatsec;
44-
}TimeADT;
45-
46-
#endif
47-
4822
#endif/* DATETIME_H */

‎src/include/utils/dt.h

Lines changed: 1 addition & 10 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.11 1997/06/20 17:15:00 thomas Exp $
11+
* $Id: dt.h,v 1.12 1997/06/2315:03:45 thomas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -36,15 +36,6 @@ typedef struct {
3636
}TimeSpan;
3737

3838

39-
/*
40-
* USE_NEW_DATE enables a more efficient Julian day-based date type.
41-
* USE_NEW_TIME enables a more efficient double-based time type.
42-
*/
43-
44-
#defineUSE_NEW_DATE1
45-
#defineUSE_NEW_TIME1
46-
47-
4839
/* ----------------------------------------------------------------
4940
*time types + support macros
5041
*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp