summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-09-25 21:21:00 -0700
committerGitHub <noreply@github.com>2024-09-26 00:21:00 -0400
commitbccb219ea3c8542c160706de70ad540f0822d091 (patch)
tree948291fe637864135f1272475f4e14da1e254bf6 /tools
parentf7a0117e7d12ed0358fa4eab26bc82a2e91ab7d9 (diff)
Fix typos found by codespell (#2229)
Diffstat (limited to 'tools')
-rw-r--r--tools/audio/soundfont_compiler.c2
-rw-r--r--tools/check_format.py2
-rwxr-xr-xtools/disasm/sym_info.py2
-rwxr-xr-xtools/namefixer.py4
-rwxr-xr-xtools/preprocess.sh2
5 files changed, 6 insertions, 6 deletions
diff --git a/tools/audio/soundfont_compiler.c b/tools/audio/soundfont_compiler.c
index efa326507..09a33a21f 100644
--- a/tools/audio/soundfont_compiler.c
+++ b/tools/audio/soundfont_compiler.c
@@ -929,7 +929,7 @@ emit_c_header(FILE *out, soundfont *sf)
}
/**
- * Convert the compression type as indicated in the AIFC to the correspoding SampleCodec enum value.
+ * Convert the compression type as indicated in the AIFC to the corresponding SampleCodec enum value.
* These must be kept in sync with the SampleCodec definition!
*/
static const char *
diff --git a/tools/check_format.py b/tools/check_format.py
index f6b23a228..18692cb6d 100644
--- a/tools/check_format.py
+++ b/tools/check_format.py
@@ -27,7 +27,7 @@ def get_modified_files_to_format(compare_to):
all_src_files, all_extra_files = format.list_files_to_format()
# Split modified_files between source files and extra files (see format.py)
- # This also filters out deleted files that no logner exist
+ # This also filters out deleted files that no longer exist
modified_src_files_existing = list(modified_files.intersection(all_src_files))
modified_extra_files_existing = list(modified_files.intersection(all_extra_files))
diff --git a/tools/disasm/sym_info.py b/tools/disasm/sym_info.py
index eb659a100..b6345ecd8 100755
--- a/tools/disasm/sym_info.py
+++ b/tools/disasm/sym_info.py
@@ -31,7 +31,7 @@ LABELS_TYPES = {"@branchlabel", "@jumptablelabel"}
def main():
parser = argparse.ArgumentParser(
- description="Print informations on a symbol/address"
+ description="Print information on a symbol/address"
" (and possibly surrounding symbols)"
" from the spimdisasm disassembly context saved in"
" expected/build/VERSION/context.csv"
diff --git a/tools/namefixer.py b/tools/namefixer.py
index 761146e77..0877e2893 100755
--- a/tools/namefixer.py
+++ b/tools/namefixer.py
@@ -111,7 +111,7 @@ simpleReplace = {
}
# all occurrences of keys will be replaced by associated value,
-# if the occurence is the whole word
+# if the occurrence is the whole word
# for example, if there is a space before and an open parenthesis after,
# like for a function call: ` func_8002E4B4(`
wordReplace = {
@@ -451,7 +451,7 @@ def replace_single(file):
custom_behavior_ignore_offset, custom_behavior_ignore_match = custom_behavior_ignore_data
else:
custom_behavior = False
- # replace `old` with `new` if the occurence of `old` is the whole word
+ # replace `old` with `new` if the occurrence of `old` is the whole word
oldStartIdx = srcdata.find(old)
if oldStartIdx >= 0:
old_start_as_word = is_word_char(old[0])
diff --git a/tools/preprocess.sh b/tools/preprocess.sh
index e29c75172..34a5c4d0e 100755
--- a/tools/preprocess.sh
+++ b/tools/preprocess.sh
@@ -24,7 +24,7 @@ do
then
# flags before --
flags=("${@:1:$(($i - 1))}")
- # compile command, betwen -- and the input source file
+ # compile command, between -- and the input source file
compilecmd="${@:$(($i + 1)):$((${#@} - $i - 1))}"
# The last argument, the input source file to be compiled
srcfile="${@: -1}"