1 #ifndef TREE_SITTER_POINT_H_
2 #define TREE_SITTER_POINT_H_
6 #define POINT_ZERO ((TSPoint) {0, 0})
7 #define POINT_MAX ((TSPoint) {UINT32_MAX, UINT32_MAX})
29 return (
a.row <
b.row) || (
a.row ==
b.row &&
a.column <=
b.column);
33 return (
a.row <
b.row) || (
a.row ==
b.row &&
a.column <
b.column);
37 return (
a.row >
b.row) || (
a.row ==
b.row &&
a.column >
b.column);
41 return (
a.row >
b.row) || (
a.row ==
b.row &&
a.column >=
b.column);
45 return a.row ==
b.row &&
a.column ==
b.column;
49 if (
a.row <
b.row || (
a.row ==
b.row &&
a.column <
b.column))
56 if (
a.row >
b.row || (
a.row ==
b.row &&
a.column >
b.column))
static TSPoint point_sub(TSPoint a, TSPoint b)
static bool point_lt(TSPoint a, TSPoint b)
static TSPoint point_add(TSPoint a, TSPoint b)
static bool point_gte(TSPoint a, TSPoint b)
static TSPoint point_max(TSPoint a, TSPoint b)
static bool point_lte(TSPoint a, TSPoint b)
static TSPoint point__new(unsigned row, unsigned column)
static bool point_eq(TSPoint a, TSPoint b)
static bool point_gt(TSPoint a, TSPoint b)
static TSPoint point_min(TSPoint a, TSPoint b)