Pass row/column position to input seek method
This commit is contained in:
parent
8b70cb85f7
commit
facafcd6e4
5 changed files with 10 additions and 10 deletions
|
|
@ -26,10 +26,15 @@ typedef enum {
|
|||
TSSymbolTypeAuxiliary,
|
||||
} TSSymbolType;
|
||||
|
||||
typedef struct {
|
||||
uint32_t row;
|
||||
uint32_t column;
|
||||
} TSPoint;
|
||||
|
||||
typedef struct {
|
||||
void *payload;
|
||||
const char *(*read)(void *payload, uint32_t *bytes_read);
|
||||
int (*seek)(void *payload, uint32_t byte_index);
|
||||
int (*seek)(void *payload, uint32_t byte_index, TSPoint position);
|
||||
TSInputEncoding encoding;
|
||||
} TSInput;
|
||||
|
||||
|
|
@ -43,11 +48,6 @@ typedef struct {
|
|||
void (*log)(void *payload, TSLogType, const char *);
|
||||
} TSLogger;
|
||||
|
||||
typedef struct {
|
||||
uint32_t row;
|
||||
uint32_t column;
|
||||
} TSPoint;
|
||||
|
||||
typedef struct {
|
||||
uint32_t start_byte;
|
||||
uint32_t bytes_removed;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue