From bb716a2a6576cc06da811bf55e31e2f6f03b7596 Mon Sep 17 00:00:00 2001 From: JWWTSL <167396168+JWWTSL@users.noreply.github.com> Date: Tue, 20 Oct 2026 21:45:11 +0800 Subject: [PATCH] Fix typos in comments and documentation (#1072) Correct "adressing", "constains", "informations", "Aleady" and "interpretor". --- docs/USAGE.md | 2 +- rebuild_printer.py | 2 +- rebuild_wrappers.py | 6 +++--- src/elfs/elfloader.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/USAGE.md b/docs/USAGE.md index 9b237b32..7683176f 100755 --- a/docs/USAGE.md +++ b/docs/USAGE.md @@ -321,7 +321,7 @@ Will use yyyy as x86 bash to launch script. yyyy needs to be a full path to a va #### BOX86_BOX64 Define where to find box64 binary * yyyy -Will use yyyy as x86_64 interpretor, to launch x64_64 binaries +Will use yyyy as x86_64 interpreter, to launch x64_64 binaries #### BOX86_JITGDB * diff --git a/rebuild_printer.py b/rebuild_printer.py index a08b9aff..1be3a6b7 100755 --- a/rebuild_printer.py +++ b/rebuild_printer.py @@ -729,7 +729,7 @@ def main(root, ver, __debug_forceAllDebugging=False): variables["u"] = -1 # Unsigned shift - variables["w"] = -1 # wback (used in adressing) + variables["w"] = -1 # wback (used in addressing) variables["shift"] = False # Shift already detected? diff --git a/rebuild_wrappers.py b/rebuild_wrappers.py index ecf46344..1f2cfc28 100755 --- a/rebuild_wrappers.py +++ b/rebuild_wrappers.py @@ -74,7 +74,7 @@ For each of them: NOTE: Those structure letters are "fake types" that are accepted in the macros. `gbl` contains the first list, `redirects` the second and - `filespec` constains file specific informations (eg, structures, typedefs required...). + `filespec` contains file specific information (eg, structures, typedefs required...). After sorting the data, it generates: @@ -631,7 +631,7 @@ class Clauses: combinable[len(last_combined) - 1] = True add = (i | attempt[0], m | (i ^ attempt[0])) if add in combined: - continue # Aleady added + continue # Already added combined.append(add) last_combined.pop() last_combined = combined @@ -1151,7 +1151,7 @@ def generate_files(root: str, files: Iterable[str], ver: str, gbls: SortedGlobal for fhdr in files_header: files_guard[fhdr] = trim(files_guard[fhdr]) - # TODO: put the informations below in a structure (like in box64, where + # TODO: put the information below in a structure (like in box64, where # typedefs & co. are stored in an ABI-specific structure) return_x87: str = "DKdf" diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 36724331..18784b95 100755 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -1808,7 +1808,7 @@ static int my_dl_iterate_phdr_##A(struct dl_phdr_info* a, size_t b, void* c) { \ if(!a->dlpi_name) \ return 0; \ - if(!a->dlpi_name[0]) /*don't send informations about box86 itself*/ \ + if(!a->dlpi_name[0]) /*don't send information about box86 itself*/ \ return 0; \ return RunFunctionFmt(my_dl_iterate_phdr_fct_##A, "pLp", a, b, c); \ }