Avoid missing field initializer warnings w/o default field syntax
The default field syntax aint working on windows
This commit is contained in:
parent
587d1a740a
commit
6e72c2943d
6 changed files with 67 additions and 85 deletions
|
|
@ -28,11 +28,11 @@ static inline TSNode ts_node__null() {
|
|||
|
||||
// TSNode - accessors
|
||||
|
||||
uint32_t ts_node_start_byte(const TSNode self) {
|
||||
uint32_t ts_node_start_byte(TSNode self) {
|
||||
return self.context[0];
|
||||
}
|
||||
|
||||
TSPoint ts_node_start_point(const TSNode self) {
|
||||
TSPoint ts_node_start_point(TSNode self) {
|
||||
return (TSPoint) {self.context[1], self.context[2]};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue