1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
Description: Correct various spelling error in sources
This patch correct spelling error detected by spellintian
in the binary files.
Author: Philippe Thierry
Forwarded: https://github.com/endrazine/wcc/issues/51
Last-Update: 2025-10-07
Index: wcc/src/wcc/wcc.c
===================================================================
--- wcc.orig/src/wcc/wcc.c
+++ wcc/src/wcc/wcc.c
@@ -1235,7 +1235,7 @@ static unsigned int write_phdrs(ctx_t *
ctx->phnum += 2;
if (ctx->opt_verbose) {
- printf(" -- Writting %u segment headers\n", ctx->phnum);
+ printf(" -- Writing %u segment headers\n", ctx->phnum);
}
// first entry is the program header itself
Elf_Phdr *phdr = calloc(1, sizeof(Elf_Phdr));
Index: wcc/src/wsh/include/libwitch/wsh_help.h
===================================================================
--- wcc.orig/src/wsh/include/libwitch/wsh_help.h
+++ wcc/src/wsh/include/libwitch/wsh_help.h
@@ -56,7 +56,7 @@ help_t cmdhelp[] ={
* Internal help : wsh functions
*/
help_t fcnhelp[] ={
- {"help", "[topic]","Display help on [topic]. If [topic] is ommitted, display general help.", "", "None"},
+ {"help", "[topic]","Display help on [topic]. If [topic] is omitted, display general help.", "", "None"},
{"man", "[page]", "Display system manual page for [page].", "", "None"},
{"hexdump", "<address>, <num>", "Display <num> bytes from memory <address> in enhanced hexadecimal form.", "", "None"},
{"hex", "<object>", "Display lua <object> in enhanced hexadecimal form.", "", "None"},
@@ -68,7 +68,7 @@ help_t fcnhelp[] ={
{"symbols", "[sympattern], [libpattern], [mode]", "Display all the symbols in memory matching [sympattern], from library [libpattern]. If [mode] is set to 1 or 2, do not wait user input between pagers. [mode] = 2 provides a shorter output.", "", "None"},
{"functions","[sympattern], [libpattern], [mode]", "Display all the functions in memory matching [sympattern], from library [libpattern]. If [mode] is set to 1 or 2, do not wait user input between pagers. [mode] = 2 provides a shorter output.", "table func = ", "Return 1 lua table _func_ whose keys are valid function names in address space, and values are pointers to them in memory."},
{"objects","[pattern]", "Display all the functions in memory matching [sympattern]", "", "None"},
- {"info", "[address] | [name]", "Display various informations about the [address] or [name] provided : if it is mapped, and if so from which library and in which section if available.", "", "None"},
+ {"info", "[address] | [name]", "Display various information about the [address] or [name] provided : if it is mapped, and if so from which library and in which section if available.", "", "None"},
{"search", "<pattern>", "Search all object names matching <pattern> in address space.", "", "None"},
{"headers", "", "Display C headers suitable for linking against the API loaded in address space.", "", "None"},
{"grep", "<pattern>, [patternlen], [dumplen], [before]","Search <pattern> in all ELF sections in memory. Match [patternlen] bytes, then display [dumplen] bytes, optionally including [before] bytes before the match. Results are displayed in enhanced decimal form", "table match = ", "Returns 1 lua table containing matching memory addresses."},
Index: wcc/src/wsh/wsh.c
===================================================================
--- wcc.orig/src/wsh/wsh.c
+++ wcc/src/wsh/wsh.c
@@ -556,7 +556,7 @@ int help(lua_State * L)
printf(" + memory maps:\n\tshdrs(), phdrs(), map(), procmap(), bfmap()\n\n");
printf(" + symbols:\n\tsymbols(), functions(), objects(), info(), search(), headers()\n\n");
printf(" + memory search:\n\tgrep(), grepptr()\n\n");
- printf(" + load libaries:\n\tloadbin(), libs(), entrypoints(), rescan()\n\n");
+ printf(" + load libraries:\n\tloadbin(), libs(), entrypoints(), rescan()\n\n");
printf(" + code execution:\n\tlibcall()\n\n");
printf(" + buffer manipulation:\n\txalloc(), ralloc(), xfree(), balloc(), bset(), bget(), rdstr(), rdnum()\n\n");
printf(" + control flow:\n\t breakpoint(), bp()\n\n");
@@ -2083,7 +2083,7 @@ int prototypes(lua_State * L)
*/
HASH_SRT(hh, protorecords, sort_learnt);
- printf("\n [*] Prototypes: (from %u tag informations)\n", HASH_COUNT(protorecords));
+ printf("\n [*] Prototypes: (from %u tag information)\n", HASH_COUNT(protorecords));
HASH_ITER(hh, protorecords, l, p) {
if((!patternlib) || (strstr(l->key.tlib, patternlib))){
if((!pattern) || (!strncmp(pattern, l->key.tfunction, strlen(pattern)))){
|