feat(c): rename DecodeFunction to TSDecodeFunction
Keep a typedef for backwards compatibility until ABI 16.
This commit is contained in:
parent
dbe88f8bbb
commit
b75196bb81
4 changed files with 11 additions and 8 deletions
|
|
@ -114,7 +114,7 @@ static void ts_lexer__get_lookahead(Lexer *self) {
|
|||
}
|
||||
|
||||
const uint8_t *chunk = (const uint8_t *)self->chunk + position_in_chunk;
|
||||
DecodeFunction decode =
|
||||
TSDecodeFunction decode =
|
||||
self->input.encoding == TSInputEncodingUTF8 ? ts_decode_utf8 :
|
||||
self->input.encoding == TSInputEncodingUTF16LE ? ts_decode_utf16_le :
|
||||
self->input.encoding == TSInputEncodingUTF16BE ? ts_decode_utf16_be : self->input.decode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue