00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef PLINT_DATA_TYPE_H
00026 #error Dont include me directly, but through data/type.h
00027 #endif
00028
00043 struct _plint_pnt
00044 {
00045
00046 int x;
00047 int y;
00049 #define PLINT_pnt_INIT(__x__, __y__) { x:(__x__), y:(__y__) }
00050 #define PLINT_pnt_INIT_NUL PLINT_pnt_INIT(0, 0)
00051
00052 #define plint_pnt_x(__p__) (__p__).x
00053 #define plint_pnt_y(__p__) (__p__).y
00054
00055 };
00056
00057 __BEGIN_DECLS
00058
00059 #define plint_pnt_cpy(__p__) (__p__)
00060 #define plint_pnt_dup plint_pnt_cpy
00061 #define plint_pnt_fre(__p__)
00062
00063 plint_pnt_t plint_pnt_new(plint_num_t X, plint_num_t Y);
00064
00065 inline plint_pnt_t plint_ptr_pnt(plint_ptr_t VALUE);
00066 inline plint_ptr_t plint_pnt_ptr(plint_pnt_t POINT);
00067 inline plint_ptr_t plint_pnt_set(plint_ptr_t VALUE, plint_pnt_t POINT);
00068
00069 __END_DECLS
00070