Commit e89d139d authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Add new routines.

Change definition for isreltime().
Change some names of #define constants to avoid conflicts with the yacc parser.
parent e1d9cf09
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: builtins.h,v 1.19 1997/06/23 15:03:38 thomas Exp $ * $Id: builtins.h,v 1.20 1997/07/29 16:16:10 thomas Exp $
* *
* NOTES * NOTES
* This should normally only be included by fmgr.h. * This should normally only be included by fmgr.h.
...@@ -253,7 +253,7 @@ extern bool intervalct(TimeInterval i1, TimeInterval i2); ...@@ -253,7 +253,7 @@ extern bool intervalct(TimeInterval i1, TimeInterval i2);
extern bool intervalov(TimeInterval i1, TimeInterval i2); extern bool intervalov(TimeInterval i1, TimeInterval i2);
extern AbsoluteTime intervalstart(TimeInterval i); extern AbsoluteTime intervalstart(TimeInterval i);
extern AbsoluteTime intervalend(TimeInterval i); extern AbsoluteTime intervalend(TimeInterval i);
extern int isreltime(char *timestring, int *sign, long *quantity, int *unitnr); extern int isreltime(char *timestring);
extern text *timeofday(void); extern text *timeofday(void);
/* dt.c */ /* dt.c */
...@@ -474,6 +474,7 @@ extern bool text_lt(struct varlena *arg1, struct varlena *arg2); ...@@ -474,6 +474,7 @@ extern bool text_lt(struct varlena *arg1, struct varlena *arg2);
extern bool text_le(struct varlena *arg1, struct varlena *arg2); extern bool text_le(struct varlena *arg1, struct varlena *arg2);
extern bool text_gt(struct varlena *arg1, struct varlena *arg2); extern bool text_gt(struct varlena *arg1, struct varlena *arg2);
extern bool text_ge(struct varlena *arg1, struct varlena *arg2); extern bool text_ge(struct varlena *arg1, struct varlena *arg2);
extern int32 textpos(text* t1, text* t2);
extern int32 byteaGetSize(struct varlena *v); extern int32 byteaGetSize(struct varlena *v);
extern int32 byteaGetByte(struct varlena *v, int32 n); extern int32 byteaGetByte(struct varlena *v, int32 n);
extern int32 byteaGetBit(struct varlena *v, int32 n); extern int32 byteaGetBit(struct varlena *v, int32 n);
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: dt.h,v 1.14 1997/07/29 14:08:21 momjian Exp $ * $Id: dt.h,v 1.15 1997/07/29 16:16:12 thomas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -99,7 +99,7 @@ typedef struct { ...@@ -99,7 +99,7 @@ typedef struct {
#define MONTH 1 #define MONTH 1
#define YEAR 2 #define YEAR 2
#define DAY 3 #define DAY 3
#define TIME 4 #define TIMES 4 /* not used - thomas 1997-07-14 */
#define TZ 5 #define TZ 5
#define DTZ 6 #define DTZ 6
#define DTZMOD 7 #define DTZMOD 7
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: geo_decls.h,v 1.5 1997/06/03 14:10:32 thomas Exp $ * $Id: geo_decls.h,v 1.6 1997/07/29 16:16:13 thomas Exp $
* *
* NOTE * NOTE
* These routines do *not* use the float types from adt/. * These routines do *not* use the float types from adt/.
...@@ -39,7 +39,9 @@ ...@@ -39,7 +39,9 @@
#define FPge(A,B) ((B) - (A) <= EPSILON) #define FPge(A,B) ((B) - (A) <= EPSILON)
#else #else
#define FPzero(A) (A == 0) #define FPzero(A) (A == 0)
#define FPnzero(A) (A != 0)
#define FPeq(A,B) (A == B) #define FPeq(A,B) (A == B)
#define FPne(A,B) (A != B)
#define FPlt(A,B) (A < B) #define FPlt(A,B) (A < B)
#define FPle(A,B) (A <= B) #define FPle(A,B) (A <= B)
#define FPgt(A,B) (A > B) #define FPgt(A,B) (A > B)
...@@ -98,6 +100,7 @@ typedef struct { ...@@ -98,6 +100,7 @@ typedef struct {
*-------------------------------------------------------------------*/ *-------------------------------------------------------------------*/
typedef struct { typedef struct {
double A, B, C; double A, B, C;
double m; double m;
} LINE; } LINE;
...@@ -133,11 +136,78 @@ typedef struct { ...@@ -133,11 +136,78 @@ typedef struct {
/* /*
* in geo_ops.h * in geo_ops.h
*/ */
/* public point routines */
extern Point *point_in(char *str);
extern char *point_out(Point *pt);
extern Point *point_construct(double x, double y);
extern Point *point_copy(Point *pt);
extern bool point_left(Point *pt1, Point *pt2);
extern bool point_right(Point *pt1, Point *pt2);
extern bool point_above(Point *pt1, Point *pt2);
extern bool point_below(Point *pt1, Point *pt2);
extern bool point_vert(Point *pt1, Point *pt2);
extern bool point_horiz(Point *pt1, Point *pt2);
extern bool point_eq(Point *pt1, Point *pt2);
extern int32 pointdist(Point *p1, Point *p2);
extern double *point_distance(Point *pt1, Point *pt2);
extern double *point_slope(Point *pt1, Point *pt2);
/* private routines */
extern double point_dt(Point *pt1, Point *pt2);
extern double point_sl(Point *pt1, Point *pt2);
extern Point *point(float8 *x, float8 *y);
extern Point *point_add(Point *p1, Point *p2);
extern Point *point_sub(Point *p1, Point *p2);
extern Point *point_mul(Point *p1, Point *p2);
extern Point *point_div(Point *p1, Point *p2);
/* public lseg routines */
extern LSEG *lseg_in(char *str);
extern char *lseg_out(LSEG *ls);
extern bool lseg_intersect(LSEG *l1, LSEG *l2);
extern bool lseg_parallel(LSEG *l1, LSEG *l2);
extern bool lseg_perp(LSEG *l1, LSEG *l2);
extern bool lseg_vertical(LSEG *lseg);
extern bool lseg_horizontal(LSEG *lseg);
extern bool lseg_eq(LSEG *l1, LSEG *l2);
extern double *lseg_distance(LSEG *l1, LSEG *l2);
extern Point *lseg_center(LSEG *lseg);
extern Point *lseg_interpt(LSEG *l1, LSEG *l2);
extern double *dist_pl(Point *pt, LINE *line);
extern double *dist_ps(Point *pt, LSEG *lseg);
extern double *dist_ppath(Point *pt, PATH *path);
extern double *dist_pb(Point *pt, BOX *box);
extern double *dist_sl(LSEG *lseg, LINE *line);
extern double *dist_sb(LSEG *lseg, BOX *box);
extern double *dist_lb(LINE *line, BOX *box);
extern Point *interpt_sl(LSEG *lseg, LINE *line);
extern Point *close_pl(Point *pt, LINE *line);
extern Point *close_ps(Point *pt, LSEG *lseg);
extern Point *close_pb(Point *pt, BOX *box);
extern Point *close_sl(LSEG *lseg, LINE *line);
extern Point *close_sb(LSEG *lseg, BOX *box);
extern Point *close_lb(LINE *line, BOX *box);
extern bool on_pl(Point *pt, LINE *line);
extern bool on_ps(Point *pt, LSEG *lseg);
extern bool on_pb(Point *pt, BOX *box);
extern bool on_ppath(Point *pt, PATH *path);
extern bool on_sl(LSEG *lseg, LINE *line);
extern bool on_sb(LSEG *lseg, BOX *box);
extern bool inter_sl(LSEG *lseg, LINE *line);
extern bool inter_sb(LSEG *lseg, BOX *box);
extern bool inter_lb(LINE *line, BOX *box);
/* private routines */
extern LSEG *lseg_construct(Point *pt1, Point *pt2);
extern void statlseg_construct(LSEG *lseg, Point *pt1, Point *pt2);
extern double lseg_dt(LSEG *l1, LSEG *l2);
extern void make_bound_box(POLYGON *poly);
/* public box routines */
extern BOX *box_in(char *str); extern BOX *box_in(char *str);
extern char *box_out(BOX *box); extern char *box_out(BOX *box);
extern BOX *box_construct(double x1, double x2, double y1, double y2);
extern BOX *box_fill(BOX *result, double x1, double x2, double y1, double y2);
extern BOX *box_copy(BOX *box);
extern bool box_same(BOX *box1, BOX *box2); extern bool box_same(BOX *box1, BOX *box2);
extern bool box_overlap(BOX *box1, BOX *box2); extern bool box_overlap(BOX *box1, BOX *box2);
extern bool box_overleft(BOX *box1, BOX *box2); extern bool box_overleft(BOX *box1, BOX *box2);
...@@ -155,7 +225,7 @@ extern bool box_le(BOX *box1, BOX *box2); ...@@ -155,7 +225,7 @@ extern bool box_le(BOX *box1, BOX *box2);
extern bool box_ge(BOX *box1, BOX *box2); extern bool box_ge(BOX *box1, BOX *box2);
extern Point *box_center(BOX *box); extern Point *box_center(BOX *box);
extern double *box_area(BOX *box); extern double *box_area(BOX *box);
extern double *box_length(BOX *box); extern double *box_width(BOX *box);
extern double *box_height(BOX *box); extern double *box_height(BOX *box);
extern double *box_distance(BOX *box1, BOX *box2); extern double *box_distance(BOX *box1, BOX *box2);
extern Point *box_center(BOX *box); extern Point *box_center(BOX *box);
...@@ -163,8 +233,12 @@ extern BOX *box_intersect(BOX *box1, BOX *box2); ...@@ -163,8 +233,12 @@ extern BOX *box_intersect(BOX *box1, BOX *box2);
extern LSEG *box_diagonal(BOX *box); extern LSEG *box_diagonal(BOX *box);
/* private routines */ /* private routines */
extern BOX *box_construct(double x1, double x2, double y1, double y2);
extern BOX *box_fill(BOX *result, double x1, double x2, double y1, double y2);
extern BOX *box_copy(BOX *box);
extern double box_ar(BOX *box); extern double box_ar(BOX *box);
extern double box_ln(BOX *box); extern double box_wd(BOX *box);
extern double box_ht(BOX *box); extern double box_ht(BOX *box);
extern double box_dt(BOX *box1, BOX *box2); extern double box_dt(BOX *box1, BOX *box2);
...@@ -174,6 +248,7 @@ extern BOX *box_sub(BOX *box, Point *p); ...@@ -174,6 +248,7 @@ extern BOX *box_sub(BOX *box, Point *p);
extern BOX *box_mul(BOX *box, Point *p); extern BOX *box_mul(BOX *box, Point *p);
extern BOX *box_div(BOX *box, Point *p); extern BOX *box_div(BOX *box, Point *p);
/* private line routines */
extern LINE *line_construct_pm(Point *pt, double m); extern LINE *line_construct_pm(Point *pt, double m);
extern LINE *line_construct_pp(Point *pt1, Point *pt2); extern LINE *line_construct_pp(Point *pt1, Point *pt2);
extern bool line_intersect(LINE *l1, LINE *l2); extern bool line_intersect(LINE *l1, LINE *l2);
...@@ -185,6 +260,7 @@ extern bool line_eq(LINE *l1, LINE *l2); ...@@ -185,6 +260,7 @@ extern bool line_eq(LINE *l1, LINE *l2);
extern double *line_distance(LINE *l1, LINE *l2); extern double *line_distance(LINE *l1, LINE *l2);
extern Point *line_interpt(LINE *l1, LINE *l2); extern Point *line_interpt(LINE *l1, LINE *l2);
/* public path routines */
extern PATH *path_in(char *str); extern PATH *path_in(char *str);
extern char *path_out(PATH *path); extern char *path_out(PATH *path);
extern bool path_n_lt(PATH *p1, PATH *p2); extern bool path_n_lt(PATH *p1, PATH *p2);
...@@ -207,80 +283,18 @@ extern PATH *path_add_pt(PATH *path, Point *point); ...@@ -207,80 +283,18 @@ extern PATH *path_add_pt(PATH *path, Point *point);
extern PATH *path_sub_pt(PATH *path, Point *point); extern PATH *path_sub_pt(PATH *path, Point *point);
extern PATH *path_mul_pt(PATH *path, Point *point); extern PATH *path_mul_pt(PATH *path, Point *point);
extern PATH *path_div_pt(PATH *path, Point *point); extern PATH *path_div_pt(PATH *path, Point *point);
extern bool path_contain_pt( PATH *path, Point *p);
extern bool pt_contained_path( Point *p, PATH *path);
extern Point *path_center(PATH *path);
extern POLYGON *path_poly(PATH *path); extern POLYGON *path_poly(PATH *path);
extern PATH *upgradepath(PATH *path); extern PATH *upgradepath(PATH *path);
extern bool isoldpath(PATH *path); extern bool isoldpath(PATH *path);
/* private routines */ /* private routines */
extern double path_ln(PATH *path); extern double path_ln(PATH *path);
extern bool plist_same(int npts, Point p1[], Point p2[]);
/* public point routines */
extern Point *point_in(char *str);
extern char *point_out(Point *pt);
extern Point *point_construct(double x, double y);
extern Point *point_copy(Point *pt);
extern bool point_left(Point *pt1, Point *pt2);
extern bool point_right(Point *pt1, Point *pt2);
extern bool point_above(Point *pt1, Point *pt2);
extern bool point_below(Point *pt1, Point *pt2);
extern bool point_vert(Point *pt1, Point *pt2);
extern bool point_horiz(Point *pt1, Point *pt2);
extern bool point_eq(Point *pt1, Point *pt2);
extern int32 pointdist(Point *p1, Point *p2);
extern double *point_distance(Point *pt1, Point *pt2);
extern double *point_slope(Point *pt1, Point *pt2);
/* private routines */
extern double point_dt(Point *pt1, Point *pt2);
extern double point_sl(Point *pt1, Point *pt2);
extern Point *point(float8 *x, float8 *y);
extern Point *point_add(Point *p1, Point *p2);
extern Point *point_sub(Point *p1, Point *p2);
extern Point *point_mul(Point *p1, Point *p2);
extern Point *point_div(Point *p1, Point *p2);
/* public lseg routines */
extern LSEG *lseg_in(char *str);
extern char *lseg_out(LSEG *ls);
extern bool lseg_intersect(LSEG *l1, LSEG *l2);
extern bool lseg_parallel(LSEG *l1, LSEG *l2);
extern bool lseg_perp(LSEG *l1, LSEG *l2);
extern bool lseg_vertical(LSEG *lseg);
extern bool lseg_horizontal(LSEG *lseg);
extern bool lseg_eq(LSEG *l1, LSEG *l2);
extern double *lseg_distance(LSEG *l1, LSEG *l2);
extern Point *lseg_interpt(LSEG *l1, LSEG *l2);
extern double *dist_pl(Point *pt, LINE *line);
extern double *dist_ps(Point *pt, LSEG *lseg);
extern double *dist_ppth(Point *pt, PATH *path);
extern double *dist_pb(Point *pt, BOX *box);
extern double *dist_sl(LSEG *lseg, LINE *line);
extern double *dist_sb(LSEG *lseg, BOX *box);
extern double *dist_lb(LINE *line, BOX *box);
extern Point *interpt_sl(LSEG *lseg, LINE *line);
extern Point *close_pl(Point *pt, LINE *line);
extern Point *close_ps(Point *pt, LSEG *lseg);
extern Point *close_pb(Point *pt, BOX *box);
extern Point *close_sl(LSEG *lseg, LINE *line);
extern Point *close_sb(LSEG *lseg, BOX *box);
extern Point *close_lb(LINE *line, BOX *box);
extern bool on_pl(Point *pt, LINE *line);
extern bool on_ps(Point *pt, LSEG *lseg);
extern bool on_pb(Point *pt, BOX *box);
extern bool on_ppath(Point *pt, PATH *path);
extern bool on_sl(LSEG *lseg, LINE *line);
extern bool on_sb(LSEG *lseg, BOX *box);
extern bool inter_sl(LSEG *lseg, LINE *line);
extern bool inter_sb(LSEG *lseg, BOX *box);
extern bool inter_lb(LINE *line, BOX *box);
/* private routines */
extern LSEG *lseg_construct(Point *pt1, Point *pt2);
extern void statlseg_construct(LSEG *lseg, Point *pt1, Point *pt2);
extern double lseg_dt(LSEG *l1, LSEG *l2);
extern void make_bound_box(POLYGON *poly);
/* public polygon routines */ /* public polygon routines */
extern POLYGON *poly_in(char *s); extern POLYGON *poly_in(char *s);
...@@ -293,14 +307,21 @@ extern bool poly_same(POLYGON *polya, POLYGON *polyb); ...@@ -293,14 +307,21 @@ extern bool poly_same(POLYGON *polya, POLYGON *polyb);
extern bool poly_overlap(POLYGON *polya, POLYGON *polyb); extern bool poly_overlap(POLYGON *polya, POLYGON *polyb);
extern bool poly_contain(POLYGON *polya, POLYGON *polyb); extern bool poly_contain(POLYGON *polya, POLYGON *polyb);
extern bool poly_contained(POLYGON *polya, POLYGON *polyb); extern bool poly_contained(POLYGON *polya, POLYGON *polyb);
extern bool poly_contain_pt( POLYGON *poly, Point *p);
extern bool pt_contained_poly( Point *p, POLYGON *poly);
extern double *poly_distance(POLYGON *polya, POLYGON *polyb);
extern int4 poly_npoints(POLYGON *poly); extern int4 poly_npoints(POLYGON *poly);
extern Point *poly_center(POLYGON *poly);
extern BOX *poly_box(POLYGON *poly); extern BOX *poly_box(POLYGON *poly);
extern PATH *poly_path(POLYGON *poly); extern PATH *poly_path(POLYGON *poly);
extern POLYGON *box_poly(BOX *box); extern POLYGON *box_poly(BOX *box);
extern POLYGON *upgradepoly(POLYGON *poly); extern POLYGON *upgradepoly(POLYGON *poly);
extern POLYGON *revertpoly(POLYGON *poly); extern POLYGON *revertpoly(POLYGON *poly);
/* private polygon routines */
/* public circle routines */ /* public circle routines */
extern CIRCLE *circle_in(char *str); extern CIRCLE *circle_in(char *str);
extern char *circle_out(CIRCLE *circle); extern char *circle_out(CIRCLE *circle);
...@@ -321,6 +342,8 @@ extern bool circle_lt(CIRCLE *circle1, CIRCLE *circle2); ...@@ -321,6 +342,8 @@ extern bool circle_lt(CIRCLE *circle1, CIRCLE *circle2);
extern bool circle_gt(CIRCLE *circle1, CIRCLE *circle2); extern bool circle_gt(CIRCLE *circle1, CIRCLE *circle2);
extern bool circle_le(CIRCLE *circle1, CIRCLE *circle2); extern bool circle_le(CIRCLE *circle1, CIRCLE *circle2);
extern bool circle_ge(CIRCLE *circle1, CIRCLE *circle2); extern bool circle_ge(CIRCLE *circle1, CIRCLE *circle2);
extern bool circle_contain_pt(CIRCLE *circle, Point *point);
extern bool pt_contained_circle(Point *point, CIRCLE *circle);
extern CIRCLE *circle_add_pt(CIRCLE *circle, Point *point); extern CIRCLE *circle_add_pt(CIRCLE *circle, Point *point);
extern CIRCLE *circle_sub_pt(CIRCLE *circle, Point *point); extern CIRCLE *circle_sub_pt(CIRCLE *circle, Point *point);
extern CIRCLE *circle_mul_pt(CIRCLE *circle, Point *point); extern CIRCLE *circle_mul_pt(CIRCLE *circle, Point *point);
...@@ -330,8 +353,11 @@ extern double *circle_diameter(CIRCLE *circle); ...@@ -330,8 +353,11 @@ extern double *circle_diameter(CIRCLE *circle);
extern double *circle_radius(CIRCLE *circle); extern double *circle_radius(CIRCLE *circle);
extern double *circle_distance(CIRCLE *circle1, CIRCLE *circle2); extern double *circle_distance(CIRCLE *circle1, CIRCLE *circle2);
extern double *dist_pc(Point *point, CIRCLE *circle); extern double *dist_pc(Point *point, CIRCLE *circle);
extern double *dist_cpoly(CIRCLE *circle, POLYGON *poly);
extern Point *circle_center(CIRCLE *circle); extern Point *circle_center(CIRCLE *circle);
extern CIRCLE *circle(Point *center, float8 *radius); extern CIRCLE *circle(Point *center, float8 *radius);
extern CIRCLE *box_circle(BOX *box);
extern BOX *circle_box(CIRCLE *circle);
extern CIRCLE *poly_circle(POLYGON *poly); extern CIRCLE *poly_circle(POLYGON *poly);
extern POLYGON *circle_poly(int npts, CIRCLE *circle); extern POLYGON *circle_poly(int npts, CIRCLE *circle);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: nabstime.h,v 1.8 1997/06/23 14:58:51 thomas Exp $ * $Id: nabstime.h,v 1.9 1997/07/29 16:16:14 thomas Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -43,10 +43,10 @@ typedef TimeIntervalData *TimeInterval; ...@@ -43,10 +43,10 @@ typedef TimeIntervalData *TimeInterval;
* so redefine them explicitly using these bit patterns. - tgl 97/02/24 * so redefine them explicitly using these bit patterns. - tgl 97/02/24
*/ */
#define EPOCH_ABSTIME ((AbsoluteTime) 0) #define EPOCH_ABSTIME ((AbsoluteTime) 0)
#define INVALID_ABSTIME ((AbsoluteTime) 0x4FFFFFFE) /* 2147483647 == 2^31 - 1 */ #define INVALID_ABSTIME ((AbsoluteTime) 0x7FFFFFFE) /* 2147483647 == 2^31 - 1 */
#define CURRENT_ABSTIME ((AbsoluteTime) 0x4FFFFFFD) /* 2147483646 == 2^31 - 2 */ #define CURRENT_ABSTIME ((AbsoluteTime) 0x7FFFFFFD) /* 2147483646 == 2^31 - 2 */
#define NOEND_ABSTIME ((AbsoluteTime) 0x4FFFFFFC) /* 2147483645 == 2^31 - 3 */ #define NOEND_ABSTIME ((AbsoluteTime) 0x7FFFFFFC) /* 2147483645 == 2^31 - 3 */
#define BIG_ABSTIME ((AbsoluteTime) 0x4FFFFFFB) /* 2147483644 == 2^31 - 4 */ #define BIG_ABSTIME ((AbsoluteTime) 0x7FFFFFFB) /* 2147483644 == 2^31 - 4 */
#if defined(aix) #if defined(aix)
/* /*
...@@ -55,14 +55,12 @@ typedef TimeIntervalData *TimeInterval; ...@@ -55,14 +55,12 @@ typedef TimeIntervalData *TimeInterval;
* these integer constants depending on whether the constant is signed * these integer constants depending on whether the constant is signed
* or not! * or not!
*/ */
/*#define NOSTART_ABSTIME ((AbsoluteTime) HIBITI) */ /* - 2^31 */
#define NOSTART_ABSTIME ((AbsoluteTime) INT_MIN) #define NOSTART_ABSTIME ((AbsoluteTime) INT_MIN)
#else #else
/*#define NOSTART_ABSTIME ((AbsoluteTime) 2147483648)*/ /* - 2^31 */
#define NOSTART_ABSTIME ((AbsoluteTime) 0x80000001) /* -2147483647 == - 2^31 */ #define NOSTART_ABSTIME ((AbsoluteTime) 0x80000001) /* -2147483647 == - 2^31 */
#endif /* aix */ #endif /* aix */
#define INVALID_RELTIME ((RelativeTime) 0x4FFFFFFE) /* 2147483647 == 2^31 - 1 */ #define INVALID_RELTIME ((RelativeTime) 0x7FFFFFFE) /* 2147483647 == 2^31 - 1 */
#define AbsoluteTimeIsValid(time) \ #define AbsoluteTimeIsValid(time) \
((bool) ((time) != INVALID_ABSTIME)) ((bool) ((time) != INVALID_ABSTIME))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment