Fix some spelling issues (#3385)

Fix some of the spelling issues found by CSpell.
This commit is contained in:
Benbuck Nason
2024-05-05 16:56:48 -07:00
committed by GitHub
parent c0e33f08b0
commit ca61184ced
31 changed files with 102 additions and 99 deletions

View 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;

View File

@ -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 */

View File

@ -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 */