Skip to content

Commit ea5e3a0

Browse files
committed
Remove incompatible anonymous struct ptr warning
1 parent 2de8450 commit ea5e3a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/scanner.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ enum TokenType {
1717
MACRO_IDENTIFIER,
1818
};
1919

20+
typedef Array(char *) StringArray;
21+
2022
typedef struct {
2123
bool in_line_continuation;
22-
Array(char *) MacroIdentifiers;
24+
StringArray MacroIdentifiers;
2325
} Scanner;
2426

2527
typedef enum {
@@ -540,7 +542,7 @@ void *tree_sitter_fortran_external_scanner_create() {
540542
return result;
541543
}
542544
char *macro_id = strtok(macro_ids, ":");
543-
Array(char *) *macroIdsResult = &result->MacroIdentifiers;
545+
StringArray *macroIdsResult = &result->MacroIdentifiers;
544546
while (macro_id) {
545547
int length = strlen(macro_id);
546548
char *new_str = (char *)ts_malloc((length + 1) * sizeof(char));

0 commit comments

Comments
 (0)