From 06c790e16ee722feaac211c5a634c3f397a4fee2 Mon Sep 17 00:00:00 2001 From: joshvera Date: Wed, 2 Dec 2015 17:51:06 -0500 Subject: [PATCH] declare ts_point_make before using it --- src/runtime/length.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/runtime/length.h b/src/runtime/length.h index dab2b86e..96051869 100644 --- a/src/runtime/length.h +++ b/src/runtime/length.h @@ -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;