WIP: Correct all typos (#498)

This commit is contained in:
jared 2022-07-20 17:01:15 -04:00 committed by GitHub
parent 98254a7c1f
commit ed205e98a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
79 changed files with 162 additions and 162 deletions

View file

@ -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 {

View file

@ -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 "

View file

@ -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);

View file

@ -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);

View file

@ -367,7 +367,7 @@ bool IsParallelBuild(void) {
return (makeflags = getenv("MAKEFLAGS")) && strstr(makeflags, "-j");
}
bool ShouldRunInParralel(void) {
bool ShouldRunInParallel(void) {
return !IsWindows() && IsParallelBuild();
}

View file

@ -148,7 +148,7 @@ const struct IdName kNtImageCharacteristicNames[] = {
{kNtImageFileExecutableImage, "kNtImageFileExecutableImage"},
{kNtImageFileLineNumsStripped, "kNtImageFileLineNumsStripped"},
{kNtImageFileLocalSymsStripped, "kNtImageFileLocalSymsStripped"},
{kNtImageFileAggresiveWsTrim, "kNtImageFileAggresiveWsTrim"},
{kNtImageFileAggressiveWsTrim, "kNtImageFileAggressiveWsTrim"},
{kNtImageFileLargeAddressAware, "kNtImageFileLargeAddressAware"},
{kNtImageFileBytesReversedLo, "kNtImageFileBytesReversedLo"},
{kNtImageFile32bitMachine, "kNtImageFile32bitMachine"},

View file

@ -292,7 +292,7 @@
(1 font-lock-constant-face)
(2 font-lock-constant-face))
;; Bultin Constants
;; Builtin Constants
;;
;; - Valid
;;

View file

@ -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,

View file

@ -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 })

View file

@ -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 */

View file

@ -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.

View file

@ -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

View file

@ -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);