diff --git a/ape/ape.S b/ape/ape.S index 66bb1b030..8103abbde 100644 --- a/ape/ape.S +++ b/ape/ape.S @@ -51,7 +51,7 @@ .previous .section .rodata,"a",@progbits .align __SIZEOF_POINTER__ -__ro: .endobj __ro,globl,hidden # ←for gdb readibility +__ro: .endobj __ro,globl,hidden # ←for gdb readability .previous .section .data,"aw",@progbits .align __SIZEOF_POINTER__ @@ -60,7 +60,7 @@ __ro: .endobj __ro,globl,hidden # ←for gdb readibility .align __SIZEOF_POINTER__ .previous .section .rodata.str1.1,"a",@progbits -cstr: .endobj cstr,globl,hidden # ←for gdb readibility +cstr: .endobj cstr,globl,hidden # ←for gdb readability .previous .section .head,"ax",@progbits diff --git a/ape/loader.c b/ape/loader.c index e5354eb09..fa5f85e77 100644 --- a/ape/loader.c +++ b/ape/loader.c @@ -562,11 +562,11 @@ __attribute__((__noreturn__)) static void Spawn(int os, const char *exe, int fd, "xor\t%%r9d,%%r9d\n\t" "xor\t%%r10d,%%r10d\n\t" "xor\t%%r11d,%%r11d\n\t" - "xor\t%%ebx,%%ebx\n\t" // netbsd dosen't clear this - "xor\t%%r12d,%%r12d\n\t" // netbsd dosen't clear this - "xor\t%%r13d,%%r13d\n\t" // netbsd dosen't clear this - "xor\t%%r14d,%%r14d\n\t" // netbsd dosen't clear this - "xor\t%%r15d,%%r15d\n\t" // netbsd dosen't clear this + "xor\t%%ebx,%%ebx\n\t" // netbsd doesnt't clear this + "xor\t%%r12d,%%r12d\n\t" // netbsd doesnt't clear this + "xor\t%%r13d,%%r13d\n\t" // netbsd doesnt't clear this + "xor\t%%r14d,%%r14d\n\t" // netbsd doesnt't clear this + "xor\t%%r15d,%%r15d\n\t" // netbsd doesnt't clear this "mov\t%%rdx,%%rsp\n\t" "xor\t%%edx,%%edx\n\t" "push\t%%rsi\n\t" diff --git a/dsp/mpeg/plm.c b/dsp/mpeg/plm.c index 2745f63f8..e41f9dd48 100644 --- a/dsp/mpeg/plm.c +++ b/dsp/mpeg/plm.c @@ -96,7 +96,7 @@ plm_t *plm_create_with_buffer(plm_buffer_t *buffer, int destroy_when_done) { // In theory we should check plm_demux_get_num_video_streams() and // plm_demux_get_num_audio_streams() here, but older files typically - // do not specify these correcly. So we just assume we have a video and + // do not specify these correctly. So we just assume we have a video and // audio stream and create the decoders. self->video_packet_type = PLM_DEMUX_PACKET_VIDEO_1; diff --git a/dsp/mpeg/slowrgb.c b/dsp/mpeg/slowrgb.c index b765295aa..74517cf28 100644 --- a/dsp/mpeg/slowrgb.c +++ b/dsp/mpeg/slowrgb.c @@ -40,7 +40,7 @@ asm(".include \"libc/disclaimer.inc\""); * @see YCbCr2RGB() in tool/viz/lib/ycbcr2rgb.c */ void plm_frame_to_rgb(plm_frame_t *frame, uint8_t *rgb) { - // Chroma values are the same for each block of 4 pixels, so we proccess + // Chroma values are the same for each block of 4 pixels, so we process // 2 lines at a time, 2 neighboring pixels each. int w = frame->y.width, w2 = w >> 1; int y_index1 = 0, y_index2 = w, y_next_2_lines = w + (w - frame->width); diff --git a/examples/auto-launch-gdb-on-crash.c b/examples/auto-launch-gdb-on-crash.c index 56c5d86c7..c982b888e 100644 --- a/examples/auto-launch-gdb-on-crash.c +++ b/examples/auto-launch-gdb-on-crash.c @@ -10,7 +10,7 @@ #include "libc/log/log.h" /** - * Automatically launchs GDB Debugger TUI during crash. + * Automatically launches GDB Debugger TUI during crash. * * Run the following inside a terminal: * diff --git a/examples/crashreport2.c b/examples/crashreport2.c index fab1424fd..e2eaccf1b 100644 --- a/examples/crashreport2.c +++ b/examples/crashreport2.c @@ -23,7 +23,7 @@ * * On supported platforms, this will cause GDB to automatically attach. * The nice thing about this, is you can start stepping through your - * code at the precice instruction where the interrupt happened. See + * code at the precise instruction where the interrupt happened. See * `libc/log/attachdebugger.c` to see how it works. * * If you wish to suppress the auto-GDB behavior, then: diff --git a/examples/kilo.c b/examples/kilo.c index c6508e857..99486d498 100644 --- a/examples/kilo.c +++ b/examples/kilo.c @@ -539,7 +539,7 @@ void editorUpdateSyntax(erow *row) { i++; } - /* Propagate syntax change to the next row if the open commen + /* Propagate syntax change to the next row if the open comment * state changed. This may recursively affect all the following rows * in the file. */ int oc = editorRowHasOpenComment(row); @@ -745,7 +745,7 @@ void editorInsertChar(int c) { erow *row = (filerow >= E.numrows) ? NULL : &E.row[filerow]; /* If the row where the cursor is currently located does not exist in our - * logical representaion of the file, add enough empty rows as needed. */ + * logical representation of the file, add enough empty rows as needed. */ if (!row) { while (E.numrows <= filerow) editorInsertRow(E.numrows, "", 0); } @@ -920,7 +920,7 @@ void editorRefreshScreen(void) { char welcome[80]; int welcomelen = snprintf(welcome, sizeof(welcome), - "Kilo editor -- verison %s\e[0K\r\n", KILO_VERSION); + "Kilo editor -- version %s\e[0K\r\n", KILO_VERSION); int padding = (E.screencols - welcomelen) / 2; if (padding) { abAppend(&ab, "~", 1); diff --git a/examples/package/lib/build.mk b/examples/package/lib/build.mk index 463c72dc4..32b74fd40 100644 --- a/examples/package/lib/build.mk +++ b/examples/package/lib/build.mk @@ -41,7 +41,7 @@ EXAMPLES_PACKAGE_LIB_A = o/$(MODE)/examples/package/lib/lib.a EXAMPLES_PACKAGE_LIB_ARTIFACTS += EXAMPLES_PACKAGE_LIB_A # Build configs might seem somewhat complicated. Rest assured they're -# mostly maintainence free. That's largely thanks to how we wildcard. +# mostly maintenance free. That's largely thanks to how we wildcard. EXAMPLES_PACKAGE_LIB_A_FILES := $(wildcard examples/package/lib/*) EXAMPLES_PACKAGE_LIB_A_HDRS = $(filter %.h,$(EXAMPLES_PACKAGE_LIB_A_FILES)) diff --git a/examples/unbourne.c b/examples/unbourne.c index 2f2bcd520..5a8f5c270 100644 --- a/examples/unbourne.c +++ b/examples/unbourne.c @@ -676,7 +676,7 @@ struct redirtab { * We enclose jmp_buf in a structure so that we can declare pointers to * jump locations. The global variable handler contains the location to * jump to when an exception occurs, and the global variable exception - * contains a code identifying the exeception. To implement nested + * contains a code identifying the exception. To implement nested * exception handlers, the user should save the value of handler on * entry to an inner scope, set handler to point to a jmploc structure * for the inner scope, and restore handler on exit from the scope. @@ -1953,7 +1953,7 @@ wontreturn static void varunset(const char *end, const char *var_, const char *u } /* - * Convert a string into an integer of type int64. Alow trailing spaces. + * Convert a string into an integer of type int64. Allow trailing spaces. */ static int64_t atomax(const char *s, int base) { char *p; @@ -6653,7 +6653,7 @@ static struct job *vforkexec(union node *n, char **argv, const char *path, int i * the interactive program catches interrupts, the user doesn't want * these interrupts to also abort the loop. The approach we take here * is to have the shell ignore interrupt signals while waiting for a - * forground process to terminate, and then send itself an interrupt + * foreground process to terminate, and then send itself an interrupt * signal if the child process was terminated by an interrupt signal. * Unfortunately, some programs want to do a bit of cleanup and then * exit on interrupt; unless these processes terminate themselves by diff --git a/libc/alg/arraylist.internal.h b/libc/alg/arraylist.internal.h index 41e741775..c5cb4b80c 100644 --- a/libc/alg/arraylist.internal.h +++ b/libc/alg/arraylist.internal.h @@ -5,7 +5,7 @@ #include "libc/str/str.h" #if !(__ASSEMBLER__ + __LINKER__ + 0) -/* TOOD(jart): DELETE */ +/* TODO(jart): DELETE */ #define append(ARRAYLIST, ITEM) concat((ARRAYLIST), (ITEM), 1) diff --git a/libc/calls/ioctl_siocgifconf-nt.c b/libc/calls/ioctl_siocgifconf-nt.c index db75446c4..ea15019cc 100644 --- a/libc/calls/ioctl_siocgifconf-nt.c +++ b/libc/calls/ioctl_siocgifconf-nt.c @@ -261,7 +261,7 @@ static int createHostInfo(struct NtIpAdapterAddresses *firstAdapter) { continue; } - /* Use max IFNAMSIZ-1 chars, leave the last char for eventual conficts */ + /* Use max IFNAMSIZ-1 chars, leave the last char for eventual conflicts */ tprecode16to8(baseName, IFNAMSIZ - 1, aa->FriendlyName); baseName[IFNAMSIZ - 2] = '\0'; /* Replace any space with a '_' */ diff --git a/libc/calls/readlinkat.c b/libc/calls/readlinkat.c index 58a1a118e..05484c370 100644 --- a/libc/calls/readlinkat.c +++ b/libc/calls/readlinkat.c @@ -50,7 +50,7 @@ ssize_t readlinkat(int dirfd, const char *path, char *buf, size_t bufsiz) { bytes = efault(); } else if (weaken(__zipos_notat) && (bytes = __zipos_notat(dirfd, path)) == -1) { - STRACE("TOOD: zipos support for readlinkat"); + STRACE("TODO: zipos support for readlinkat"); } else if (!IsWindows()) { assert(bufsiz); bytes = sys_readlinkat(dirfd, path, buf, bufsiz); diff --git a/libc/log/gdbexec.c b/libc/log/gdbexec.c index 13a345c9c..13b03250c 100644 --- a/libc/log/gdbexec.c +++ b/libc/log/gdbexec.c @@ -26,7 +26,7 @@ #include "libc/runtime/symbols.internal.h" /** - * Attachs GDB temporarilly, to do something like print a variable. + * Attaches GDB temporarily, to do something like print a variable. */ privileged int(gdbexec)(const char *cmd) { struct StackFrame *bp; diff --git a/libc/log/getcallername.c b/libc/log/getcallername.c index cfdb1bf83..18197a372 100644 --- a/libc/log/getcallername.c +++ b/libc/log/getcallername.c @@ -21,7 +21,7 @@ #include "libc/runtime/symbols.internal.h" /** - * Returns name of funciton that called caller function. + * Returns name of function that called caller function. */ const char *GetCallerName(const struct StackFrame *bp) { struct SymbolTable *st; diff --git a/libc/mem/free.S b/libc/mem/free.S index 35a7cc937..d5eef70c4 100644 --- a/libc/mem/free.S +++ b/libc/mem/free.S @@ -23,7 +23,7 @@ // Releases the chunk of memory pointed to by p, that had been // previously allocated using malloc or a related routine such as // realloc. It has no effect if p is null. If p was not malloced or -// already freed, free(p) will by default cuase the current program to +// already freed, free(p) will by default cause the current program to // abort. // // @param rdi is allocation address, which may be NULL diff --git a/libc/runtime/efimain.greg.c b/libc/runtime/efimain.greg.c index e6ac87bc3..5455f4da9 100644 --- a/libc/runtime/efimain.greg.c +++ b/libc/runtime/efimain.greg.c @@ -27,8 +27,8 @@ #include "libc/runtime/runtime.h" #include "libc/str/str.h" -/* TOOD: Why can't we change CR3? Could it really need PML5T? */ -/* TOOD: Why does QEMU in UEFI mode take ten seconds to boot? */ +/* TODO: Why can't we change CR3? Could it really need PML5T? */ +/* TODO: Why does QEMU in UEFI mode take ten seconds to boot? */ struct EfiArgs { char *Args[0x400 / sizeof(char *)]; diff --git a/third_party/finger/util.c b/third_party/finger/util.c index b931e7f8a..75cc302a0 100644 --- a/third_party/finger/util.c +++ b/third_party/finger/util.c @@ -258,7 +258,7 @@ void enter_lastlog(PERSON *pn) { /* * and if it's not any of the current logins * can't use time comparison because there may be a small - * discrepency since login calls time() twice + * discrepancy since login calls time() twice */ for (w = pn->whead; doit && w != NULL; w = w->next) if (w->info == LOGGEDIN && diff --git a/third_party/python/Lib/test/test_subprocess.py b/third_party/python/Lib/test/test_subprocess.py index 19b41bce5..0278e6129 100644 --- a/third_party/python/Lib/test/test_subprocess.py +++ b/third_party/python/Lib/test/test_subprocess.py @@ -666,25 +666,25 @@ class ProcessTestCase(BaseTestCase): subprocess.Popen([sys.executable, "-c", "pass#\0"]) def test_invalid_env(self): - # null character in the enviroment variable name + # null character in the environment variable name newenv = os.environ.copy() newenv["FRUIT\0VEGETABLE"] = "cabbage" with self.assertRaises(ValueError): subprocess.Popen([sys.executable, "-c", "pass"], env=newenv) - # null character in the enviroment variable value + # null character in the environment variable value newenv = os.environ.copy() newenv["FRUIT"] = "orange\0VEGETABLE=cabbage" with self.assertRaises(ValueError): subprocess.Popen([sys.executable, "-c", "pass"], env=newenv) - # equal character in the enviroment variable name + # equal character in the environment variable name newenv = os.environ.copy() newenv["FRUIT=ORANGE"] = "lemon" with self.assertRaises(ValueError): subprocess.Popen([sys.executable, "-c", "pass"], env=newenv) - # equal character in the enviroment variable value + # equal character in the environment variable value newenv = os.environ.copy() newenv["FRUIT"] = "orange=lemon" with subprocess.Popen([sys.executable, "-c", diff --git a/third_party/python/Lib/test/test_sys.py b/third_party/python/Lib/test/test_sys.py index 7952e546d..9dc393792 100644 --- a/third_party/python/Lib/test/test_sys.py +++ b/third_party/python/Lib/test/test_sys.py @@ -409,7 +409,7 @@ class SysModuleTest(unittest.TestCase): self.assertTrue(frame is sys._getframe()) # Verify that the captured thread frame is blocked in g456, called - # from f123. This is a litte tricky, since various bits of + # from f123. This is a little tricky, since various bits of # threading.py are also in the thread's call stack. frame = d.pop(thread_id) stack = traceback.extract_stack(frame) diff --git a/third_party/quickjs/bigdecimal.c b/third_party/quickjs/bigdecimal.c index 7f6c68b4d..2c9498f03 100644 --- a/third_party/quickjs/bigdecimal.c +++ b/third_party/quickjs/bigdecimal.c @@ -669,8 +669,8 @@ static int js_binary_arith_bigdecimal(JSContext *ctx, OPCodeEnum op, ret = bfdec_div(r, a, b, BF_PREC_INF, BF_RNDZ); break; case OP_math_mod: - /* Euclidian remainder */ - ret = bfdec_rem(r, a, b, BF_PREC_INF, BF_RNDZ, BF_DIVREM_EUCLIDIAN); + /* Euclidean remainder */ + ret = bfdec_rem(r, a, b, BF_PREC_INF, BF_RNDZ, BF_DIVREM_EUCLIDEAN); break; case OP_mod: ret = bfdec_rem(r, a, b, BF_PREC_INF, BF_RNDZ, BF_RNDZ); diff --git a/third_party/quickjs/bigint.c b/third_party/quickjs/bigint.c index 0bdf49565..84f348505 100644 --- a/third_party/quickjs/bigint.c +++ b/third_party/quickjs/bigint.c @@ -403,11 +403,11 @@ static const JSCFunctionListEntry js_bigint_funcs[] = { JS_CFUNC_MAGIC_DEF("tdiv", 2, js_bigint_div, BF_RNDZ ), JS_CFUNC_MAGIC_DEF("fdiv", 2, js_bigint_div, BF_RNDD ), JS_CFUNC_MAGIC_DEF("cdiv", 2, js_bigint_div, BF_RNDU ), - JS_CFUNC_MAGIC_DEF("ediv", 2, js_bigint_div, BF_DIVREM_EUCLIDIAN ), + JS_CFUNC_MAGIC_DEF("ediv", 2, js_bigint_div, BF_DIVREM_EUCLIDEAN ), JS_CFUNC_MAGIC_DEF("tdivrem", 2, js_bigint_div, BF_RNDZ | 0x10 ), JS_CFUNC_MAGIC_DEF("fdivrem", 2, js_bigint_div, BF_RNDD | 0x10 ), JS_CFUNC_MAGIC_DEF("cdivrem", 2, js_bigint_div, BF_RNDU | 0x10 ), - JS_CFUNC_MAGIC_DEF("edivrem", 2, js_bigint_div, BF_DIVREM_EUCLIDIAN | 0x10 ), + JS_CFUNC_MAGIC_DEF("edivrem", 2, js_bigint_div, BF_DIVREM_EUCLIDEAN | 0x10 ), JS_CFUNC_MAGIC_DEF("sqrt", 1, js_bigint_sqrt, 0 ), JS_CFUNC_MAGIC_DEF("sqrtrem", 1, js_bigint_sqrt, 1 ), JS_CFUNC_MAGIC_DEF("floorLog2", 1, js_bigint_op1, 0 ), @@ -584,9 +584,9 @@ static int js_binary_arith_bigint(JSContext *ctx, OPCodeEnum op, } break; case OP_math_mod: - /* Euclidian remainder */ + /* Euclidean remainder */ ret = bf_rem(r, a, b, BF_PREC_INF, BF_RNDZ, - BF_DIVREM_EUCLIDIAN) & BF_ST_INVALID_OP; + BF_DIVREM_EUCLIDEAN) & BF_ST_INVALID_OP; break; case OP_mod: ret = bf_rem(r, a, b, BF_PREC_INF, BF_RNDZ, diff --git a/third_party/quickjs/call.c b/third_party/quickjs/call.c index 3f087b454..51814302d 100644 --- a/third_party/quickjs/call.c +++ b/third_party/quickjs/call.c @@ -1240,7 +1240,7 @@ static int js_op_define_class(JSContext *ctx, JSValue *sp, if (JS_DefineObjectName(ctx, ctor, class_name, JS_PROP_CONFIGURABLE) < 0) goto fail; } - /* the constructor property must be first. It can be overriden by + /* the constructor property must be first. It can be overridden by computed property names */ if (JS_DefinePropertyValue(ctx, proto, JS_ATOM_constructor, JS_DupValue(ctx, ctor), diff --git a/third_party/quickjs/cutils.c b/third_party/quickjs/cutils.c index 7d2483381..da639d4a3 100644 --- a/third_party/quickjs/cutils.c +++ b/third_party/quickjs/cutils.c @@ -394,7 +394,7 @@ static inline void *med3(void *a, void *b, void *c, cmp_f cmp, void *opaque) (cmp(b, c, opaque) > 0 ? b : (cmp(a, c, opaque) < 0 ? a : c )); } -/* pointer based version with local stack and insertion sort threshhold */ +/* pointer based version with local stack and insertion sort threshold */ void rqsort(void *base, size_t nmemb, size_t size, cmp_f cmp, void *opaque) { struct { uint8_t *base; size_t count; int depth; } stack[50], *sp = stack; diff --git a/third_party/quickjs/float.c b/third_party/quickjs/float.c index f739770cd..6da8ff9a3 100644 --- a/third_party/quickjs/float.c +++ b/third_party/quickjs/float.c @@ -1000,9 +1000,9 @@ static int js_binary_arith_bigfloat(JSContext *ctx, OPCodeEnum op, ret = bf_div(r, a, b, ctx->fp_env.prec, ctx->fp_env.flags); break; case OP_math_mod: - /* Euclidian remainder */ + /* Euclidean remainder */ ret = bf_rem(r, a, b, ctx->fp_env.prec, ctx->fp_env.flags, - BF_DIVREM_EUCLIDIAN); + BF_DIVREM_EUCLIDEAN); break; case OP_mod: ret = bf_rem(r, a, b, ctx->fp_env.prec, ctx->fp_env.flags, diff --git a/third_party/quickjs/gc.c b/third_party/quickjs/gc.c index c6408d9d0..690fc771d 100644 --- a/third_party/quickjs/gc.c +++ b/third_party/quickjs/gc.c @@ -397,7 +397,7 @@ void JS_RunGC(JSRuntime *rt) /* decrement the reference of the children of each object. mark = 1 after this pass. */ gc_decref(rt); - /* keep the GC objects with a non zero refcount and their childs */ + /* keep the GC objects with a non zero refcount and their children */ gc_scan(rt); /* free the GC objects in a cycle */ gc_free_cycles(rt); diff --git a/third_party/quickjs/internal.h b/third_party/quickjs/internal.h index 798d936e2..36739436d 100644 --- a/third_party/quickjs/internal.h +++ b/third_party/quickjs/internal.h @@ -1291,7 +1291,7 @@ typedef struct BlockEnv { typedef struct JSGlobalVar { int cpool_idx; /* if >= 0, index in the constant pool for hoisted - function defintion*/ + function definition*/ uint8_t force_init : 1; /* force initialization to undefined */ uint8_t is_lexical : 1; /* global let/const definition */ uint8_t is_const : 1; /* const definition */ @@ -1393,9 +1393,9 @@ typedef struct JSFunctionDef { int func_var_idx; /* variable containing the current function (-1 if none, only used if is_func_expr is true) */ int eval_ret_idx; /* variable containing the return value of the eval, -1 if none */ - int this_var_idx; /* variable containg the 'this' value, -1 if none */ - int new_target_var_idx; /* variable containg the 'new.target' value, -1 if none */ - int this_active_func_var_idx; /* variable containg the 'this.active_func' value, -1 if none */ + int this_var_idx; /* variable containing the 'this' value, -1 if none */ + int new_target_var_idx; /* variable containing the 'new.target' value, -1 if none */ + int this_active_func_var_idx; /* variable containing the 'this.active_func' value, -1 if none */ int home_object_var_idx; BOOL need_home_object; int scope_level; /* index into fd->scopes if the current lexical scope */ diff --git a/third_party/quickjs/libbf.c b/third_party/quickjs/libbf.c index 3d81db9e3..06091decb 100644 --- a/third_party/quickjs/libbf.c +++ b/third_party/quickjs/libbf.c @@ -1729,7 +1729,7 @@ static int __bf_div(bf_t *r, const bf_t *a, const bf_t *b, limb_t prec, /* division and remainder. rnd_mode is the rounding mode for the quotient. The additional - rounding mode BF_RND_EUCLIDIAN is supported. + rounding mode BF_RND_EUCLIDEAN is supported. 'q' is an integer. 'r' is rounded with prec and flags (prec can be BF_PREC_INF). @@ -1778,7 +1778,7 @@ int bf_divrem(bf_t *q, bf_t *r, const bf_t *a, const bf_t *b, case BF_RNDA: is_ceil = TRUE; break; - case BF_DIVREM_EUCLIDIAN: + case BF_DIVREM_EUCLIDEAN: is_ceil = a->sign; break; } @@ -4120,7 +4120,7 @@ static void bf_const_pi_internal(bf_t *Q, limb_t prec) int64_t n, prec1; bf_t P, G; - /* number of serie terms */ + /* number of series terms */ n = prec / CHUD_BITS_PER_TERM + 1; /* XXX: precision analysis */ prec1 = prec + 32; @@ -5188,7 +5188,7 @@ static int bf_atan2_internal(bf_t *r, const bf_t *y, limb_t prec, void *opaque) return 0; } - /* compute atan(y/x) assumming inf/inf = 1 and 0/0 = 0 */ + /* compute atan(y/x) assuming inf/inf = 1 and 0/0 = 0 */ bf_init(s, T); prec1 = prec + 32; if (y->expn == BF_EXP_INF && x->expn == BF_EXP_INF) { @@ -5670,7 +5670,7 @@ limb_t mp_add_mul1_dec(limb_t *tabr, const limb_t *taba, mp_size_t n, } /* tabr[] -= taba[] * b. 0 <= b <= base - 1. Return the value to - substract to the high word. */ + subtract to the high word. */ limb_t mp_sub_mul1_dec(limb_t *tabr, const limb_t *taba, mp_size_t n, limb_t b) { @@ -6934,7 +6934,7 @@ static void bfdec_tdivremu(bf_context_t *s, bfdec_t *q, bfdec_t *r, /* division and remainder. rnd_mode is the rounding mode for the quotient. The additional - rounding mode BF_RND_EUCLIDIAN is supported. + rounding mode BF_RND_EUCLIDEAN is supported. 'q' is an integer. 'r' is rounded with prec and flags (prec can be BF_PREC_INF). @@ -6985,7 +6985,7 @@ int bfdec_divrem(bfdec_t *q, bfdec_t *r, const bfdec_t *a, const bfdec_t *b, case BF_RNDA: is_ceil = TRUE; break; - case BF_DIVREM_EUCLIDIAN: + case BF_DIVREM_EUCLIDEAN: is_ceil = a->sign; break; } diff --git a/third_party/quickjs/libbf.h b/third_party/quickjs/libbf.h index ae9159eed..a3ba3a6e6 100644 --- a/third_party/quickjs/libbf.h +++ b/third_party/quickjs/libbf.h @@ -149,7 +149,7 @@ static inline bf_flags_t bf_set_exp_bits(int n) #define BF_ST_OVERFLOW (1 << 2) #define BF_ST_UNDERFLOW (1 << 3) #define BF_ST_INEXACT (1 << 4) -/* indicate that a memory allocation error occured. NaN is returned */ +/* indicate that a memory allocation error occurred. NaN is returned */ #define BF_ST_MEM_ERROR (1 << 5) #define BF_RADIX_MAX 36 /* maximum radix for bf_atof() and bf_ftoa() */ @@ -267,7 +267,7 @@ int bf_mul_si(bf_t *r, const bf_t *a, int64_t b1, limb_t prec, bf_flags_t flags); int bf_mul_2exp(bf_t *r, slimb_t e, limb_t prec, bf_flags_t flags); int bf_div(bf_t *r, const bf_t *a, const bf_t *b, limb_t prec, bf_flags_t flags); -#define BF_DIVREM_EUCLIDIAN BF_RNDF +#define BF_DIVREM_EUCLIDEAN BF_RNDF int bf_divrem(bf_t *q, bf_t *r, const bf_t *a, const bf_t *b, limb_t prec, bf_flags_t flags, int rnd_mode); int bf_rem(bf_t *r, const bf_t *a, const bf_t *b, limb_t prec, diff --git a/third_party/quickjs/libregexp.c b/third_party/quickjs/libregexp.c index 5739d24fe..5ba279cdc 100644 --- a/third_party/quickjs/libregexp.c +++ b/third_party/quickjs/libregexp.c @@ -1635,7 +1635,7 @@ static int re_parse_term(REParseState *s, BOOL is_backward_dir) put_u32(s->byte_code.buf + last_atom_start + 1, len + 5 + add_zero_advance_check); if (add_zero_advance_check) { - /* avoid infinite loop by stoping the + /* avoid infinite loop by stopping the recursion if no advance was made in the atom (only works if the atom has no side effect) */ diff --git a/third_party/quickjs/quickjs.c b/third_party/quickjs/quickjs.c index b8d6c9c6a..441218d90 100644 --- a/third_party/quickjs/quickjs.c +++ b/third_party/quickjs/quickjs.c @@ -10513,7 +10513,7 @@ static int find_private_class_field_all(JSContext *ctx, JSFunctionDef *fd, static void get_loc_or_ref(DynBuf *bc, BOOL is_ref, int idx) { - /* if the field is not initialized, the error is catched when + /* if the field is not initialized, the error is caught when accessing it */ if (is_ref) dbuf_putc(bc, OP_get_var_ref); @@ -12667,7 +12667,7 @@ static __exception int ss_check(JSContext *ctx, StackSizeState *s, if (s->stack_level_tab[pos] != 0xffff) { /* already explored: check that the stack size is consistent */ if (s->stack_level_tab[pos] != stack_len) { - JS_ThrowInternalError(ctx, "unconsistent stack size: %d %d (pc=%d)", + JS_ThrowInternalError(ctx, "inconsistent stack size: %d %d (pc=%d)", s->stack_level_tab[pos], stack_len, pos); return -1; } else { diff --git a/third_party/sqlite3/wal.c b/third_party/sqlite3/wal.c index 8670675fe..6da0086f9 100644 --- a/third_party/sqlite3/wal.c +++ b/third_party/sqlite3/wal.c @@ -282,7 +282,7 @@ int sqlite3WalTrace = 0; ** ** Technically, the various VFSes are free to implement these locks however ** they see fit. However, compatibility is encouraged so that VFSes can -** interoperate. The standard implemention used on both unix and windows +** interoperate. The standard implementation used on both unix and windows ** is for the index number to indicate a byte offset into the ** WalCkptInfo.aLock[] array in the wal-index header. In other words, all ** locks are on the shm file. The WALINDEX_LOCK_OFFSET constant (which @@ -358,7 +358,7 @@ struct WalIndexHdr { ** the mxFrame for that reader. The value READMARK_NOT_USED (0xffffffff) ** for any aReadMark[] means that entry is unused. aReadMark[0] is ** a special case; its value is never used and it exists as a place-holder -** to avoid having to offset aReadMark[] indexs by one. Readers holding +** to avoid having to offset aReadMark[] indexes by one. Readers holding ** WAL_READ_LOCK(0) always ignore the entire WAL and read all content ** directly from the database. ** @@ -1469,7 +1469,7 @@ int sqlite3WalOpen( } /* -** Change the size to which the WAL file is trucated on each reset. +** Change the size to which the WAL file is truncated on each reset. */ void sqlite3WalLimit(Wal *pWal, i64 iLimit){ if( pWal ) pWal->mxWalSize = iLimit; diff --git a/third_party/sqlite3/where.c b/third_party/sqlite3/where.c index f7ba564b1..5cb9af43f 100644 --- a/third_party/sqlite3/where.c +++ b/third_party/sqlite3/where.c @@ -1356,7 +1356,7 @@ char sqlite3IndexColumnAffinity(sqlite3 *db, Index *pIdx, int iCol){ ** Value pLoop->nOut is currently set to the estimated number of rows ** visited for scanning (a=? AND b=?). This function reduces that estimate ** by some factor to account for the (c BETWEEN ? AND ?) expression based -** on the stat4 data for the index. this scan will be peformed multiple +** on the stat4 data for the index. this scan will be performed multiple ** times (once for each (a,b) combination that matches a=?) is dealt with ** by the caller. ** @@ -2929,7 +2929,7 @@ static int whereUsablePartialIndex( */ static int whereLoopAddBtree( WhereLoopBuilder *pBuilder, /* WHERE clause information */ - Bitmask mPrereq /* Extra prerequesites for using this table */ + Bitmask mPrereq /* Extra prerequisites for using this table */ ){ WhereInfo *pWInfo; /* WHERE analysis context */ Index *pProbe; /* An index we are evaluating */ diff --git a/third_party/sqlite3/whereInt.inc b/third_party/sqlite3/whereInt.inc index 36a67bc19..e09de0f53 100644 --- a/third_party/sqlite3/whereInt.inc +++ b/third_party/sqlite3/whereInt.inc @@ -321,7 +321,7 @@ struct WhereClause { u8 hasOr; /* True if any a[].eOperator is WO_OR */ int nTerm; /* Number of terms */ int nSlot; /* Number of entries in a[] */ - WhereTerm *a; /* Each a[] describes a term of the WHERE cluase */ + WhereTerm *a; /* Each a[] describes a term of the WHERE clause */ #if defined(SQLITE_SMALL_STACK) WhereTerm aStatic[1]; /* Initial static space for a[] */ #else diff --git a/third_party/sqlite3/whereexpr.c b/third_party/sqlite3/whereexpr.c index dc3a968d8..bd31fea5e 100644 --- a/third_party/sqlite3/whereexpr.c +++ b/third_party/sqlite3/whereexpr.c @@ -1307,8 +1307,8 @@ static void exprAnalyze( WhereTerm *pTerm; /* The term to be analyzed */ WhereMaskSet *pMaskSet; /* Set of table index masks */ Expr *pExpr; /* The expression to be analyzed */ - Bitmask prereqLeft; /* Prerequesites of the pExpr->pLeft */ - Bitmask prereqAll; /* Prerequesites of pExpr */ + Bitmask prereqLeft; /* Prerequisites of the pExpr->pLeft */ + Bitmask prereqAll; /* Prerequisites of pExpr */ Bitmask extraRight = 0; /* Extra dependencies on LEFT JOIN */ Expr *pStr1 = 0; /* RHS of LIKE/GLOB operator */ int isComplete = 0; /* RHS of LIKE/GLOB ends with wildcard */ diff --git a/third_party/sqlite3/window.c b/third_party/sqlite3/window.c index c8f8bb8c3..652fe65ae 100644 --- a/third_party/sqlite3/window.c +++ b/third_party/sqlite3/window.c @@ -648,7 +648,7 @@ static Window *windowFind(Parse *pParse, Window *pList, const char *zName){ ** is the Window object representing the associated OVER clause. This ** function updates the contents of pWin as follows: ** -** * If the OVER clause refered to a named window (as in "max(x) OVER win"), +** * If the OVER clause referred to a named window (as in "max(x) OVER win"), ** search list pList for a matching WINDOW definition, and update pWin ** accordingly. If no such WINDOW clause can be found, leave an error ** in pParse. @@ -1537,7 +1537,7 @@ struct WindowCsrAndReg { ** ** (ORDER BY a, b GROUPS BETWEEN 2 PRECEDING AND 2 FOLLOWING) ** -** The windows functions implmentation caches the input rows in a temp +** The windows functions implementation caches the input rows in a temp ** table, sorted by "a, b" (it actually populates the cache lazily, and ** aggressively removes rows once they are no longer required, but that's ** a mere detail). It keeps three cursors open on the temp table. One @@ -2529,7 +2529,7 @@ static int windowExprGtZero(Parse *pParse, Expr *pExpr){ ** ** For the most part, the patterns above are adapted to support UNBOUNDED by ** assuming that it is equivalent to "infinity PRECEDING/FOLLOWING" and -** CURRENT ROW by assuming that it is equivilent to "0 PRECEDING/FOLLOWING". +** CURRENT ROW by assuming that it is equivalent to "0 PRECEDING/FOLLOWING". ** This is optimized of course - branches that will never be taken and ** conditions that are always true are omitted from the VM code. The only ** exceptional case is: diff --git a/third_party/stb/stb_image.c b/third_party/stb/stb_image.c index 31fb1bac7..20c7cc5ca 100644 --- a/third_party/stb/stb_image.c +++ b/third_party/stb/stb_image.c @@ -194,7 +194,7 @@ static int stbi__mad2sizes_valid(int a, int b, int add) { return stbi__mul2sizes_valid(a, b) && stbi__addsizes_valid(a * b, add); } -// returns 1 if "a*b*c + add" has no negaive terms/factors and doesn't overflow +// returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow static int stbi__mad3sizes_valid(int a, int b, int c, int add) { return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a * b, c) && stbi__addsizes_valid(a * b * c, add); @@ -1251,7 +1251,7 @@ static void stbi__jpeg_reset(stbi__jpeg *j) { j->marker = STBI__MARKER_none; j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff; j->eob_run = 0; - // no more than 1<<31 MCUs if no restart_interal? that's plenty safe, + // no more than 1<<31 MCUs if no restart_interval? that's plenty safe, // since we don't even allow 1<<30 pixels } @@ -3728,13 +3728,13 @@ static unsigned char *stbi__gif_load_next(stbi__context *s, stbi__gif *g, } } } else { - // This is a non-disposal case eithe way, so just + // This is a non-disposal case either way, so just // leave the pixels as is, and they will become the new background // 1: do not dispose // 0: not specified. } - // background is what out is after the undoing of the previou frame; + // background is what out is after the undoing of the previous frame; memcpy(g->background, g->out, 4 * g->w * g->h); } diff --git a/third_party/stb/stb_truetype.c b/third_party/stb/stb_truetype.c index 3ab18baa9..4394a669c 100644 --- a/third_party/stb/stb_truetype.c +++ b/third_party/stb/stb_truetype.c @@ -2663,7 +2663,7 @@ static void stbtt__add_point(stbtt__point *points, int n, float x, float y) } // tessellate until threshold p is happy... @TODO warped to compensate for non-linear stretching -static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, +static int stbtt__tessellate_curve(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float objspace_flatness_squared, int n) @@ -2677,8 +2677,8 @@ static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, if (n > 16) // 65536 segments on one curve better be enough! return 1; if (dx*dx+dy*dy > objspace_flatness_squared) { // half-pixel error allowed... need to be smaller if AA - stbtt__tesselate_curve(points, num_points, x0,y0, (x0+x1)/2.0f,(y0+y1)/2.0f, mx,my, objspace_flatness_squared,n+1); - stbtt__tesselate_curve(points, num_points, mx,my, (x1+x2)/2.0f,(y1+y2)/2.0f, x2,y2, objspace_flatness_squared,n+1); + stbtt__tessellate_curve(points, num_points, x0,y0, (x0+x1)/2.0f,(y0+y1)/2.0f, mx,my, objspace_flatness_squared,n+1); + stbtt__tessellate_curve(points, num_points, mx,my, (x1+x2)/2.0f,(y1+y2)/2.0f, x2,y2, objspace_flatness_squared,n+1); } else { stbtt__add_point(points, *num_points,x2,y2); *num_points = *num_points+1; @@ -2686,7 +2686,7 @@ static int stbtt__tesselate_curve(stbtt__point *points, int *num_points, return 1; } -static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, +static void stbtt__tessellate_cubic(stbtt__point *points, int *num_points, float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3, float objspace_flatness_squared, int n) @@ -2718,8 +2718,8 @@ static void stbtt__tesselate_cubic(stbtt__point *points, int *num_points, float yb = (y12+y23)/2; float mx = (xa+xb)/2; float my = (ya+yb)/2; - stbtt__tesselate_cubic(points, num_points, x0,y0, x01,y01, xa,ya, mx,my, objspace_flatness_squared,n+1); - stbtt__tesselate_cubic(points, num_points, mx,my, xb,yb, x23,y23, x3,y3, objspace_flatness_squared,n+1); + stbtt__tessellate_cubic(points, num_points, x0,y0, x01,y01, xa,ya, mx,my, objspace_flatness_squared,n+1); + stbtt__tessellate_cubic(points, num_points, mx,my, xb,yb, x23,y23, x3,y3, objspace_flatness_squared,n+1); } else { stbtt__add_point(points, *num_points,x3,y3); *num_points = *num_points+1; @@ -2772,14 +2772,14 @@ static stbtt__point *stbtt_FlattenCurves(stbtt_vertex *vertices, int num_verts, stbtt__add_point(points, num_points++, x, y); break; case STBTT_vcurve: - stbtt__tesselate_curve(points, &num_points, x,y, + stbtt__tessellate_curve(points, &num_points, x,y, vertices[i].cx, vertices[i].cy, vertices[i].x, vertices[i].y, objspace_flatness_squared, 0); x = vertices[i].x, y = vertices[i].y; break; case STBTT_vcubic: - stbtt__tesselate_cubic(points, &num_points, x,y, + stbtt__tessellate_cubic(points, &num_points, x,y, vertices[i].cx, vertices[i].cy, vertices[i].cx1, vertices[i].cy1, vertices[i].x, vertices[i].y, @@ -3853,7 +3853,7 @@ unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float scale, float sy = (float) y + 0.5f; float x_gspace = (sx / scale_x); float y_gspace = (sy / scale_y); - int winding = stbtt__compute_crossings_x(x_gspace, y_gspace, num_verts, verts); // @OPTIMIZE: this could just be a rasterization, but needs to be line vs. non-tesselated curves so a new path + int winding = stbtt__compute_crossings_x(x_gspace, y_gspace, num_verts, verts); // @OPTIMIZE: this could just be a rasterization, but needs to be line vs. non-tessellated curves so a new path for (i=0; i < num_verts; ++i) { float x0 = verts[i].x*scale_x, y0 = verts[i].y*scale_y; if (verts[i].type == STBTT_vline && precompute[i] != 0.0f) { diff --git a/third_party/stb/stb_vorbis.c b/third_party/stb/stb_vorbis.c index 75c964d7c..6688c2319 100644 --- a/third_party/stb/stb_vorbis.c +++ b/third_party/stb/stb_vorbis.c @@ -2517,7 +2517,7 @@ void inverse_mdct_naive(float *buffer, int n) // Note there are bugs in that pseudocode, presumably due to them attempting // to rename the arrays nicely rather than representing the way their actual // implementation bounces buffers back and forth. As a result, even in the - // "some formulars corrected" version, a direct implementation fails. These + // "some formulas corrected" version, a direct implementation fails. These // are noted below as "paper bug". // copy and reflect spectral data diff --git a/third_party/tidy/entities.c b/third_party/tidy/entities.c index 0f96ab44c..b8197b4a0 100644 --- a/third_party/tidy/entities.c +++ b/third_party/tidy/entities.c @@ -33,7 +33,7 @@ struct _entity /* ** Issue #643 - list increased to ** 2032 known entities. -** Note also stuct /not/ padded to +** Note also struct /not/ padded to ** keep source weight down, 79K vs 149K, ** and is strictly alphabetic to optimize ** the searching. diff --git a/third_party/tidy/parser.c b/third_party/tidy/parser.c index d3f886724..6c88976c6 100644 --- a/third_party/tidy/parser.c +++ b/third_party/tidy/parser.c @@ -4555,9 +4555,9 @@ Node* TY_(ParsePre)( TidyDocImpl* doc, Node *pre, GetTokenMode ARG_UNUSED(mode) /* This is basically what Tidy 04 August 2000 did and far more accurate - with respect to browser behaivour than the code commented out above. + with respect to browser behaviour than the code commented out above. Tidy could try to propagate the
into each disallowed child where -is allowed in order to replicate some browsers behaivour, but +is allowed in order to replicate some browsers behaviour, but there are a lot of exceptions, e.g. Internet Explorer does not propagateinto table cells while Mozilla does. Opera 6 never propagatesinto blocklevel elements while Opera 7 behaves much like Mozilla. diff --git a/third_party/unzip/api.c b/third_party/unzip/api.c index 4c03677ee..fcc8a9c8e 100644 --- a/third_party/unzip/api.c +++ b/third_party/unzip/api.c @@ -519,7 +519,7 @@ int close_redirect(__G) a wildcard to be meaningful pattern = string to search for cmd = 0 - case-insensitive search - 1 - case-sensitve search + 1 - case-sensitive search 2 - case-insensitive, whole words only 3 - case-sensitive, whole words only SkipBin = if true, skip any files that have control diff --git a/third_party/unzip/envargs.c b/third_party/unzip/envargs.c index 49ff6ace9..c266cf4f0 100644 --- a/third_party/unzip/envargs.c +++ b/third_party/unzip/envargs.c @@ -168,7 +168,7 @@ int envargs(Pargc, Pargv, envstr, envstr2) /* finally, add a NULL after the last arg, like Unix */ *argv = (char *)NULL; - /* save the values and return, indicating succes */ + /* save the values and return, indicating success */ *Pargv = argvect; *Pargc = argc; diff --git a/third_party/unzip/extract.c b/third_party/unzip/extract.c index 39e85383a..2c12d2b1d 100644 --- a/third_party/unzip/extract.c +++ b/third_party/unzip/extract.c @@ -887,7 +887,7 @@ int extract_or_test_files(__G) /* return PK-type error code */ if ((filnum == 0) && error_in_archive <= PK_WARN) { if (num_skipped > 0L) - error_in_archive = IZ_UNSUP; /* unsupport. compression/encryption */ + error_in_archive = IZ_UNSUP; /* unsupported. compression/encryption */ else error_in_archive = PK_FIND; /* no files found at all */ } @@ -3239,7 +3239,7 @@ char *fnfilter(raw, space, size) /* convert name to safely printable form */ * appear in filenames by itself. The following default definition * sets the replacement char to a question mark as the most common * "single char wildcard"; this setting should be overridden in the - * appropiate system-specific configuration header when needed. + * appropriate system-specific configuration header when needed. */ # define UZ_FNFILTER_REPLACECHAR '?' #endif diff --git a/third_party/unzip/inflate.c b/third_party/unzip/inflate.c index 9a0e2d7be..18d990290 100644 --- a/third_party/unzip/inflate.c +++ b/third_party/unzip/inflate.c @@ -207,7 +207,7 @@ end-of-block. Note however that the static length tree defines 288 codes just to fill out the Huffman codes. Codes 286 and 287 cannot be used though, since there is no length base or extra bits - defined for them. Similarily, there are up to 30 distance codes. + defined for them. Similarly, there are up to 30 distance codes. However, static trees define 32 codes (all 5 bits) to fill out the Huffman codes, but the last two had better not show up in the data. 7. Unzip can check dynamic Huffman blocks for complete code sets. @@ -855,7 +855,7 @@ ZCONST unsigned near mask_bits[17] = { block. See the huft_build() routine. Actually, the precautions mentioned above are not sufficient to - prevent fetches of bits beyound the end of the last block in every + prevent fetches of bits beyond the end of the last block in every case. When the last code fetched before the end-of-block code was a very short distance code (shorter than "distance-prefetch-bits" - "end-of-block code bits"), this last distance code fetch already @@ -1351,7 +1351,7 @@ static int inflate_dynamic(__G) } #ifdef FIX_PAST_EOB_BY_TABLEADJUST /* Adjust the requested distance base table size so that a distance code - fetch never tries to get bits behind an immediatly following end-of-block + fetch never tries to get bits behind an immediately following end-of-block code. */ bd = (dbits <= bl+1 ? dbits : bl+1); #else diff --git a/third_party/unzip/process.c b/third_party/unzip/process.c index c66b5bbe7..45dda91e2 100644 --- a/third_party/unzip/process.c +++ b/third_party/unzip/process.c @@ -304,8 +304,8 @@ int process_zipfiles(__G) /* return PK-type error code */ #endif /* IZ_CHECK_TZ && USE_EF_UT_TIME */ /* For systems that do not have tzset() but supply this function using another - name (_tzset() or something similar), an appropiate "#define tzset ..." - should be added to the system specifc configuration section. */ + name (_tzset() or something similar), an appropriate "#define tzset ..." + should be added to the system specific configuration section. */ #if (!defined(T20_VMS) && !defined(MACOS) && !defined(RISCOS) && !defined(QDOS)) #if (!defined(BSD) && !defined(MTS) && !defined(CMS_MVS) && !defined(TANDEM)) tzset(); @@ -2784,7 +2784,7 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime, structure (provided the z_utim pointer is not NULL). If a IZUNIX2 block is found or the IZUNIX block contains UID/GID fields, and the z_uidgid array pointer is valid (!= NULL), the owner info is - transfered as well. + transferred as well. The presence of an EF_TIME or EF_IZUNIX2 block results in ignoring all data from probably present obsolete EF_IZUNIX blocks. If multiple blocks of the same type are found, only the information from @@ -3052,7 +3052,7 @@ unsigned ef_scan_for_izux(ef_buf, ef_len, ef_is_c, dos_mdatetime, ? (dos_mdatetime == DOSTIME_MINIMUM) : (dos_mdatetime >= DOSTIME_2038_01_18); if (!ut_zip_unzip_compatible) { - /* UnZip interpretes mtime differently than Zip; + /* UnZip interprets mtime differently than Zip; without modtime: ignore complete UT field */ flags &= ~0x0ff; /* no time_t times available */ TTrace((stderr, diff --git a/third_party/unzip/unix.c b/third_party/unzip/unix.c index b5927c378..13a382ba4 100644 --- a/third_party/unzip/unix.c +++ b/third_party/unzip/unix.c @@ -1994,7 +1994,7 @@ void init_conversion_charsets() /* Convert a string from one encoding to the current locale using iconv(). * Be as non-intrusive as possible. If error is encountered during - * convertion just leave the string intact. */ + * conversion just leave the string intact. */ static void charset_to_intern(char *string, char *from_charset) { iconv_t cd; diff --git a/third_party/unzip/unix/Makefile b/third_party/unzip/unix/Makefile index 9f5d99676..58d552275 100644 --- a/third_party/unzip/unix/Makefile +++ b/third_party/unzip/unix/Makefile @@ -888,12 +888,12 @@ linux_shlibz: unix_make lynx: unix_make $(MAKE) unzips CC=gcc CF="$(CF) -DLynx -DLYNX -DBSD -DUNIX" -# Macintosh MacOS X (Unix-compatible enviroment), using standard compiler +# Macintosh MacOS X (Unix-compatible environment), using standard compiler macosx: unix_make $(MAKE) unzips CFLAGS="-O3 -Wall -DBSD" LF2="" $(STRIP) $(UNZIPS) -# Macintosh MacOS X (Unix-compatible enviroment), using gcc +# Macintosh MacOS X (Unix-compatible environment), using gcc macosx_gcc: unix_make $(MAKE) unzips CC=gcc CFLAGS="-O3 -Wall -DBSD" LF2="" $(STRIP) $(UNZIPS) diff --git a/third_party/unzip/unix/Packaging/postinstall b/third_party/unzip/unix/Packaging/postinstall index 030067d50..96b9cf325 100644 --- a/third_party/unzip/unix/Packaging/postinstall +++ b/third_party/unzip/unix/Packaging/postinstall @@ -5,7 +5,7 @@ echo " " echo " " echo "Installation is complete. Now, you should add the following" -echo "(or equivalnet) commands to the appropriate initial user shell" +echo "(or equivalent) commands to the appropriate initial user shell" echo "scripts (such as .profile, .login, etc) -- " echo " " echo " For korn or bourne shell:" diff --git a/third_party/unzip/unzip.c b/third_party/unzip/unzip.c index a68d3a3b0..c5f4dea90 100644 --- a/third_party/unzip/unzip.c +++ b/third_party/unzip/unzip.c @@ -4832,7 +4832,7 @@ unsigned long get_option(__G__ option_group, pargs, argc, argnum, optchar, value } else if (allow_arg_files && arg[0] == '@') { /* arg file */ - oERR(PK_PARMS, no_arg_files_err); + oERR(PK_PARAMS, no_arg_files_err); #endif } else { diff --git a/third_party/zip/fileio.c b/third_party/zip/fileio.c index 771f2142b..3f88dcaf3 100644 --- a/third_party/zip/fileio.c +++ b/third_party/zip/fileio.c @@ -645,7 +645,7 @@ int newnamew(namew, isdir, casesensitive) int save_dosify = dosify, save_pathput = pathput; dosify = 0; pathput = 1; - /* zname is temporarly mis-used as "undosmode" iname pointer */ + /* zname is temporarily mis-used as "undosmode" iname pointer */ if ((znamew = ex2inw(namew, isdir, NULL)) != NULL) { undosmw = in2exw(znamew); free(znamew); @@ -2757,7 +2757,7 @@ size_t bfwrite(buffer, size, count, mode) the provided buffer length. If the returned value is less than the buffer length, then the contents of the buffer will be null-terminated; otherwise, it will not be terminated and may be invalid, possibly - stopping in the middle of a multibyte sequence. + stopping in the middle of a multi-byte sequence. In all cases you may pass NULL as the buffer and/or 0 as the length, if you just want to learn how much space the string is going to require. @@ -2830,7 +2830,7 @@ long ucs4_char_from_utf8(utf8) if (bytes == 1) ret = **utf8; /* ascii-7 */ else - ret = **utf8 & (0x7F >> bytes); /* lead byte of a multibyte sequence */ + ret = **utf8 & (0x7F >> bytes); /* lead byte of a multi-byte sequence */ (*utf8)++; for (t = 1; t < bytes; t++) /* consume trailing bytes */ ret = (ret << 6) | (*((*utf8)++) & 0x3F); @@ -3537,17 +3537,17 @@ zwchar *utf8_to_wide_string(utf8_string) #define oERR(err,message) ZIPERR(err, (char *) message) -/* Although the below provides some support for multibyte characters +/* Although the below provides some support for multi-byte characters the proper thing to do may be to use wide characters and support Unicode. May get to it soon. EG */ -/* For now stay with muti-byte characters. May support wide characters +/* For now stay with multi-byte characters. May support wide characters in Zip 3.1. */ -/* multibyte character set support - Multibyte characters use typically two or more sequential bytes +/* multi-byte character set support + multi-byte characters use typically two or more sequential bytes to represent additional characters than can fit in a single byte character set. The code used here is based on the ANSI mblen function. */ #ifdef MULTIBYTE_GETOPTNS @@ -3555,7 +3555,7 @@ zwchar *utf8_to_wide_string(utf8_string) ZCONST char *ptr; { /* return the number of bytes that the char pointed to is. Return 1 if - null character or error like not start of valid multibyte character. */ + null character or error like not start of valid multi-byte character. */ int cl; cl = mblen(ptr, MB_CUR_MAX); @@ -3578,8 +3578,8 @@ zwchar *utf8_to_wide_string(utf8_string) # define MULTIBYTE_GETOPTNS # endif # endif -/* multibyte character set support - Multibyte characters use typically two or more sequential bytes +/* multi-byte character set support + multi-byte characters use typically two or more sequential bytes to represent additional characters than can fit in a single byte character set. The code used here is based on the ANSI mblen function. */ # ifdef MULTIBYTE_GETOPTNS @@ -3588,7 +3588,7 @@ zwchar *utf8_to_wide_string(utf8_string) ZCONST char *ptr; { /* return the number of bytes that the char pointed to is. Return 1 if - null character or error like not start of valid multibyte character. */ + null character or error like not start of valid multi-byte character. */ int cl; cl = mblen(ptr, MB_CUR_MAX); @@ -3636,7 +3636,7 @@ static ZCONST char Far op_req_val_err[] = "option %s requires a value"; static ZCONST char Far op_no_allow_val_err[] = "option %s does not allow a value"; static ZCONST char Far sh_op_not_sup_err[] = "short option '%c' not supported"; static ZCONST char Far oco_req_val_err[] = "option %s requires one character value"; -static ZCONST char Far oco_no_mbc_err[] = "option %s does not support multibyte values"; +static ZCONST char Far oco_no_mbc_err[] = "option %s does not support multi-byte values"; static ZCONST char Far num_req_val_err[] = "option %s requires number value"; static ZCONST char Far long_op_ambig_err[] = "long option '%s' ambiguous"; static ZCONST char Far long_op_not_sup_err[] = "long option '%s' not supported"; @@ -3940,7 +3940,7 @@ local unsigned long get_shortopt(args, argnum, optchar, negated, value, if (arg[(*optchar) + clen]) { /* has value */ if (MB_CLEN(arg + (*optchar) + clen) > 1) { - /* multibyte value not allowed for now */ + /* multi-byte value not allowed for now */ optionerr(optionerrbuf, oco_no_mbc_err, match, 0); if (depth > 0) { /* unwind */ @@ -4364,7 +4364,7 @@ local unsigned long get_longopt(args, argnum, optchar, negated, value, * -e= * Either optional or required values can be specified. Optional values * now use both forms as ignoring the later got confusing. Any - * non-value short options can preceed a valued short option as in + * non-value short options can precede a valued short option as in * -abevalue * Some value types (one_char and number) allow options after the value * so if oc is an option that takes a character and n takes a number @@ -4406,7 +4406,7 @@ local unsigned long get_longopt(args, argnum, optchar, negated, value, * -o value1 value2 value3 ... * for a list of values. The list ends at the next option, the * end of the command line, or at a single "@" argument. - * Each value is treated as if it was preceeded by the option, so + * Each value is treated as if it was preceded by the option, so * --option1 val1 val2 * with option1 value_type set to o_VALUE_LIST is the same as * --option1=val1 --option1=val2 diff --git a/third_party/zip/globals.c b/third_party/zip/globals.c index 8b6bbbf4b..cb34bad75 100644 --- a/third_party/zip/globals.c +++ b/third_party/zip/globals.c @@ -73,7 +73,7 @@ uzoff_t des_usize = 0; /* Data descriptor usize */ /* dots 10/20/04 */ zoff_t dot_size = 0; /* bytes processed in deflate per dot, 0 = no dots */ -zoff_t dot_count = 0; /* buffers seen, recyles at dot_size */ +zoff_t dot_count = 0; /* buffers seen, recycles at dot_size */ /* status 10/30/04 */ int display_counts = 0; /* display running file count */ int display_bytes = 0; /* display running bytes remaining */ diff --git a/third_party/zip/tailor.h b/third_party/zip/tailor.h index b259295d2..ca8c72906 100644 --- a/third_party/zip/tailor.h +++ b/third_party/zip/tailor.h @@ -20,7 +20,7 @@ # undef FORCE_UNIX_OVER_WIN32 # endif # ifdef FORCE_WIN32_OVER_UNIX - /* native Win32 support was explicitely requested... */ + /* native Win32 support was explicitly requested... */ # undef UNIX # else /* use the POSIX (Unix) emulation features by default... */ @@ -122,7 +122,7 @@ /* * Some compiler environments may require additional attributes attached - * to declarations of runtime libary functions (e.g. to prepare for + * to declarations of runtime library functions (e.g. to prepare for * linking against a "shared dll" version of the RTL). Here, we provide * the "empty" default for these attributes. */ diff --git a/third_party/zip/trees.c b/third_party/zip/trees.c index 406aa83d8..b2ac1e3ff 100644 --- a/third_party/zip/trees.c +++ b/third_party/zip/trees.c @@ -1409,7 +1409,7 @@ local void bi_windup() * * The problem results in the zip file having bad data and so a bad CRC. * This does not happen often and to recreate the problem a large file - * with non-compressable data is needed so that deflate chooses to store the + * with non-compressible data is needed so that deflate chooses to store the * data. A test file of 400 MB seems large enough to recreate the problem * using a command such as * zip -1 -e crcerror.zip testfile.dat diff --git a/third_party/zip/util.c b/third_party/zip/util.c index 50d978d11..df680b55c 100644 --- a/third_party/zip/util.c +++ b/third_party/zip/util.c @@ -894,7 +894,7 @@ void expand_args(argcp, argvp) { #ifdef DOS -/* Do NEVER include (re)definiton of `environ' variable with any version +/* Do NEVER include (re)definition of `environ' variable with any version of MSC or BORLAND/Turbo C. These compilers supply an incompatible definition in. */ #if defined(__GO32__) || defined(__EMX__) diff --git a/third_party/zip/zip.c b/third_party/zip/zip.c index b7624f230..995d54e21 100644 --- a/third_party/zip/zip.c +++ b/third_party/zip/zip.c @@ -2259,7 +2259,7 @@ char **argv; /* command line tokens */ des_usize = 0; /* Data descriptor usize */ dot_size = 0; /* buffers processed in deflate per dot, 0 = no dots */ - dot_count = 0; /* buffers seen, recyles at dot_size */ + dot_count = 0; /* buffers seen, recycles at dot_size */ display_counts = 0; /* display running file count */ display_bytes = 0; /* display running bytes remaining */ @@ -2455,7 +2455,7 @@ char **argv; /* command line tokens */ #endif /* IZ_CHECK_TZ && USE_EF_UT_TIME */ /* For systems that do not have tzset() but supply this function using another - name (_tzset() or something similar), an appropiate "#define tzset ..." + name (_tzset() or something similar), an appropriate "#define tzset ..." should be added to the system specifc configuration section. */ #if (!defined(TOPS20) && !defined(VMS)) #if (!defined(RISCOS) && !defined(MACOS) && !defined(QDOS)) diff --git a/third_party/zip/zip.h b/third_party/zip/zip.h index 81562277d..9b0e6f926 100644 --- a/third_party/zip/zip.h +++ b/third_party/zip/zip.h @@ -353,7 +353,7 @@ extern int translate_eol; /* Translate end-of-line LF -> CR LF */ extern int vms_case_2; /* ODS2 file name case in VMS. -1: down. */ extern int vms_case_5; /* ODS5 file name case in VMS. +1: preserve. */ -/* Accomodation for /NAMES = AS_IS with old header files. */ +/* Accommodation for /NAMES = AS_IS with old header files. */ # define cma$tis_errno_get_addr CMA$TIS_ERRNO_GET_ADDR # define lib$establish LIB$ESTABLISH # define lib$get_foreign LIB$GET_FOREIGN diff --git a/third_party/zip/ziperr.h b/third_party/zip/ziperr.h index 0c25c3ddc..145c6bf20 100644 --- a/third_party/zip/ziperr.h +++ b/third_party/zip/ziperr.h @@ -88,7 +88,7 @@ struct /* 13 */ { "NAME", "Missing or empty zip file", ZE_S_ERROR }, /* 14 */ { "WRITE", "Output file write failure", ZE_S_SEVERE | ZE_S_PERR }, /* 15 */ { "CREAT", "Could not create output file", ZE_S_SEVERE | ZE_S_PERR }, -/* 16 */ { "PARMS", "Invalid command arguments", ZE_S_ERROR }, +/* 16 */ { "PARAMS", "Invalid command arguments", ZE_S_ERROR }, /* 17 */ { "", "", ZE_S_UNUSED }, /* 18 */ { "OPEN", "File not found or no read permission", ZE_S_ERROR | ZE_S_PERR }, diff --git a/third_party/zip/zipfile.c b/third_party/zip/zipfile.c index bc1ad3225..c80b17eaf 100644 --- a/third_party/zip/zipfile.c +++ b/third_party/zip/zipfile.c @@ -1777,12 +1777,12 @@ struct zlist far *z; } if ((fix == 2) && (z->flg != z->lflg)) - /* The comparision between central and local version of the + /* The comparison between central and local version of the "general purpose bit flag" cannot be used from scanzipf_regnew(), because in the "regular" zipfile processing, the local header reads have been postponed until the actual entry processing takes place. They have not yet been read when "zipoddities()" is called. - This change was neccessary to support multivolume archives. + This change was necessary to support multivolume archives. */ { sprintf(errbuf, "local flags = 0x%04x, central = 0x%04x: ", @@ -3959,7 +3959,7 @@ local int scanzipf_fixnew() /* New regular scan */ /* - * scanzipf_regnew is similar to the orignal scanzipf_reg in that it + * scanzipf_regnew is similar to the original scanzipf_reg in that it * reads the end of the archive and goes from there. Unlike that * scan this one stops after reading the central directory and does * not read the local headers. After the directory scan for new @@ -5280,7 +5280,7 @@ int putlocal(z, rewrite) This assumes that for large entries the compressed size won't need a Zip64 extra field if the uncompressed size did not. This assumption should - only fail for a large file of nearly totally uncompressable data. + only fail for a large file of nearly totally uncompressible data. If streaming stdin in and use_descriptors is set then always create a Zip64 extra field flagging the data descriptor as being in Zip64 format. This is diff --git a/third_party/zip/zipnote.c b/third_party/zip/zipnote.c index c8cd2d390..bfaf82b1a 100644 --- a/third_party/zip/zipnote.c +++ b/third_party/zip/zipnote.c @@ -365,7 +365,7 @@ extent size; local int catalloc(a, s) char * far *a; /* pointer to a pointer to a malloc'ed string */ char *s; /* string to concatenate on a */ -/* Concatentate the string s to the malloc'ed string pointed to by a. +/* Concatenate the string s to the malloc'ed string pointed to by a. Preprocess s by removing backslash escape characters. */ { char *p; /* temporary pointer */ diff --git a/third_party/zip/zipup.c b/third_party/zip/zipup.c index 095e80c4f..7c6f218c2 100644 --- a/third_party/zip/zipup.c +++ b/third_party/zip/zipup.c @@ -166,7 +166,7 @@ int percent(n, m) /* 2004-12-01 SMS. * Changed to do big-n test only for small zoff_t. - * Changed big-n arithmetic to accomodate apparently negative values + * Changed big-n arithmetic to accommodate apparently negative values * when a small zoff_t value exceeds 2G. * Increased the reduction divisor from 256 to 512 to avoid the sign bit * in a reduced intermediate, allowing signed arithmetic for the final diff --git a/third_party/zlib/deflate.c b/third_party/zlib/deflate.c index 50bbc1186..dff347131 100644 --- a/third_party/zlib/deflate.c +++ b/third_party/zlib/deflate.c @@ -1393,7 +1393,7 @@ static void check_match(struct DeflateState *s, IPos start, IPos match, * * deflate_stored() is written to minimize the number of times an input * byte is copied. It is most efficient with large input and output - * buffers, which maximizes the opportunites to have a single copy from + * buffers, which maximizes the opportunities to have a single copy from * next_in to next_out. */ static block_state deflate_stored(struct DeflateState *s, int flush) { diff --git a/third_party/zlib/inftrees.internal.h b/third_party/zlib/inftrees.internal.h index ea02b23d6..2d2f22aa0 100644 --- a/third_party/zlib/inftrees.internal.h +++ b/third_party/zlib/inftrees.internal.h @@ -9,7 +9,7 @@ /* Maximum size of the dynamic table. The maximum number of code structures is 1444, which is the sum of 852 for literal/length codes and 592 for distance codes. These values were found by exhaustive searches using the program - examples/enough.c found in the zlib distribtution. The arguments to that + examples/enough.c found in the zlib distribution. The arguments to that program are the number of symbols, the initial root table size, and the maximum bit length of a code. "enough 286 9 15" for literal/length codes returns returns 852, and "enough 30 6 15" for distance codes returns 592. diff --git a/third_party/zlib/puff.c b/third_party/zlib/puff.c index acec8f2dc..c148053c6 100644 --- a/third_party/zlib/puff.c +++ b/third_party/zlib/puff.c @@ -52,7 +52,7 @@ asm(".include \"libc/disclaimer.inc\""); * - Use pointers instead of long to specify source and * destination sizes to avoid arbitrary 4 GB limits * 1.2 17 Mar 2002 - Add faster version of decode(), doubles speed (!), - * but leave simple version for readabilty + * but leave simple version for readability * - Make sure invalid distances detected if pointers * are 16 bits * - Fix fixed codes table error @@ -599,7 +599,7 @@ static int fixed(struct state *s) { * are themselves compressed using Huffman codes and run-length encoding. In * the list of code lengths, a 0 symbol means no code, a 1..15 symbol means * that length, and the symbols 16, 17, and 18 are run-length instructions. - * Each of 16, 17, and 18 are follwed by extra bits to define the length of + * Each of 16, 17, and 18 are followed by extra bits to define the length of * the run. 16 copies the last length 3 to 6 times. 17 represents 3 to 10 * zero lengths, and 18 represents 11 to 138 zero lengths. Unused symbols * are common, hence the special coding for zero lengths. diff --git a/third_party/zlib/trees.c b/third_party/zlib/trees.c index d4a69e75f..e1ebdb8bf 100644 --- a/third_party/zlib/trees.c +++ b/third_party/zlib/trees.c @@ -272,7 +272,7 @@ static void tr_static_init(void) { } /** - * Genererate the file trees.h describing the static trees. + * Generate the file trees.h describing the static trees. */ #ifdef GEN_TREES_H diff --git a/third_party/zlib/zlib.h b/third_party/zlib/zlib.h index f2219a215..074a03463 100644 --- a/third_party/zlib/zlib.h +++ b/third_party/zlib/zlib.h @@ -636,7 +636,7 @@ int deflateSetDictionary(z_streamp strm, const Bytef *dictionary, * to dictionary. dictionary must have enough space, where 32768 bytes is * always enough. If deflateGetDictionary() is called with dictionary equal to * Z_NULL, then only the dictionary length is returned, and nothing is copied. - * Similary, if dictLength is Z_NULL, then it is not set. + * Similarly, if dictLength is Z_NULL, then it is not set. * * deflateGetDictionary() may return a length less than the window size, even * when more than the window size in input has been provided. It may return up @@ -881,7 +881,7 @@ int inflateSetDictionary(z_streamp strm, const Bytef *dictionary, * to dictionary. dictionary must have enough space, where 32768 bytes is * always enough. If inflateGetDictionary() is called with dictionary equal to * Z_NULL, then only the dictionary length is returned, and nothing is copied. - * Similary, if dictLength is Z_NULL, then it is not set. + * Similarly, if dictLength is Z_NULL, then it is not set. * * @return Z_OK on success, or Z_STREAM_ERROR if the stream state is * inconsistent. @@ -1411,7 +1411,7 @@ int gzread(gzFile file, voidp buf, unsigned len); * provided, but could be inferred from the result of gztell(). This behavior * is the same as the behavior of fread() implementations in common libraries, * but it prevents the direct use of gzfread() to read a concurrently written - * file, reseting and retrying on end-of-file, when size is not 1. + * file, resetting and retrying on end-of-file, when size is not 1. */ size_t gzfread(voidp buf, size_t size, size_t nitems, gzFile file); diff --git a/tool/build/compile.c b/tool/build/compile.c index 2a3a1a21a..364ef71ff 100644 --- a/tool/build/compile.c +++ b/tool/build/compile.c @@ -120,7 +120,7 @@ ENVIRONMENT\n\ V=4 print command w/ wall+cpu+mem usage\n\ V=5 print output when exitcode is zero\n\ COLUMNS=INT explicitly set terminal width for output truncation\n\ - TERM=dumb disable ansi x3.64 seuences and thousands separators\n\ + TERM=dumb disable ansi x3.64 sequences and thousands separators\n\ \n" struct Strings { diff --git a/tool/build/helpop.c b/tool/build/helpop.c index 5d4194523..d5c0ec44b 100644 --- a/tool/build/helpop.c +++ b/tool/build/helpop.c @@ -251,7 +251,7 @@ const struct Descriptors { "STOS, and SCAS). In 64-bit mode, only 64-bit (RDI) and 32-bit (EDI) " "address sizes are supported. In non-64-bit modes, only 32-bit (EDI) " "and 16-bit (DI) address sizes are supported. The implicit ES " - "segment register cannot be overriden by a segment prefix."}, + "segment register cannot be overridden by a segment prefix."}, {"Z", "r", "The instruction has no ModR/M byte; the three least-significant " diff --git a/tool/build/lib/pml4tfmt.c b/tool/build/lib/pml4tfmt.c index f1230b95a..379dfd680 100644 --- a/tool/build/lib/pml4tfmt.c +++ b/tool/build/lib/pml4tfmt.c @@ -24,7 +24,7 @@ #include "tool/build/lib/memory.h" #include "tool/build/lib/pml4t.h" -struct Pml4tFormater { +struct Pml4tFormatter { bool t; int64_t start; struct Buffer b; @@ -45,14 +45,14 @@ static int64_t MakeAddress(unsigned short a[4]) { return x; } -static void FormatStartPage(struct Pml4tFormater *pp, int64_t start) { +static void FormatStartPage(struct Pml4tFormatter *pp, int64_t start) { pp->t = true; pp->start = start; if (pp->lines++) AppendChar(&pp->b, '\n'); AppendFmt(&pp->b, "%012lx-", start); } -static void FormatEndPage(struct Pml4tFormater *pp, int64_t end) { +static void FormatEndPage(struct Pml4tFormatter *pp, int64_t end) { int64_t size; pp->t = false; size = end - pp->start; @@ -67,7 +67,7 @@ static void *GetPt(struct Machine *m, uint64_t r) { char *FormatPml4t(struct Machine *m) { uint64_t *pd[4]; unsigned short i, a[4]; - struct Pml4tFormater pp = {0}; + struct Pml4tFormatter pp = {0}; unsigned short range[][2] = {{256, 512}, {0, 256}}; if ((m->mode & 3) != XED_MODE_LONG) return strdup(""); pd[0] = GetPt(m, m->cr3); diff --git a/tool/build/lib/stack.c b/tool/build/lib/stack.c index 79e340a1f..90fd951d9 100644 --- a/tool/build/lib/stack.c +++ b/tool/build/lib/stack.c @@ -143,7 +143,7 @@ void OpPopZvq(struct Machine *m, uint32_t rde) { static void OpCall(struct Machine *m, uint32_t rde, uint64_t func) { if (!func) { /* - * call null is technically possible but too fringe and disasterous + * call null is technically possible but too fringe and disastrous * to accommodate at least until our debugger has rewind capability */ HaltMachine(m, kMachineProtectionFault); diff --git a/tool/build/runit.c b/tool/build/runit.c index 53b51587f..afa0a8174 100644 --- a/tool/build/runit.c +++ b/tool/build/runit.c @@ -367,7 +367,7 @@ bool IsParallelBuild(void) { return (makeflags = getenv("MAKEFLAGS")) && strstr(makeflags, "-j"); } -bool ShouldRunInParralel(void) { +bool ShouldRunInParallel(void) { return !IsWindows() && IsParallelBuild(); } diff --git a/tool/decode/lib/peidnames.c b/tool/decode/lib/peidnames.c index 3fa853c87..32f1b9eba 100644 --- a/tool/decode/lib/peidnames.c +++ b/tool/decode/lib/peidnames.c @@ -148,7 +148,7 @@ const struct IdName kNtImageCharacteristicNames[] = { {kNtImageFileExecutableImage, "kNtImageFileExecutableImage"}, {kNtImageFileLineNumsStripped, "kNtImageFileLineNumsStripped"}, {kNtImageFileLocalSymsStripped, "kNtImageFileLocalSymsStripped"}, - {kNtImageFileAggresiveWsTrim, "kNtImageFileAggresiveWsTrim"}, + {kNtImageFileAggressiveWsTrim, "kNtImageFileAggressiveWsTrim"}, {kNtImageFileLargeAddressAware, "kNtImageFileLargeAddressAware"}, {kNtImageFileBytesReversedLo, "kNtImageFileBytesReversedLo"}, {kNtImageFile32bitMachine, "kNtImageFile32bitMachine"}, diff --git a/tool/emacs/cosmo-asm-mode.el b/tool/emacs/cosmo-asm-mode.el index 17c63d03a..c1704dba9 100644 --- a/tool/emacs/cosmo-asm-mode.el +++ b/tool/emacs/cosmo-asm-mode.el @@ -292,7 +292,7 @@ (1 font-lock-constant-face) (2 font-lock-constant-face)) - ;; Bultin Constants + ;; Builtin Constants ;; ;; - Valid ;; diff --git a/tool/net/help.txt b/tool/net/help.txt index a3de2c230..4417a48e3 100644 --- a/tool/net/help.txt +++ b/tool/net/help.txt @@ -863,7 +863,7 @@ FUNCTIONS Integer literals are encoded as decimal. However if the int64 number is ≥256 and has a population count of 1 then we switch - to representating the number in hexadecimal, for readability. + to representing the number in hexadecimal, for readability. Hex numbers have leading zeroes added in order to visualize whether the number fits in a uint16, uint32, or int64. Also some numbers can only be encoded expressionally. For example, diff --git a/tool/net/largon2.c b/tool/net/largon2.c index 1ee8b9c51..3ab0b0c7a 100644 --- a/tool/net/largon2.c +++ b/tool/net/largon2.c @@ -52,7 +52,7 @@ and later. Note: this document is also valid for the [lua-argon2-ffi](https://github.com/thibaultcha/lua-argon2-ffi) module: an FFI implementation of this binding for LuaJIT which uses the same API as this -original implementaiton. +original implementation. @module argon2 @author Thibault Charbonnier @@ -76,7 +76,7 @@ for a description of those variants. /*** Argon2 hashing options. Those options can be given to `hash_encoded` as a table. If values are omitted, the default values of this module will be used. -Default values of this module can be overriden with `m_cost()`, `t_cost()`, +Default values of this module can be overridden with `m_cost()`, `t_cost()`, `parallelism()`, `hash_len()`, and `variant()`. @field t_cost Number of iterations (`number`, default: `3`). argon2.hash_encoded("password", "salt", { t_cost = 4 }) diff --git a/tool/net/lsqlite3.c b/tool/net/lsqlite3.c index 0510e736f..f87cf440e 100644 --- a/tool/net/lsqlite3.c +++ b/tool/net/lsqlite3.c @@ -1023,7 +1023,7 @@ static void db_sql_finalize_function(sqlite3_context *context) { /* ** Register a normal function ** Params: db, function name, number arguments, [ callback | step, finalize], user data -** Returns: true on sucess +** Returns: true on success ** ** Normal function: ** Params: context, params @@ -1336,7 +1336,7 @@ static int db_rollback_hook(lua_State *L) { ** ** callback function: ** Params: userdata, number of tries -** returns: 0 to return immediatly and return SQLITE_BUSY, non-zero to try again +** returns: 0 to return immediately and return SQLITE_BUSY, non-zero to try again */ static int db_busy_callback(void *user, int tries) { int retry = 0; /* abort by default */ diff --git a/tool/plinko/README.txt b/tool/plinko/README.txt index 2c30be53a..737e255c8 100644 --- a/tool/plinko/README.txt +++ b/tool/plinko/README.txt @@ -7,7 +7,7 @@ DESCRIPTION popular interpreters cannot do; this lets plinko gain a considerable performance edge while retaining an event greater edge in simplicity - We hope you find these sources informative, eductional, and possibly + We hope you find these sources informative, educational, and possibly useful too. Lisp source code, written in its dialect is included too under //tool/plinko/lib and unit tests which clarify their usage can be found in //test/tool/plinko. diff --git a/tool/scripts/ressurect-file b/tool/scripts/resurrect-file similarity index 100% rename from tool/scripts/ressurect-file rename to tool/scripts/resurrect-file diff --git a/tool/viz/lib/glyphs.c b/tool/viz/lib/glyphs.c index 0c571d195..a808166f9 100644 --- a/tool/viz/lib/glyphs.c +++ b/tool/viz/lib/glyphs.c @@ -17,11 +17,11 @@ │ PERFORMANCE OF THIS SOFTWARE. │ ╚─────────────────────────────────────────────────────────────────────────────*/ -// The modes below use various unicodes for 'progresssive' pixelization: +// The modes below use various unicodes for 'progressive' pixelization: // each mode supersets the previous to increase resolution more and more. // Ideally, a fully dense mapping of the (Y*X) space defined by kGlyph size // would produce a picture perfect image, but at the cost of sampling speed. -// Therefore, supersets are parcimonious: they only add the minimal set of +// Therefore, supersets are parsimonious: they only add the minimal set of // missing shapes that can increase resolution. // Ideally, this should be based on a study of the residual, but some logic // can go a long way: after some block pixelization, will need diagonals @@ -53,7 +53,7 @@ // from the space left below, seen by overimposing an underline ⠿_ // along the 3 dots, the Y axis is least 1,0,1,0,1,0,0,1 so 8 steps // -// Problem: fonts are taller than wider, and terminals are tradionally 80x24, so +// Problem: fonts are taller than wider, and terminals are traditionally 80x24, so // - we shouldn't use square glyphs, 8x16 seems to be the minimal size // - we should adapt the conversion to BMP to avoid accidental Y downsampling diff --git a/tool/viz/printvideo.c b/tool/viz/printvideo.c index f812dd03e..c538b54bd 100644 --- a/tool/viz/printvideo.c +++ b/tool/viz/printvideo.c @@ -229,7 +229,7 @@ static const struct itimerval kTimerDisarm = { {0, 0}, }; -static const struct itimerval kTimerHalfSecordSingleShot = { +static const struct itimerval kTimerHalfSecondSingleShot = { {0, 0}, {0, 500000}, }; @@ -353,7 +353,7 @@ static bool CloseSpeaker(void) { if (playpid_) { kill(playpid_, SIGTERM); xsigaction(SIGALRM, StrikeDownCrapware, SA_RESETHAND, 0, 0); - setitimer(ITIMER_REAL, &kTimerHalfSecordSingleShot, NULL); + setitimer(ITIMER_REAL, &kTimerHalfSecondSingleShot, NULL); while (playpid_) { if (waitpid(playpid_, &wstatus, 0) != -1) { rc |= WEXITSTATUS(wstatus);