declare ts_point_make before using it

This commit is contained in:
joshvera 2015-12-02 17:51:06 -05:00
parent 144aab22e6
commit 06c790e16e

View file

@ -26,6 +26,13 @@ static inline TSLength ts_length_sub(TSLength len1, TSLength len2) {
return result;
}
static inline TSPoint ts_point_make(size_t row, size_t column) {
TSPoint point;
point.row = row;
point.column = column;
return point;
}
static inline TSPoint ts_point_add(TSPoint point1, TSPoint point2) {
size_t row = point1.row + point2.row;
@ -68,13 +75,6 @@ static inline TSPoint ts_point_zero() {
return point;
}
static inline TSPoint ts_point_make(size_t row, size_t column) {
TSPoint point;
point.row = row;
point.column = column;
return point;
}
static inline TSLength ts_length_make(size_t bytes, size_t chars) {
TSLength result;
result.bytes = bytes;