From 6b0910b89c85ad4508b556f4f74434f5e21491a8 Mon Sep 17 00:00:00 2001 From: Tian ShiLin Date: Tue, 20 Oct 2026 20:37:46 +0800 Subject: [PATCH] Fix typos in comments and documentation 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 9b237b32c..7683176f7 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 a08b9aff4..1be3a6b79 100755 --- a/rebuild_printer.py +++ b/rebuild_printer.py @@ -729,7 +729,7 @@ def add_custom_variables(): 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 ecf463442..1f2cfc288 100755 --- a/rebuild_wrappers.py +++ b/rebuild_wrappers.py @@ -74,7 +74,7 @@ def TypeVar(T): return object # type: ignore 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 @@ def reduce(self) -> None: 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 367243316..18784b95c 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); \ }