Fix some spelling issues (#3385)
Fix some of the spelling issues found by CSpell.
This commit is contained in:
@ -38,7 +38,7 @@ module_reader_callback(package_type_t module_type, const char *module_name,
|
||||
}
|
||||
|
||||
static void
|
||||
moudle_destroyer(uint8 *buffer, uint32 size)
|
||||
module_destroyer_callback(uint8 *buffer, uint32 size)
|
||||
{
|
||||
if (!buffer) {
|
||||
return;
|
||||
@ -89,7 +89,8 @@ main(int argc, char *argv[])
|
||||
#if WASM_ENABLE_MULTI_MODULE != 0
|
||||
printf("- wasm_runtime_set_module_reader\n");
|
||||
/* set module reader and destroyer */
|
||||
wasm_runtime_set_module_reader(module_reader_callback, moudle_destroyer);
|
||||
wasm_runtime_set_module_reader(module_reader_callback,
|
||||
module_destroyer_callback);
|
||||
#endif
|
||||
|
||||
/* load WASM byte buffer from WASM bin file */
|
||||
@ -163,7 +164,7 @@ UNLOAD_MODULE:
|
||||
printf("- wasm_runtime_unload\n");
|
||||
wasm_runtime_unload(module);
|
||||
RELEASE_BINARY:
|
||||
moudle_destroyer(file_buf, file_buf_size);
|
||||
module_destroyer_callback(file_buf, file_buf_size);
|
||||
RELEASE_RUNTIME:
|
||||
printf("- wasm_runtime_destroy\n");
|
||||
wasm_runtime_destroy();
|
||||
|
||||
@ -181,13 +181,13 @@ vm_clone_from_instance(const wasm_vm_t *base)
|
||||
{
|
||||
/**
|
||||
* if do a clone of the level instantiated_module, need to malloc and
|
||||
* initialie
|
||||
* - global. WASMGlobalIntance and global data
|
||||
* - memory. WAAMMemoryInstance, memory_data and heap
|
||||
* initialize
|
||||
* - global. WASMGlobalInstance and global data
|
||||
* - memory. WASMMemoryInstance, memory_data and heap
|
||||
* - table. WASMTableInstance, table_data
|
||||
* - exports. all global, memory and table
|
||||
*
|
||||
* it is almost everything in wasm_instantiate() except funciton.
|
||||
* it is almost everything in wasm_instantiate() except function.
|
||||
*/
|
||||
(void)base;
|
||||
printf("Unsupported\n");
|
||||
|
||||
Reference in New Issue
Block a user