Skip to content

Commit 412631a

Browse files
authored
fix: correct typos and improve comments across multiple files by codespell (#4116)
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
1 parent 73998e4 commit 412631a

File tree

108 files changed

+215
-215
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+215
-215
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Code changes
1919
We Use Github Flow, So All Code Changes Happen Through Pull Requests. Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
2020

2121
- If you've added code that should be tested, add tests. Ensure the test suite passes.
22-
- Avoid use macros for different platforms. Use seperate folder of source files to host diffeent platform logic.
22+
- Avoid use macros for different platforms. Use separate folder of source files to host different platform logic.
2323
- Put macro definitions inside share_lib/include/config.h if you have to use macro.
2424
- Make sure your code lints and compliant to our coding style.
2525
- Extend the application library is highly welcome.

build-scripts/runtime_lib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (NOT DEFINED DEPS_DIR)
1414
set (DEPS_DIR ${WAMR_ROOT_DIR}/core/deps)
1515
endif ()
1616
if (NOT DEFINED SHARED_PLATFORM_CONFIG)
17-
# CMake file for platform configuration. The PLATFORM_SHARED_SOURCE varable
17+
# CMake file for platform configuration. The PLATFORM_SHARED_SOURCE variable
1818
# should point to a list of platform-specfic source files to compile.
1919
set (SHARED_PLATFORM_CONFIG ${SHARED_DIR}/platform/${WAMR_BUILD_PLATFORM}/shared_platform.cmake)
2020
endif ()

core/iwasm/aot/aot_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ load_types(const uint8 **p_buf, const uint8 *buf_end, AOTModule *module,
17151715
read_uint16(buf, buf_end, type_flag);
17161716

17171717
read_uint8(buf, buf_end, is_equivalence_type);
1718-
/* If there is an equivalence type, re-use it */
1718+
/* If there is an equivalence type, reuse it */
17191719
if (is_equivalence_type) {
17201720
uint8 u8;
17211721
/* padding */

core/iwasm/aot/arch/aot_reloc_xtensa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ check_reloc_offset(uint32 target_section_size, uint64 reloc_offset,
154154
* CPU like esp32 can read and write data through the instruction bus, but only
155155
* in a word aligned manner; non-word-aligned access will cause a CPU exception.
156156
* This function uses a world aligned manner to write 16bit value to instruction
157-
* addreess.
157+
* address.
158158
*/
159159
static void
160160
put_imm16_to_addr(int16 imm16, int16 *addr)

core/iwasm/common/arch/invokeNative_aarch64.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ _invokeNative:
4545

4646
/* Now x20 points to stack args */
4747

48-
/* Directly call the fucntion if no args in stack */
48+
/* Directly call the function if no args in stack */
4949
cmp x21, #0
5050
beq call_func
5151

@@ -69,7 +69,7 @@ loop_stack_args: /* copy stack arguments to stack */
6969
call_func:
7070
mov x20, x30 /* save x30(lr) */
7171
blr x19
72-
mov sp, x22 /* restore sp which is saved before calling fuction*/
72+
mov sp, x22 /* restore sp which is saved before calling function*/
7373

7474
return:
7575
mov x30, x20 /* restore x30(lr) */

core/iwasm/common/arch/invokeNative_aarch64_simd.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ _invokeNative:
4343

4444
/* Now x20 points to stack args */
4545

46-
/* Directly call the fucntion if no args in stack */
46+
/* Directly call the function if no args in stack */
4747
cmp x21, #0
4848
beq call_func
4949

@@ -67,7 +67,7 @@ loop_stack_args: /* copy stack arguments to stack */
6767
call_func:
6868
mov x20, x30 /* save x30(lr) */
6969
blr x19
70-
mov sp, x22 /* restore sp which is saved before calling fuction*/
70+
mov sp, x22 /* restore sp which is saved before calling function*/
7171

7272
return:
7373
mov x30, x20 /* restore x30(lr) */

core/iwasm/common/arch/invokeNative_arm_vfp.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ _invokeNative:
5353
vldr s13, [r4, #52]
5454
vldr s14, [r4, #56]
5555
vldr s15, [r4, #60]
56-
/* Directly call the fucntion if no args in stack */
56+
/* Directly call the function if no args in stack */
5757
cmp r5, #0
5858
beq call_func
5959

core/iwasm/common/arch/invokeNative_riscv.S

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/*
7-
* The float abi macros used bellow are from risc-v c api:
7+
* The float abi macros used below are from risc-v c api:
88
* https://github.com/riscv/riscv-c-api-doc/blob/master/riscv-c-api.md
99
*
1010
*/
@@ -130,7 +130,7 @@ _invokeNative:
130130
loop_stack_args:
131131
beq t2, x0, call_func
132132
RV_OP_LOADREG t5, 0(t1) /* load stack argument, t5 = argv[i] */
133-
RV_OP_STOREREG t5, 0(t4) /* store t5 to reseved stack, sp[j] = t5 */
133+
RV_OP_STOREREG t5, 0(t4) /* store t5 to reserved stack, sp[j] = t5 */
134134
addi t1, t1, RV_REG_SIZE /* move to next stack argument */
135135
addi t4, t4, RV_REG_SIZE /* move to next stack pointer */
136136
addi t2, t2, -1 /* decrease t2 every loop, nstacks = nstacks -1 */
@@ -142,7 +142,7 @@ call_func:
142142
/* restore registers pushed in stack or saved in another register */
143143
return:
144144
mv sp, fp /* restore sp saved in fp before function call */
145-
RV_OP_LOADREG fp, 0 * RV_REG_SIZE(sp) /* load previous frame poniter to fp register */
145+
RV_OP_LOADREG fp, 0 * RV_REG_SIZE(sp) /* load previous frame pointer to fp register */
146146
RV_OP_LOADREG ra, 1 * RV_REG_SIZE(sp) /* load previous return address to ra register */
147147
addi sp, sp, 2 * RV_REG_SIZE /* pop frame, restore sp */
148148
jr ra

core/iwasm/common/arch/invokeNative_thumb_vfp.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ _invokeNative:
5555
vldr s13, [r4, #52]
5656
vldr s14, [r4, #56]
5757
vldr s15, [r4, #60]
58-
/* Directly call the fucntion if no args in stack */
58+
/* Directly call the function if no args in stack */
5959
cmp r5, #0
6060
beq call_func
6161

core/iwasm/common/wasm_application.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ execute_main(WASMModuleInstanceCommon *module_inst, int32 argc, char *argv[])
118118

119119
#if WASM_ENABLE_LIBC_WASI != 0
120120
/* In wasi mode, we should call the function named "_start"
121-
which initializes the wasi envrionment and then calls
121+
which initializes the wasi environment and then calls
122122
the actual main function. Directly calling main function
123123
may cause exception thrown. */
124124
if ((func = wasm_runtime_lookup_wasi_start_function(module_inst))) {

0 commit comments

Comments
 (0)