declare ts_point_make before using it
This commit is contained in:
parent
144aab22e6
commit
06c790e16e
1 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue