7
7
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $Id: nabstime.h,v 1.23 2000/02/16 17:26:26 thomas Exp $
10
+ * $Id: nabstime.h,v 1.24 2000/03/27 17:07:48 thomas Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -52,14 +52,10 @@ typedef TimeIntervalData *TimeInterval;
52
52
* so redefine them explicitly using these bit patterns. - tgl 97/02/24
53
53
*/
54
54
#define EPOCH_ABSTIME ((AbsoluteTime) 0)
55
- #define INVALID_ABSTIME ((AbsoluteTime) 0x7FFFFFFE) /* 2147483647 == 2^31 -
56
- * 1 */
57
- #define CURRENT_ABSTIME ((AbsoluteTime) 0x7FFFFFFD) /* 2147483646 == 2^31 -
58
- * 2 */
59
- #define NOEND_ABSTIME ((AbsoluteTime) 0x7FFFFFFC) /* 2147483645 == 2^31 -
60
- * 3 */
61
- #define BIG_ABSTIME ((AbsoluteTime) 0x7FFFFFFB) /* 2147483644 == 2^31 -
62
- * 4 */
55
+ #define INVALID_ABSTIME ((AbsoluteTime) 0x7FFFFFFE) /* 2147483647 (2^31 - 1) */
56
+ #define CURRENT_ABSTIME ((AbsoluteTime) 0x7FFFFFFD) /* 2147483646 (2^31 - 2) */
57
+ #define NOEND_ABSTIME ((AbsoluteTime) 0x7FFFFFFC) /* 2147483645 (2^31 - 3) */
58
+ #define BIG_ABSTIME ((AbsoluteTime) 0x7FFFFFFB) /* 2147483644 (2^31 - 4) */
63
59
64
60
#if defined(_AIX )
65
61
/*
@@ -70,11 +66,10 @@ typedef TimeIntervalData *TimeInterval;
70
66
*/
71
67
#define NOSTART_ABSTIME ((AbsoluteTime) INT_MIN)
72
68
#else
73
- #define NOSTART_ABSTIME ((AbsoluteTime) 0x80000001) /* -2147483647 == - 2^31 */
69
+ #define NOSTART_ABSTIME ((AbsoluteTime) 0x80000001) /* -2147483647 ( - 2^31) */
74
70
#endif /* _AIX */
75
71
76
- #define INVALID_RELTIME ((RelativeTime) 0x7FFFFFFE) /* 2147483647 == 2^31 -
77
- * 1 */
72
+ #define INVALID_RELTIME ((RelativeTime) 0x7FFFFFFE) /* 2147483647 (2^31 - 1) */
78
73
79
74
#define AbsoluteTimeIsValid (time ) \
80
75
((bool) ((time) != INVALID_ABSTIME))
0 commit comments