fix(wasm) add common definitions to stdlib (#5199)

Also expose `strlen` through `string.h` instead of `stdio.h`.
This commit is contained in:
Trim21 2026-01-06 19:01:37 +08:00 committed by GitHub
parent 17e3c7a5c5
commit f4ca3d95ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 16 additions and 7 deletions

View file

@ -13,4 +13,6 @@ void *memset(void *dst, int value, size_t count);
int strncmp(const char *left, const char *right, size_t n);
size_t strlen(const char *str);
#endif // TREE_SITTER_WASM_STRING_H_