In generated parsers, export language as a function
This commit is contained in:
parent
909261d742
commit
0d6d09cbd9
7 changed files with 24 additions and 18 deletions
|
|
@ -37,4 +37,6 @@ static TSLanguage language = {
|
|||
.hidden_symbol_flags = hidden_symbols,
|
||||
};
|
||||
|
||||
TSLanguage *dummy_language = &language;
|
||||
const TSLanguage * dummy_language() {
|
||||
return &language;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ enum {
|
|||
dummy_sym3 = 4,
|
||||
};
|
||||
|
||||
extern TSLanguage *dummy_language;
|
||||
const TSLanguage * dummy_language();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue