feat: support compiling to wasm32-unknown-unknown
This commit is contained in:
parent
46ea65c89b
commit
22553b3372
20 changed files with 787 additions and 12 deletions
16
crates/language/wasm/include/string.h
Normal file
16
crates/language/wasm/include/string.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef TREE_SITTER_WASM_STRING_H_
|
||||
#define TREE_SITTER_WASM_STRING_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
int memcmp(const void *lhs, const void *rhs, size_t count);
|
||||
|
||||
void *memcpy(void *restrict dst, const void *restrict src, size_t size);
|
||||
|
||||
void *memmove(void *dst, const void *src, size_t count);
|
||||
|
||||
void *memset(void *dst, int value, size_t count);
|
||||
|
||||
int strncmp(const char *left, const char *right, size_t n);
|
||||
|
||||
#endif // TREE_SITTER_WASM_STRING_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue