chore(runtime-c-api) Move .wasm files into the assets directory.

This commit is contained in:
Ivan Enderlin 2019-03-27 09:42:56 +01:00
parent c101498aa9
commit 5661540097
12 changed files with 11 additions and 11 deletions

View File

@ -6,7 +6,7 @@
int main()
{
// Read the wasm file bytes
FILE *file = fopen("sum.wasm", "r");
FILE *file = fopen("assets/sum.wasm", "r");
fseek(file, 0, SEEK_END);
long len = ftell(file);
uint8_t *bytes = malloc(len);

View File

@ -57,7 +57,7 @@ int main()
wasmer_import_t imports[] = {import};
// Read the wasm file bytes
FILE *file = fopen("wasm_sample_app.wasm", "r");
FILE *file = fopen("assets/wasm_sample_app.wasm", "r");
fseek(file, 0, SEEK_END);
long len = ftell(file);
uint8_t *bytes = malloc(len);

View File

@ -117,7 +117,7 @@ int main()
wasmer_import_t imports[] = {func_import, global_import, memory_import, table_import};
// Read the wasm file bytes
FILE *file = fopen("hello_wasm.wasm", "r");
FILE *file = fopen("assets/hello_wasm.wasm", "r");
fseek(file, 0, SEEK_END);
long len = ftell(file);
uint8_t *bytes = malloc(len);

View File

@ -7,7 +7,7 @@
int main()
{
// Read the wasm file bytes
FILE *file = fopen("sum.wasm", "r");
FILE *file = fopen("assets/sum.wasm", "r");
fseek(file, 0, SEEK_END);
long len = ftell(file);
uint8_t *bytes = malloc(len);

View File

@ -6,7 +6,7 @@
int main()
{
// Read the wasm file bytes
FILE *file = fopen("sum.wasm", "r");
FILE *file = fopen("assets/sum.wasm", "r");
fseek(file, 0, SEEK_END);
long len = ftell(file);
uint8_t *bytes = malloc(len);
@ -50,4 +50,4 @@ int main()
printf("Destroy exports\n");
wasmer_export_descriptors_destroy(exports);
return 0;
}
}

View File

@ -6,7 +6,7 @@
int main()
{
// Read the wasm file bytes
FILE *file = fopen("wasm_sample_app.wasm", "r");
FILE *file = fopen("assets/wasm_sample_app.wasm", "r");
fseek(file, 0, SEEK_END);
long len = ftell(file);
uint8_t *bytes = malloc(len);

View File

@ -6,7 +6,7 @@
int main()
{
// Read the wasm file bytes
FILE *file = fopen("sum.wasm", "r");
FILE *file = fopen("assets/sum.wasm", "r");
fseek(file, 0, SEEK_END);
long len = ftell(file);
uint8_t *bytes = malloc(len);

View File

@ -6,7 +6,7 @@
int main()
{
// Read the wasm file bytes
FILE *file = fopen("sum.wasm", "r");
FILE *file = fopen("assets/sum.wasm", "r");
fseek(file, 0, SEEK_END);
long len = ftell(file);
uint8_t *bytes = malloc(len);
@ -48,4 +48,4 @@ int main()
printf("Destroy module\n");
wasmer_module_destroy(module);
return 0;
}
}

View File

@ -6,7 +6,7 @@
int main()
{
// Read the wasm file bytes
FILE *file = fopen("sum.wasm", "r");
FILE *file = fopen("assets/sum.wasm", "r");
fseek(file, 0, SEEK_END);
long len = ftell(file);
uint8_t *bytes = malloc(len);