Browse Source
Fix calls to wasmtime_wat2wasm to remove engine argument.
pull/1411/head
Peter Huene
5 years ago
No known key found for this signature in database
GPG Key ID: E1D265D820213D6A
5 changed files with
5 additions and
5 deletions
-
examples/gcd.c
-
examples/hello.c
-
examples/linking.c
-
examples/memory.c
-
examples/multi.c
|
|
@ -52,7 +52,7 @@ int main() { |
|
|
|
|
|
|
|
// Parse the wat into the binary wasm format
|
|
|
|
wasm_byte_vec_t wasm, error; |
|
|
|
if (wasmtime_wat2wasm(engine, &wat, &wasm, &error) == 0) { |
|
|
|
if (wasmtime_wat2wasm(&wat, &wasm, &error) == 0) { |
|
|
|
fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); |
|
|
|
goto free_store; |
|
|
|
} |
|
|
|
|
|
@ -59,7 +59,7 @@ int main() { |
|
|
|
|
|
|
|
// Parse the wat into the binary wasm format
|
|
|
|
wasm_byte_vec_t wasm, error; |
|
|
|
if (wasmtime_wat2wasm(engine, &wat, &wasm, &error) == 0) { |
|
|
|
if (wasmtime_wat2wasm(&wat, &wasm, &error) == 0) { |
|
|
|
fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); |
|
|
|
goto free_store; |
|
|
|
} |
|
|
|
|
|
@ -147,7 +147,7 @@ static void read_wat_file( |
|
|
|
|
|
|
|
// Parse the wat into the binary wasm format
|
|
|
|
wasm_byte_vec_t error; |
|
|
|
if (wasmtime_wat2wasm(engine, &wat, bytes, &error) == 0) { |
|
|
|
if (wasmtime_wat2wasm(&wat, bytes, &error) == 0) { |
|
|
|
fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); |
|
|
|
exit(1); |
|
|
|
} |
|
|
|
|
|
@ -141,7 +141,7 @@ int main(int argc, const char* argv[]) { |
|
|
|
|
|
|
|
// Parse the wat into the binary wasm format
|
|
|
|
wasm_byte_vec_t binary, error; |
|
|
|
if (wasmtime_wat2wasm(engine, &wat, &binary, &error) == 0) { |
|
|
|
if (wasmtime_wat2wasm(&wat, &binary, &error) == 0) { |
|
|
|
fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); |
|
|
|
return 1; |
|
|
|
} |
|
|
|
|
|
@ -84,7 +84,7 @@ int main(int argc, const char* argv[]) { |
|
|
|
|
|
|
|
// Parse the wat into the binary wasm format
|
|
|
|
wasm_byte_vec_t binary, error; |
|
|
|
if (wasmtime_wat2wasm(engine, &wat, &binary, &error) == 0) { |
|
|
|
if (wasmtime_wat2wasm(&wat, &binary, &error) == 0) { |
|
|
|
fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); |
|
|
|
return 1; |
|
|
|
} |
|
|
|