mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
chore(runtime-c-api) Move .wasm
files into the assets
directory.
This commit is contained in:
parent
c101498aa9
commit
5661540097
@ -6,7 +6,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Read the wasm file bytes
|
// Read the wasm file bytes
|
||||||
FILE *file = fopen("sum.wasm", "r");
|
FILE *file = fopen("assets/sum.wasm", "r");
|
||||||
fseek(file, 0, SEEK_END);
|
fseek(file, 0, SEEK_END);
|
||||||
long len = ftell(file);
|
long len = ftell(file);
|
||||||
uint8_t *bytes = malloc(len);
|
uint8_t *bytes = malloc(len);
|
||||||
|
@ -57,7 +57,7 @@ int main()
|
|||||||
wasmer_import_t imports[] = {import};
|
wasmer_import_t imports[] = {import};
|
||||||
|
|
||||||
// Read the wasm file bytes
|
// 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);
|
fseek(file, 0, SEEK_END);
|
||||||
long len = ftell(file);
|
long len = ftell(file);
|
||||||
uint8_t *bytes = malloc(len);
|
uint8_t *bytes = malloc(len);
|
||||||
|
@ -117,7 +117,7 @@ int main()
|
|||||||
wasmer_import_t imports[] = {func_import, global_import, memory_import, table_import};
|
wasmer_import_t imports[] = {func_import, global_import, memory_import, table_import};
|
||||||
|
|
||||||
// Read the wasm file bytes
|
// 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);
|
fseek(file, 0, SEEK_END);
|
||||||
long len = ftell(file);
|
long len = ftell(file);
|
||||||
uint8_t *bytes = malloc(len);
|
uint8_t *bytes = malloc(len);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Read the wasm file bytes
|
// Read the wasm file bytes
|
||||||
FILE *file = fopen("sum.wasm", "r");
|
FILE *file = fopen("assets/sum.wasm", "r");
|
||||||
fseek(file, 0, SEEK_END);
|
fseek(file, 0, SEEK_END);
|
||||||
long len = ftell(file);
|
long len = ftell(file);
|
||||||
uint8_t *bytes = malloc(len);
|
uint8_t *bytes = malloc(len);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Read the wasm file bytes
|
// Read the wasm file bytes
|
||||||
FILE *file = fopen("sum.wasm", "r");
|
FILE *file = fopen("assets/sum.wasm", "r");
|
||||||
fseek(file, 0, SEEK_END);
|
fseek(file, 0, SEEK_END);
|
||||||
long len = ftell(file);
|
long len = ftell(file);
|
||||||
uint8_t *bytes = malloc(len);
|
uint8_t *bytes = malloc(len);
|
||||||
@ -50,4 +50,4 @@ int main()
|
|||||||
printf("Destroy exports\n");
|
printf("Destroy exports\n");
|
||||||
wasmer_export_descriptors_destroy(exports);
|
wasmer_export_descriptors_destroy(exports);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Read the wasm file bytes
|
// 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);
|
fseek(file, 0, SEEK_END);
|
||||||
long len = ftell(file);
|
long len = ftell(file);
|
||||||
uint8_t *bytes = malloc(len);
|
uint8_t *bytes = malloc(len);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Read the wasm file bytes
|
// Read the wasm file bytes
|
||||||
FILE *file = fopen("sum.wasm", "r");
|
FILE *file = fopen("assets/sum.wasm", "r");
|
||||||
fseek(file, 0, SEEK_END);
|
fseek(file, 0, SEEK_END);
|
||||||
long len = ftell(file);
|
long len = ftell(file);
|
||||||
uint8_t *bytes = malloc(len);
|
uint8_t *bytes = malloc(len);
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Read the wasm file bytes
|
// Read the wasm file bytes
|
||||||
FILE *file = fopen("sum.wasm", "r");
|
FILE *file = fopen("assets/sum.wasm", "r");
|
||||||
fseek(file, 0, SEEK_END);
|
fseek(file, 0, SEEK_END);
|
||||||
long len = ftell(file);
|
long len = ftell(file);
|
||||||
uint8_t *bytes = malloc(len);
|
uint8_t *bytes = malloc(len);
|
||||||
@ -48,4 +48,4 @@ int main()
|
|||||||
printf("Destroy module\n");
|
printf("Destroy module\n");
|
||||||
wasmer_module_destroy(module);
|
wasmer_module_destroy(module);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
// Read the wasm file bytes
|
// Read the wasm file bytes
|
||||||
FILE *file = fopen("sum.wasm", "r");
|
FILE *file = fopen("assets/sum.wasm", "r");
|
||||||
fseek(file, 0, SEEK_END);
|
fseek(file, 0, SEEK_END);
|
||||||
long len = ftell(file);
|
long len = ftell(file);
|
||||||
uint8_t *bytes = malloc(len);
|
uint8_t *bytes = malloc(len);
|
||||||
|
Loading…
Reference in New Issue
Block a user