add point functions

This commit is contained in:
2023-11-29 14:01:41 -08:00
parent bc8e01fd6f
commit bb3d890ad6
3 changed files with 42 additions and 0 deletions

View File

@ -6,4 +6,10 @@ typedef struct Point {
int y;
} Point;
Point Point_new(int x, int y);
Point *Point_new_p(int x, int y);
int Point_cmp(Point a, Point b);
int Point_cmp_p(const Point *a, const Point *b);
int Point_cmp_v(const void *a, const void *b);
#endif // LIBFLINT_H_UTILITY