diff --git a/lib/src/parser.c b/lib/src/parser.c index e6a4d3d5..cc93162d 100644 --- a/lib/src/parser.c +++ b/lib/src/parser.c @@ -1815,7 +1815,11 @@ void ts_parser_print_dot_graphs(TSParser *self, int fd) { } if (fd >= 0) { + #ifdef _WIN32 + self->dot_graph_file = _fdopen(fd, "a"); + #else self->dot_graph_file = fdopen(fd, "a"); + #endif } else { self->dot_graph_file = NULL; } diff --git a/lib/src/stack.c b/lib/src/stack.c index 44f989ae..431cd6a7 100644 --- a/lib/src/stack.c +++ b/lib/src/stack.c @@ -305,7 +305,7 @@ static void ts_stack__add_slice( array_push(&self->slices, slice); } -inline StackSliceArray stack__iter( +static StackSliceArray stack__iter( Stack *self, StackVersion version, StackCallback callback,