Consolidate TSInput interface down to one function
This commit is contained in:
parent
2a507f0739
commit
b0b3b2e5f3
8 changed files with 39 additions and 65 deletions
|
|
@ -40,8 +40,7 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
void *payload;
|
||||
const char *(*read)(void *payload, uint32_t *bytes_read);
|
||||
int (*seek)(void *payload, uint32_t byte_index, TSPoint position);
|
||||
const char *(*read)(void *payload, uint32_t byte_index, TSPoint position, uint32_t *bytes_read);
|
||||
TSInputEncoding encoding;
|
||||
} TSInput;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue