Fix some spelling issues (#3385)
Fix some of the spelling issues found by CSpell.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
iwasm is the executable binary built with WAMR VMcore supports WASI and command line interface. Refer to [**how to build wamr vmcore**](../doc/build_wamr.md) for all the supported CMAKE compilation variables.
|
||||
|
||||
If you are building for ARM architecture on a X86 development machine, you can use the `CMAKE_TOOLCHAIN_FILE` to set the toolchain file for cross compling.
|
||||
If you are building for ARM architecture on a X86 development machine, you can use the `CMAKE_TOOLCHAIN_FILE` to set the toolchain file for cross compiling.
|
||||
|
||||
```
|
||||
cmake .. -DCMAKE_TOOLCHAIN_FILE=$TOOL_CHAIN_FILE \
|
||||
|
||||
@ -157,7 +157,7 @@ align_ptr(const uint8 *p, uint32 b)
|
||||
}
|
||||
|
||||
#define AOT_SECTION_TYPE_TARGET_INFO 0
|
||||
#define AOT_SECTION_TYPE_SIGANATURE 6
|
||||
#define AOT_SECTION_TYPE_SIGNATURE 6
|
||||
#define E_TYPE_XIP 4
|
||||
|
||||
#define CHECK_BUF(buf, buf_end, length) \
|
||||
@ -205,7 +205,7 @@ is_xip_file(const uint8 *buf, uint32 size)
|
||||
read_uint16(p, p_end, e_type);
|
||||
return (e_type == E_TYPE_XIP) ? true : false;
|
||||
}
|
||||
else if (section_type >= AOT_SECTION_TYPE_SIGANATURE) {
|
||||
else if (section_type >= AOT_SECTION_TYPE_SIGNATURE) {
|
||||
return false;
|
||||
}
|
||||
p += section_size;
|
||||
|
||||
@ -429,7 +429,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;
|
||||
@ -906,7 +906,8 @@ main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
#if WASM_ENABLE_MULTI_MODULE != 0
|
||||
wasm_runtime_set_module_reader(module_reader_callback, moudle_destroyer);
|
||||
wasm_runtime_set_module_reader(module_reader_callback,
|
||||
module_destroyer_callback);
|
||||
#endif
|
||||
|
||||
/* load WASM module */
|
||||
|
||||
@ -246,7 +246,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;
|
||||
@ -506,7 +506,8 @@ main(int argc, char *argv[])
|
||||
#endif
|
||||
|
||||
#if WASM_ENABLE_MULTI_MODULE != 0
|
||||
wasm_runtime_set_module_reader(module_reader_callback, moudle_destroyer);
|
||||
wasm_runtime_set_module_reader(module_reader_callback,
|
||||
module_destroyer_callback);
|
||||
#endif
|
||||
|
||||
/* load WASM module */
|
||||
|
||||
Reference in New Issue
Block a user