From c4d6a2de1fe68470485c523b54f1c0d59ff87f2d Mon Sep 17 00:00:00 2001 From: Richard Brooksby Date: Mon, 18 Feb 2013 15:46:39 +0000 Subject: [PATCH] Merging spelling corrections contributed by bruce mitchener. See . Copied from Perforce Change: 180956 ServerID: perforce.ravenbrook.com --- mps/code/arena.c | 2 +- mps/code/buffer.c | 6 +++--- mps/code/eventcnv.c | 2 +- mps/code/eventdef.h | 2 +- mps/code/meter.c | 4 ++-- mps/code/mpstd.h | 2 +- mps/code/proti3.c | 2 +- mps/code/pthrdext.c | 2 +- mps/code/table.c | 2 +- mps/code/thix.c | 2 +- mps/code/thw3.c | 2 +- mps/code/thw3i3.c | 6 +++--- mps/code/thw3i6.c | 6 +++--- mps/code/trace.c | 4 ++-- 14 files changed, 22 insertions(+), 22 deletions(-) diff --git a/mps/code/arena.c b/mps/code/arena.c index 2e71a67c17c..a2ef4da980f 100644 --- a/mps/code/arena.c +++ b/mps/code/arena.c @@ -46,7 +46,7 @@ static Res ArenaTrivDescribe(Arena arena, mps_lib_FILE *stream) } -/* AbstractArenaClass -- The abstact arena class definition +/* AbstractArenaClass -- The abstract arena class definition * * .null: Most abstract class methods are set to NULL. See * . */ diff --git a/mps/code/buffer.c b/mps/code/buffer.c index f911a28c6b9..1731b2d9826 100644 --- a/mps/code/buffer.c +++ b/mps/code/buffer.c @@ -223,7 +223,7 @@ static Res BufferInitV(Buffer buffer, BufferClass class, buffer->alignment = pool->alignment; /* .trans.mod */ buffer->base = (Addr)0; buffer->initAtFlip = (Addr)0; - /* In the next three assignements we really mean zero, not NULL, because + /* In the next three assignments we really mean zero, not NULL, because the bit pattern is compared. It's pretty unlikely we'll encounter a platform where this makes a difference. */ buffer->ap_s.init = (mps_addr_t)0; @@ -861,7 +861,7 @@ Bool BufferTrip(Buffer buffer, Addr p, Size size) return FALSE; } - /* Emit event including class if loggged */ + /* Emit event including class if logged */ if (buffer->mode & BufferModeLOGGED) { Bool b; Format format; @@ -1170,7 +1170,7 @@ static void bufferNoSetRankSet (Buffer buffer, RankSet rankset) /* bufferNoReassignSeg -- basic BufferReassignSeg method * - * .noseg: basic buffers don't support attachment to sements, so this + * .noseg: basic buffers don't support attachment to segments, so this * method should not be called. */ static void bufferNoReassignSeg (Buffer buffer, Seg seg) diff --git a/mps/code/eventcnv.c b/mps/code/eventcnv.c index 99974831908..b583620a032 100644 --- a/mps/code/eventcnv.c +++ b/mps/code/eventcnv.c @@ -84,7 +84,7 @@ static void evwarn(const char *format, ...) va_end(args); } -/* everror -- flush stdout, mesage to stderr, exit */ +/* everror -- flush stdout, message to stderr, exit */ static void everror(const char *format, ...) { diff --git a/mps/code/eventdef.h b/mps/code/eventdef.h index 70a32393d3d..5c6c3b0f2e1 100644 --- a/mps/code/eventdef.h +++ b/mps/code/eventdef.h @@ -195,7 +195,7 @@ /* EVENT_*_PARAMS -- definition of event parameters * * For each event type in EVENT_LIST, these macros list the parameters of - * the event. THe columns are: + * the event. The columns are: * - the positional index of the parameter in the list, used to define * numeric field names using the C preprocessor * - the parameter sort, similar to writef (Pointer, Addr, Word, Unsigned, diff --git a/mps/code/meter.c b/mps/code/meter.c index 04f684c07f3..b67cce42404 100644 --- a/mps/code/meter.c +++ b/mps/code/meter.c @@ -45,7 +45,7 @@ void MeterAccumulate(Meter meter, Size amount) double dcount = (double)count; /* .limitation.variance: This computation accumulates a running - * mean^2, minimizing overflow, but sacrificing numerical stablity + * mean^2, minimizing overflow, but sacrificing numerical stability * for small variances. For more accuracy, the data set should be * emitted using a telemetry stream and analyzed off-line. .stddev: stddev = sqrt(meanSquared - mean^2). @@ -93,7 +93,7 @@ Res MeterWrite(Meter meter, mps_lib_FILE *stream) } -/* MeterEmit -- emit an evnet with the current data from the meter */ +/* MeterEmit -- emit an event with the current data from the meter */ void MeterEmit(Meter meter) { diff --git a/mps/code/mpstd.h b/mps/code/mpstd.h index ad695bc23a9..61a20d3cbf2 100644 --- a/mps/code/mpstd.h +++ b/mps/code/mpstd.h @@ -40,7 +40,7 @@ * we want it to just work out of the box with whatever compiler is * being used. In other words we do not require the client to define * CONFIG_PF_*. - * (This is the case that justifes mpstd.h doing platform detection + * (This is the case that justifies mpstd.h doing platform detection * by looking at preprocessor symbols; otherwise we'd simply use * CONFIG_PF_*). * diff --git a/mps/code/proti3.c b/mps/code/proti3.c index 9f9480f31b0..d3a13aef299 100644 --- a/mps/code/proti3.c +++ b/mps/code/proti3.c @@ -44,7 +44,7 @@ * .assume.i3: Assume the following about the i386 environment: * Steppable instructions (.assume.want) use the CS, DS & SS * segment registers only (see .source.i486 Table 2-3). - * The procesor runs in 32 bit mode. + * The processor runs in 32 bit mode. * The CS, DS and SS segment registers all describe identical 32- * bit flat address spaces. */ diff --git a/mps/code/pthrdext.c b/mps/code/pthrdext.c index ab50a999ff5..934a0a646a0 100644 --- a/mps/code/pthrdext.c +++ b/mps/code/pthrdext.c @@ -37,7 +37,7 @@ SRCID(pthreadext, "$Id$"); #define PTHREADEXT_SIGRESUME SIGXCPU -/* Static data initiatialized on first use of the module +/* Static data initialized on first use of the module * See .* */ diff --git a/mps/code/table.c b/mps/code/table.c index 3e5cc0c14ae..a0d0275c0c3 100644 --- a/mps/code/table.c +++ b/mps/code/table.c @@ -133,7 +133,7 @@ static TableEntry tableFind(Table table, Word key, Bool skip_deleted) * * .hash.initial: Any reasonable number. * - * .hash.growth: A compromise between space inefficency (growing bigger + * .hash.growth: A compromise between space inefficiency (growing bigger * than required) and time inefficiency (growing too slowly, with all * the rehash costs at every step). A factor of 2 means that at the * point of growing to a size X table, hash-work equivalent to filling diff --git a/mps/code/thix.c b/mps/code/thix.c index b792cd96783..7760a5e1349 100644 --- a/mps/code/thix.c +++ b/mps/code/thix.c @@ -41,7 +41,7 @@ SRCID(thix, "$Id$"); -/* ThreadStruct -- thread desriptor */ +/* ThreadStruct -- thread descriptor */ typedef struct mps_thr_s { /* PThreads thread structure */ Sig sig; /* */ diff --git a/mps/code/thw3.c b/mps/code/thw3.c index 250951018da..e1e5c97841b 100644 --- a/mps/code/thw3.c +++ b/mps/code/thw3.c @@ -23,7 +23,7 @@ * * Other errors are assumed to only happen in certain circumstances. * .error.resume: ResumeThread is assumed to succeed unless the thread - * has been destroyed (in fact, perversely, it appears to succeeed even + * has been destroyed (in fact, perversely, it appears to succeed even * when the thread has been destroyed). * .error.suspend: SuspendThread is assumed to succeed unless the thread * has been destroyed. diff --git a/mps/code/thw3i3.c b/mps/code/thw3i3.c index 3e2e6ee1a5c..33424b6cf54 100644 --- a/mps/code/thw3i3.c +++ b/mps/code/thw3i3.c @@ -81,7 +81,7 @@ Res ThreadScan(ScanState ss, Thread thread, void *stackBot) /* scan stack and register roots in other threads */ - /* This dumps the relevent registers into the context */ + /* This dumps the relevant registers into the context */ /* .context.flags */ context.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER; /* .thread.handle.get-context */ @@ -109,8 +109,8 @@ Res ThreadScan(ScanState ss, Thread thread, void *stackBot) /* (.context.regroots) * This scans the root registers (.context.regroots). It also - * unecessarily scans the rest of the context. The optimisation - * to scan only relevent parts would be machine dependent. + * unnecessarily scans the rest of the context. The optimisation + * to scan only relevant parts would be machine dependent. */ res = TraceScanAreaTagged(ss, (Addr *)&context, (Addr *)((char *)&context + sizeof(CONTEXT))); diff --git a/mps/code/thw3i6.c b/mps/code/thw3i6.c index 86e5f6edc8f..9b0eae55db6 100644 --- a/mps/code/thw3i6.c +++ b/mps/code/thw3i6.c @@ -81,7 +81,7 @@ Res ThreadScan(ScanState ss, Thread thread, void *stackBot) /* scan stack and register roots in other threads */ - /* This dumps the relevent registers into the context */ + /* This dumps the relevant registers into the context */ /* .context.flags */ context.ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER; /* .thread.handle.get-context */ @@ -109,8 +109,8 @@ Res ThreadScan(ScanState ss, Thread thread, void *stackBot) /* (.context.regroots) * This scans the root registers (.context.regroots). It also - * unecessarily scans the rest of the context. The optimisation - * to scan only relevent parts would be machine dependent. + * unnecessarily scans the rest of the context. The optimisation + * to scan only relevant parts would be machine dependent. */ res = TraceScanAreaTagged(ss, (Addr *)&context, (Addr *)((char *)&context + sizeof(CONTEXT))); diff --git a/mps/code/trace.c b/mps/code/trace.c index e7ab41c8d80..9401696ba2d 100644 --- a/mps/code/trace.c +++ b/mps/code/trace.c @@ -990,7 +990,7 @@ static Bool traceFindGrey(Seg *segReturn, Rank *rankReturn, Rank band = traceBand(trace); /* Within the R band we look for segments of rank R first, */ - /* then succesively earlier ones. Slight hack: We never */ + /* then successively earlier ones. Slight hack: We never */ /* expect to find any segments of RankAMBIG, so we use */ /* this as a terminating condition for the loop. */ for(rank = band; rank > RankAMBIG; --rank) { @@ -1245,7 +1245,7 @@ void TraceSegAccess(Arena arena, Seg seg, AccessSet mode) AVER((mode & SegSM(seg) & AccessREAD) == 0 || TraceSetInter(SegGrey(seg), arena->flippedTraces) != TraceSetEMPTY); - /* If it's a write acess, then the segment must have a summary that */ + /* If it's a write access, then the segment must have a summary that */ /* is smaller than the mutator's summary (which is assumed to be */ /* RefSetUNIV). */ AVER((mode & SegSM(seg) & AccessWRITE) == 0 || SegSummary(seg) != RefSetUNIV);