Rename wasm C sources to avoid conflicts with standard wasm headers
Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
parent
b40a42ac0f
commit
dfc6d93bae
6 changed files with 4 additions and 13 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#include "./language.h"
|
||||
#include "./wasm.h"
|
||||
#include "./wasm_store.h"
|
||||
#include "tree_sitter/api.h"
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@
|
|||
#include "./subtree.c"
|
||||
#include "./tree_cursor.c"
|
||||
#include "./tree.c"
|
||||
#include "./wasm.c"
|
||||
#include "./wasm_store.c"
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
#include "./stack.h"
|
||||
#include "./subtree.h"
|
||||
#include "./tree.h"
|
||||
#include "./wasm.h"
|
||||
#include "./wasm_store.h"
|
||||
|
||||
#define LOG(...) \
|
||||
if (self->lexer.logger.log || self->dot_graph_file) { \
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
## WASM
|
||||
|
||||
The `wasm.h` header file contains a standard interface implemented by multiple WASM implementations. It was taken from here:
|
||||
|
||||
https://github.com/WebAssembly/wasm-c-api/blob/c9d31284651b975f05ac27cee0bab1377560b87e/include/wasm.h
|
||||
|
||||
The `wasmtime` headers were taken from here:
|
||||
|
||||
https://github.com/bytecodealliance/wasmtime/tree/main/crates/c-api/include/wasmtime
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
#include "./atomic.h"
|
||||
#include "./language.h"
|
||||
#include "./lexer.h"
|
||||
#include "./wasm.h"
|
||||
#include "./wasm_store.h"
|
||||
#include "./wasm/wasm-stdlib.h"
|
||||
|
||||
// The following symbols from the C and C++ standard libraries are available
|
||||
Loading…
Add table
Add a link
Reference in a new issue