From debf5205fbfb5a1518843088a946660593b9ee2b Mon Sep 17 00:00:00 2001 From: joshvera Date: Wed, 2 Dec 2015 17:44:14 -0500 Subject: [PATCH] Don't use c-style structs --- src/runtime/length.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/runtime/length.h b/src/runtime/length.h index 62a51d09..b3ad3d03 100644 --- a/src/runtime/length.h +++ b/src/runtime/length.h @@ -63,11 +63,16 @@ static inline bool ts_length_eq(TSLength len1, TSLength len2) { } static inline TSPoint ts_point_zero() { - return (TSPoint){ .row = 0, .column = 0 }; + TSPoint point; + point.row = point.column = 0; + return point; } static inline TSPoint ts_point_make(size_t row, size_t column) { - return (TSPoint){ .row = row, .column = column }; + TSPoint point; + point.row = row; + point.column = column; + return point; } static inline TSLength ts_length_make(size_t bytes, size_t chars) {