Skip to content

Commit

Permalink
large batch of typo fixes, courtesy of pfusik++
Browse files Browse the repository at this point in the history
  • Loading branch information
cotto committed Sep 6, 2011
1 parent 6f57d17 commit b9261ad
Show file tree
Hide file tree
Showing 57 changed files with 73 additions and 70 deletions.
3 changes: 3 additions & 0 deletions CREDITS
Expand Up @@ -948,6 +948,9 @@ D: The Second Perl 6 Summarizer after Bryan C. Warnock
E: pdcawley@bofh.org.uk
W: http://www.bofh.org.uk:8080/

N: Piotr Fusik
D: Fixed typos

N: Reini Urban
U: rurban
E: rurban@cpan.org
Expand Down
2 changes: 1 addition & 1 deletion ChangeLog
Expand Up @@ -7979,7 +7979,7 @@
before 5.6 did not handle the 0b numeric prefix; therefore, it was
returning 0. To fix this, I added a from_binary function that
would take a binary string and return its decimal representation.
Now, instead of blindly calilng oct, it makes a distinction between
Now, instead of blindly calling oct, it makes a distinction between
0/0x numbers and 0b numbers.

2001-09-26 19:30 thgibbs
Expand Down
4 changes: 2 additions & 2 deletions NEWS
Expand Up @@ -186,7 +186,7 @@ New in 3.0.0
command-line parameters was improved.
+ An experimental gdb pretty-printers in tools/dev for Parrot STRINGs and
PMCs is now available. (gdb 7.2 or later and Python are required)
+ c2str.pl and pmc2c.pl improvements result in a noticably faster build.
+ c2str.pl and pmc2c.pl improvements result in a noticeably faster build.
+ Bugs in our Digest::sha256 library and bit-related dynamic ops were fixed
by GCI student Nolan Lum. Both now work correctly on 32 and 64 bit systems.
- Languages
Expand Down Expand Up @@ -923,7 +923,7 @@ New in January 2009 release (0.9.0)
- skip creating a class/grammar if it already exists
- Languages
+ Rakudo
- improved error mesages in multi dispatch
- improved error messages in multi dispatch
- implemented clone method for all objects
- implemented MAIN sub
- Unicode versions of infix hyper operators
Expand Down
2 changes: 1 addition & 1 deletion config/auto/backtrace/test_dlinfo_c.in
@@ -1,7 +1,7 @@
/*
Copyright (C) 2009, Parrot Foundation.

check that Dl_info is avaible
check that Dl_info is available
*/

#include <execinfo.h>
Expand Down
2 changes: 1 addition & 1 deletion docs/book/pct/ch04_pge.pod
Expand Up @@ -1343,7 +1343,7 @@ Protofunctions define operators in the optable in the same way that rules and
tokens make up the grammar. A proto declares a rule, defined elsewhere, which
other code may override dynamically. In this case, PCT takes information from
the proto declaration and fills in the details. The "dynamic overriding"
implies that a high-level language itself itself can modify its own grammar at
implies that a high-level language itself can modify its own grammar at
run time, by overriding the proto definitions for its operator table. Some
languages call this process X<operator overloading> I<operator overloading>.

Expand Down
2 changes: 1 addition & 1 deletion docs/book/pir/ch05_control_structures.pod
Expand Up @@ -326,7 +326,7 @@ PIR requires one conditional branch and two unconditional branches.
The first time through the loop, this example sets the initial value of the
counter in C<loop_init>. It then goes on to test that the loop condition is met
in C<loop_test>. If the condition is true (C<counter> is less than or equal to
10) it jumps to C<loop_body> and executes the body of the loop. If the the
10) it jumps to C<loop_body> and executes the body of the loop. If the
condition is false, it will jump straight to C<loop_end> and the loop will end.
The body of the loop prints the current counter then goes on to
C<loop_continue>, which increments the counter and jumps back up to
Expand Down
2 changes: 1 addition & 1 deletion docs/book/pir/ch06_subroutines.pod
Expand Up @@ -189,7 +189,7 @@ X<named parameters>
Named parameters are an alternative to positional parameters. Instead of
passing parameters by their position in the string, Parrot assigns
arguments to parameters by their name. Consequently you may pass named
parameters in any order. Declare named parameters with with the
parameters in any order. Declare named parameters with the
C<:named>X<:named parameter modifier> modifier.

This example declares two named parameters in the subroutine C<shoutout>
Expand Down
2 changes: 1 addition & 1 deletion docs/deprecations/deprecations_3_0.pod
Expand Up @@ -92,7 +92,7 @@ magic of virtual dispatch.

=head3 Rational

They're old, crufty, and don't do anything that cannot be acheived by .call.
They're old, crufty, and don't do anything that cannot be achieved by .call.

Except obfuscasion of course.

Expand Down
2 changes: 1 addition & 1 deletion docs/deprecations/how_to_deprecate.pod
Expand Up @@ -97,7 +97,7 @@ page (e.g. [wiki:ParrotDeprecationsFor2.6 ParrotDeprecationsFor2.6])

=item *

walk through the the documentation to ensure that it's sufficient for a user to
walk through the documentation to ensure that it's sufficient for a user to
use to upgrade his or her code

=item *
Expand Down
2 changes: 1 addition & 1 deletion docs/pdds/draft/pdd14_numbers.pod
Expand Up @@ -126,7 +126,7 @@ different PMC type.}}
=item C<i_[add|subtract|multiply|divide|floor_divide|modulus|pow]_float(INTVAL
b)>

Add/subtract/multiply/divide/modulus/exponent an integer value with the the
Add/subtract/multiply/divide/modulus/exponent an integer value with the
C<Integer> PMC, and set the C<Integer> to the resulting value, morphing it to
a C<Float>. Note that these are multidispatched.

Expand Down
2 changes: 1 addition & 1 deletion docs/pdds/pdd07_codingstd.pod
Expand Up @@ -503,7 +503,7 @@ C<i> that's visible after it's used, which is confusing at best.

=item Filenames

Filenames must be assumed to be case-insensitive, in the sense that that you
Filenames must be assumed to be case-insensitive, in the sense that you
may not have two different files called F<Foo> and F<foo>. Normal source-code
filenames should be all lower-case; filenames with upper-case letters in them
are reserved for notice-me-first files such as F<README>, and for files which
Expand Down
2 changes: 1 addition & 1 deletion docs/pdds/pdd19_pir.pod
Expand Up @@ -815,7 +815,7 @@ becomes:

=end PIR_FRAGMENT

Note that this only works for opcodes that have have a leading C<OUT>
Note that this only works for opcodes that have a leading C<OUT>
parameter. [this restriction unimplemented: TT #906]

=item ([<var1> [:<mod1> ...], ...]) = <var2>([<arg1> [:<mod2> ...], ...])
Expand Down
2 changes: 1 addition & 1 deletion docs/pdds/pdd20_lexical_vars.pod
Expand Up @@ -197,7 +197,7 @@ variable, an exception is thrown.
If an inner subroutine is invoked that hasn't had a
C<capture_lex> operation performed on it, then Parrot
will attempt to dynamically perform the lexical capture
using the call from from its outer sub. If the outer sub
using the call from its outer sub. If the outer sub
doesn't have a call frame, as might occur when jumping
directly to the inner sub without previously invoking the
outer, then Parrot creates a dummy call frame for the
Expand Down
2 changes: 1 addition & 1 deletion docs/project/git_workflow.pod
Expand Up @@ -139,7 +139,7 @@ the --force flag:
git add --force ports/foo

NOTE: Make sure these files should actually be added. Most files in .gitignore
should never be added, but some, such as some files in "ports/" will need need
should never be added, but some, such as some files in "ports/" will need
the --force flag.

Now for actually creating your commit! Since Git is a distributed version
Expand Down
2 changes: 1 addition & 1 deletion examples/past/blocktype_immediate.pir
Expand Up @@ -11,7 +11,7 @@ examples/past/blocktype_immediate.pir - Evaluating a PAST::Block immediately
=head1 DESCRIPTION

Create and evaluate a PAST::Block with blocktype 'immediate'.
'immediate' means the the block is evaluated end the last value
'immediate' means the block is evaluated and the last value
is returned.

Beware that this doesn't work yet as expected:
Expand Down
2 changes: 1 addition & 1 deletion examples/sdl/tetris/blockdata.pir
Expand Up @@ -29,7 +29,7 @@ END:

=item blockdata."rotate"( dir )

Changes the the C<block data> in a way to make
Changes the C<block data> in a way to make
the block look rotated.

=over 4
Expand Down
2 changes: 1 addition & 1 deletion examples/streams/Combiner.pir
Expand Up @@ -87,7 +87,7 @@ LOOP:
The _text sub is used as a source of the text stream.
It just writes some text to the stream.

The stream is automatically diconnected when the sub returns, which
The stream is automatically disconnected when the sub returns, which
will also terminate the combined stream.

=cut
Expand Down
4 changes: 2 additions & 2 deletions ext/winxed/README
Expand Up @@ -19,6 +19,6 @@ How to choose and tag the release used:

Releases are tagged like this: RELEASE_1_0_0

To tag a new releease switch to the appropiate branch, like version_1_0,
verify is updated with the appropiate changes and the pir generated files
To tag a new release switch to the appropriate branch, like version_1_0,
verify is updated with the appropriate changes and the pir generated files
are also updated, an tag it. Don't forget to push the tag to origin.
4 changes: 2 additions & 2 deletions ext/winxed/compiler.pir
Expand Up @@ -7326,7 +7326,7 @@
.annotate 'line', 2635
unless_null $P2, __label_2
.annotate 'line', 2636
WSubId_1('unknow namespace', __ARG_1)
WSubId_1('unknown namespace', __ARG_1)
__label_2: # endif
.annotate 'line', 2637
__ARG_3.'usenamespace'($P2)
Expand Down Expand Up @@ -16547,7 +16547,7 @@
goto __label_5 # break
__label_9: # case
.annotate 'line', 5559
WSubId_6("Builtin unexpeted here", self)
WSubId_6("Builtin unexpected here", self)
__label_6: # default
.annotate 'line', 5561
root_new $P6, ['parrot';'ResizablePMCArray']
Expand Down
2 changes: 1 addition & 1 deletion src/dynoplibs/bit.ops
Expand Up @@ -402,7 +402,7 @@ inline op lsr(invar PMC, invar PMC, invar PMC) :base_core {
=item B<rot>(out INT, in INT, in INT, inconst INT)

Rotate $2 left or right by $3 and place result in $1.
$4 is the the size of the word to rotate, max 32 on a 32-bit CPU and 64
$4 is the size of the word to rotate, max 32 on a 32-bit CPU and 64
on a 64-bit CPU. If the rotate count is negative a rotate right by abs($3)
is performed.

Expand Down
8 changes: 4 additions & 4 deletions src/dynoplibs/math.ops
Expand Up @@ -208,7 +208,7 @@ inline op rand(out INT) {

=item B<rand>(out NUM, in NUM)

Set $1 to a random floating point number between 0 and and $2, inclusive.
Set $1 to a random floating point number between 0 and $2, inclusive.

=cut

Expand All @@ -218,7 +218,7 @@ inline op rand(out NUM, in NUM) {

=item B<rand>(out INT, in INT)

Set $1 to a integer between 0 and and $2, inclusive.
Set $1 to a integer between 0 and $2, inclusive.

=cut

Expand All @@ -228,7 +228,7 @@ inline op rand(out INT, in INT) {

=item B<rand>(out NUM, in NUM, in NUM)

Set $1 to a random floating point number between $2 and and $3, inclusive.
Set $1 to a random floating point number between $2 and $3, inclusive.

=cut

Expand Down Expand Up @@ -258,7 +258,7 @@ inline op srand(in INT) {

=item B<rand>(out INT, in INT, in INT)

Set $1 to a integer between $2 and and $3, inclusive.
Set $1 to a integer between $2 and $3, inclusive.

=cut

Expand Down
2 changes: 1 addition & 1 deletion src/exceptions.c
Expand Up @@ -7,7 +7,7 @@ src/exceptions.c - Exceptions
=head1 DESCRIPTION
Define the the core subsystem for exceptions.
Define the core subsystem for exceptions.
=head2 Exception Functions
Expand Down
2 changes: 1 addition & 1 deletion src/gc/alloc_resources.c
Expand Up @@ -309,7 +309,7 @@ check_fixed_size_obj_pool(ARGIN(const Fixed_Size_Pool *pool))
/* should happen only once at the end */
--last_free_list_count;
else {
/* next item on free list should also be flaged as free item */
/* next item on free list should also be flagged as free item */
pobj_walker = (GC_MS_PObj_Wrapper*)pobj_walker->next_ptr;
PARROT_ASSERT(PObj_on_free_list_TEST((PObj*)pobj_walker));
}
Expand Down
2 changes: 1 addition & 1 deletion src/gc/api.c
Expand Up @@ -551,7 +551,7 @@ Parrot_gc_allocate_pmc_attributes(PARROT_INTERP, ARGMOD(PMC *pmc))
=item C<void Parrot_gc_free_pmc_attributes(PARROT_INTERP, PMC *pmc)>
Deallocates an attibutes structure from a PMC if it has the auto_attrs
Deallocates an attributes structure from a PMC if it has the auto_attrs
flag set.
=cut
Expand Down
2 changes: 1 addition & 1 deletion src/gc/gc_gms.c
Expand Up @@ -2277,7 +2277,7 @@ gc_gms_validate_objects(PARROT_INTERP)
=item C<static void gc_gms_str_get_youngest_generation(PARROT_INTERP, STRING
*str)>
Calculate youngest genereation of PMC children. Used to remove items from
Calculate youngest generation of PMC children. Used to remove items from
dirty_list.
=cut
Expand Down
2 changes: 1 addition & 1 deletion src/gc/gc_ms.c
Expand Up @@ -1257,7 +1257,7 @@ contained_in_attr_pool(ARGIN(const PMC_Attribute_Pool *pool), ARGIN(const void *
=item C<void gc_ms_free_pmc_attributes(PARROT_INTERP, PMC *pmc)>
Deallocates an attibutes structure from a PMC if it has the auto_attrs
Deallocates an attributes structure from a PMC if it has the auto_attrs
flag set.
*/
Expand Down
10 changes: 5 additions & 5 deletions src/gc/malloc.c
Expand Up @@ -145,7 +145,7 @@
you would be far better off obtaining ptmalloc, which is
derived from a version of this malloc, and is well-tuned for
concurrent programs. (See http://www.malloc.de) Note that
even when USE_MALLOC_LOCK is defined, you can can guarantee
even when USE_MALLOC_LOCK is defined, you can guarantee
full thread-safety only if no threads acquire memory through
direct calls to MORECORE or other system-level allocators.
Expand Down Expand Up @@ -376,7 +376,7 @@ extern "C" {
#endif

/*
The unsigned integer type used to hold addresses when they are are
The unsigned integer type used to hold addresses when they are
manipulated as integers. Except that it is not defined on all
systems, intptr_t would suffice.
*/
Expand Down Expand Up @@ -833,7 +833,7 @@ extern Void_t* sbrk();
The main declaration needed is the mallinfo struct that is returned
(by-copy) by mallinfo(). The SVID/XPG malloinfo struct contains a
bunch of fields that are not even meaningful in this version of
malloc. These fields are are instead filled by mallinfo() with
malloc. These fields are instead filled by mallinfo() with
other numbers that might be of interest.
HAVE_USR_INCLUDE_MALLOC_H should be set if you have a
Expand Down Expand Up @@ -2273,7 +2273,7 @@ static int largebin_index(unsigned int sz) {
To help compensate for the large number of bins, a one-level index
structure is used for bin-by-bin searching. `binmap' is a
bitvector recording whether bins are definitely empty so they can
be skipped over during during traversals. The bits are NOT always
be skipped over during traversals. The bits are NOT always
cleared as soon as bins are empty, but instead only
when they are noticed to be empty during traversal in malloc.
*/
Expand Down Expand Up @@ -2719,7 +2719,7 @@ static void do_check_malloced_chunk(p, s) mchunkptr p; INTERNAL_SIZE_T s;
always true of any allocated chunk; i.e., that each allocated
chunk borders either a previously allocated and still in-use
chunk, or the base of its memory arena. This is ensured
by making all allocations from the the `lowest' part of any found
by making all allocations from the `lowest' part of any found
chunk. This does not necessarily hold however for chunks
recycled via fastbins.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/gc/system.c
Expand Up @@ -110,7 +110,7 @@ trace_system_areas(PARROT_INTERP, ARGIN_NULLOK(const Memory_Pools *mem_pools))
register windows. Store the code in a union with a double to
ensure proper memory alignment. */
/* TT #271: This needs to be fixed in a variety of ways */
/* Using inline assember if available instead of the hand-coded version. */
/* Using inline assembler if available instead of the hand-coded version. */
# if defined(__GNUC__) && (defined(__sparcv9) || defined(__sparcv9__) || defined(__arch64__))
asm("flushw");
# else
Expand Down
2 changes: 1 addition & 1 deletion src/interp/inter_create.c
Expand Up @@ -543,7 +543,7 @@ Parrot_really_destroy(PARROT_INTERP, SHIM(int exit_code), SHIM(void *arg))
Provide access to a (possibly) valid interp pointer. This is intended B<only>
for use cases when an interp is not available otherwise, which shouldn't be
often. There are no guarantees about what what this function returns. If you
often. There are no guarantees about what this function returns. If you
have access to a valid interp, use that instead. Don't use this for anything
other than error handling.
Expand Down
2 changes: 1 addition & 1 deletion src/oo.c
Expand Up @@ -1221,7 +1221,7 @@ Used by the Class and Object PMCs internally to compose a role into either of
them. The C<role> parameter is the role that we are composing into the class
or role. C<methods_hash> is the hash of method names to invokable PMCs that
contains the methods the class or role has. C<roles_list> is the list of roles
the the class or method does.
the class or method does.
The C<role> parameter is only dealt with by its external interface. Whether
this routine is usable by any other object system implemented in Parrot very
Expand Down
2 changes: 1 addition & 1 deletion src/ops/core.ops
Expand Up @@ -972,7 +972,7 @@ inline op gc_debug(in INT) {

Fetch some piece of information about the interpreter and put it in $1.
Possible values for $2 are defined in F<runtime/parrot/include/interpinfo.pasm>.
The valid constants for each return value are (excluding the the .INTERPINFO_
The valid constants for each return value are (excluding the .INTERPINFO_
prefix):

=over 4
Expand Down
2 changes: 1 addition & 1 deletion src/platform/generic/entropy.c
Expand Up @@ -43,7 +43,7 @@ Parrot_get_entropy(PARROT_INTERP) {
if (!urand_fh) {
const char *msg = "Couldn't open /dev/urandom for reading.";
/* This function is called during interp init, so use the GC registry
* as a way to figure out interp's initialziedness.
* as a way to figure out interp's initializedness.
*/
if (interp->gc_registry)
Parrot_ex_throw_from_c_args(interp, NULL, 1, msg);
Expand Down
2 changes: 1 addition & 1 deletion src/platform/win32/entropy.c
Expand Up @@ -42,7 +42,7 @@ Parrot_get_entropy(PARROT_INTERP) {
if (!CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)){
const char *msg = "Couldn't crypt context.";
/* This function is called during interp init, so use the GC registry
* as a way to figure out interp's initialziedness.
* as a way to figure out interp's initializedness.
*/
if (interp->gc_registry)
Parrot_ex_throw_from_c_args(interp, NULL, 1, msg);
Expand Down
2 changes: 1 addition & 1 deletion src/platform/win32/io.c
Expand Up @@ -549,7 +549,7 @@ Parrot_io_open_pipe(PARROT_INTERP, ARGIN(STRING *command), INTVAL flags,
/* Redirect input to NULL. This is to avoid
* interferences in case both the child and
* the parent tries to read from stdin.
* May be unneccessary or even interfere
* May be unnecessary or even interfere
* with valid usages, need more feedback. */
hnull = CreateFile("NUL", GENERIC_READ|GENERIC_WRITE,
0, &sec, OPEN_EXISTING,
Expand Down
2 changes: 1 addition & 1 deletion src/pmc.c
Expand Up @@ -692,7 +692,7 @@ allow the storage of any regular PMC in this PMC. Temporary PMCs do not
participate in garbage collection, and mixing them with PMCs that are
garbage-collected will cause bugs.
If you don't know what this means means, or you can't tell if either case
If you don't know what this means, or you can't tell if either case
will happen as the result of any call you make on or with this PMC,
B<DO NOT> use this function, lest you cause weird crashes and memory errors.
Use C<Parrot_pmc_new()> instead.
Expand Down

0 comments on commit b9261ad

Please sign in to comment.