fix: correct typos and improve comments across multiple files by codespell (#4116)
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
@ -48,22 +48,22 @@ AoTFile::ParseTargetInfo()
|
||||
CHECK_RESULT(ReadT(&abi_type, this, "uint16_t"));
|
||||
target_info_.abi_type = abi_type;
|
||||
|
||||
// exectuion type
|
||||
// execution type
|
||||
uint16_t e_type = 0;
|
||||
CHECK_RESULT(ReadT(&e_type, this, "uint16_t"));
|
||||
target_info_.e_type = e_type;
|
||||
|
||||
// exectuion machine
|
||||
// execution machine
|
||||
uint16_t e_machine = 0;
|
||||
CHECK_RESULT(ReadT(&e_machine, this, "uint16_t"));
|
||||
target_info_.e_machine = e_machine;
|
||||
|
||||
// exectuion version
|
||||
// execution version
|
||||
uint32_t e_version = 0;
|
||||
CHECK_RESULT(ReadT(&e_version, this, "uint32_t"));
|
||||
target_info_.e_version = e_version;
|
||||
|
||||
// exectuion flags
|
||||
// execution flags
|
||||
uint32_t e_flags = 0;
|
||||
CHECK_RESULT(ReadT(&e_flags, this, "uint32_t"));
|
||||
target_info_.e_flags = e_flags;
|
||||
@ -165,7 +165,7 @@ AoTFile::GetExectuionTypeName(uint16_t e_type)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
name = "bad exectuion type";
|
||||
name = "bad execution type";
|
||||
}
|
||||
return name;
|
||||
}
|
||||
@ -251,7 +251,7 @@ AoTFile::GetExectuionMachineName(uint16_t e_machine)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
machine = "bad exectuion machine type";
|
||||
machine = "bad execution machine type";
|
||||
}
|
||||
return machine;
|
||||
}
|
||||
|
||||
@ -163,12 +163,12 @@ DumpInfo(AoTFile *aot)
|
||||
printf("Binary type: %s\n",
|
||||
aot->GetBinTypeName(target_info.bin_type).c_str());
|
||||
printf("ABI type: %d\n", target_info.abi_type);
|
||||
printf("Exectuion type: %s\n",
|
||||
printf("Execution type: %s\n",
|
||||
aot->GetExectuionTypeName(target_info.e_type).c_str());
|
||||
printf("Exectuion machine: %s\n",
|
||||
printf("Execution machine: %s\n",
|
||||
aot->GetExectuionMachineName(target_info.e_machine).c_str());
|
||||
printf("Exectuion version: %u\n", target_info.e_version);
|
||||
printf("Exectuion flags: %u\n", target_info.e_flags);
|
||||
printf("Execution version: %u\n", target_info.e_version);
|
||||
printf("Execution flags: %u\n", target_info.e_flags);
|
||||
printf("Feature flags: %" PRId64 "\n", target_info.feature_flags);
|
||||
printf("Reserved: %" PRId64 "\n", target_info.reserved);
|
||||
printf("Arch: %s\n", target_info.arch);
|
||||
@ -546,7 +546,7 @@ ProgramMain(int argc, char **argv)
|
||||
reader = new WasmFile(filename);
|
||||
}
|
||||
else {
|
||||
printf("unkown file extension: %s\n", dot);
|
||||
printf("unknown file extension: %s\n", dot);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ def create_custom_section_aligned(
|
||||
full_content_bin = b""
|
||||
pos = start_pos
|
||||
|
||||
# custome section id 0
|
||||
# custom section id 0
|
||||
pos, full_content_bin = build_content(full_content_bin, pos, b"\x00")
|
||||
|
||||
# custom section length
|
||||
|
||||
@ -70,7 +70,7 @@ gdbserver hostip:port ./iwasm test.aot
|
||||
#### Local remote debugging
|
||||
|
||||
```bash
|
||||
expport OBJ_PATH=~/aot_debug
|
||||
export OBJ_PATH=~/aot_debug
|
||||
cd ~/aot_debug # This directory contains iwasm, test.c, test obj file and dynamic_aot_debug.py
|
||||
gdb ./iwasm
|
||||
(gdb) target remote hostip:port
|
||||
|
||||
@ -40,7 +40,7 @@ external_repos = {
|
||||
}
|
||||
}
|
||||
|
||||
# TOOD: can we use headers from wasi-libc and clang directly ?
|
||||
# TODO: can we use headers from wasi-libc and clang directly ?
|
||||
emscripten_headers_src_dst = [
|
||||
("include/compat/emmintrin.h", "sse/emmintrin.h"),
|
||||
("include/compat/immintrin.h", "sse/immintrin.h"),
|
||||
@ -159,7 +159,7 @@ def download_repo(name, root):
|
||||
download_flag.touch()
|
||||
|
||||
# leave download files in /tmp
|
||||
logger.info(f"Has downloaed and stored in {store_dir.relative_to(root)}")
|
||||
logger.info(f"Has downloaded and stored in {store_dir.relative_to(root)}")
|
||||
return True
|
||||
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# setup docker command exectuion without sudo permission
|
||||
# setup docker command execution without sudo permission
|
||||
sudo groupadd docker
|
||||
sudo gpasswd -a ${USER} docker
|
||||
sudo service docker restart
|
||||
|
||||
@ -170,9 +170,9 @@ def obj_summary(valobj, unavailable='{...}'):
|
||||
return unavailable
|
||||
|
||||
|
||||
def sequence_summary(childern, maxsize=32):
|
||||
def sequence_summary(children, maxsize=32):
|
||||
s = ''
|
||||
for child in childern:
|
||||
for child in children:
|
||||
if len(s) > 0:
|
||||
s += ', '
|
||||
s += obj_summary(child)
|
||||
|
||||
@ -12,7 +12,7 @@ IF %ERRORLEVEL% GTR 0 (
|
||||
|
||||
call docker images>nul 2>nul
|
||||
IF %ERRORLEVEL% GTR 0 (
|
||||
echo "Docker is not ready, please lanuch docker desktop firstly."
|
||||
echo "Docker is not ready, please launch docker desktop firstly."
|
||||
echo
|
||||
exit /b 2
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user