Pass through to ts_string_input_make_with_length.
This commit is contained in:
parent
eab518e5da
commit
638aa87e42
1 changed files with 0 additions and 6 deletions
|
|
@ -27,13 +27,7 @@ int ts_string_input_seek(void *payload, uint32_t character, uint32_t byte) {
|
|||
}
|
||||
|
||||
TSInput ts_string_input_make(const char *string) {
|
||||
if (!input)
|
||||
goto error;
|
||||
|
||||
return ts_string_input_make_with_length(string, strlen(string));
|
||||
|
||||
error:
|
||||
return (TSInput){ NULL, NULL, NULL, TSInputEncodingUTF8 };
|
||||
}
|
||||
|
||||
TSInput ts_string_input_make_with_length(const char *string, uint32_t length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue