Permalink
Browse files

Fix more typos.

  • Loading branch information...
1 parent 4a8395b commit 7c975ba6450c0388e130cd9beea2aa0c96a81b5e @Util Util committed Nov 10, 2010
View
@@ -808,7 +808,7 @@ N: Ovid
D: Rename 'pbc_to_c' to 'pbc_to_exe'
N: Paco Alguacil
-D: Building on various platorms
+D: Building on various platforms
E: paco.linux@gmail.com
N: Pancake
@@ -256,7 +256,7 @@ cfg_optimize(PARROT_INTERP, ARGMOD(IMC_Unit *unit))
=item C<int optimize(PARROT_INTERP, IMC_Unit *unit)>
-Runs after the CFG is built and handles constant propogation.
+Runs after the CFG is built and handles constant propagation.
used_once ... deletes assignments, when LHS is unused
@@ -260,7 +260,7 @@ method source( $trans ) {
=item C<get_body($trans)>
Performs the various macro substitutions using the specified transform,
-correctly handling nested substitions, and repeating over the whole string
+correctly handling nested substitutions, and repeating over the whole string
until no more substitutions can be made.
C<VTABLE_> macros are enforced by converting C<<< I<< x >>->vtable->I<<
@@ -298,7 +298,7 @@ structures. The rest is vocabulary.
Parrot Assembly Language (PASM) is another low-level language native to the
virtual machine. PASM is a pure assembly language, with none of the syntactic
sugar that makes PIR friendly for library development. PASM's primary purpose
-is to act as a plain English reprepresention of the bytecode format. Its
+is to act as a plain English representation of the bytecode format. Its
typical use is for debugging, rather than for writing libraries. Use PIR or a
higher-level language for development tasks.
@@ -1750,7 +1750,7 @@ virtual root for the currently selected HLL.
$P0 = get_hll_namespace
Each of these three opcodes can take a key argument to retrieve a namespace
-under the currenly selected namespace, root namespace, or HLL root namespace:
+under the currently selected namespace, root namespace, or HLL root namespace:
$P0 = get_namespace ["Duck"]
$P0 = get_root_namespace ["General";"Electric"]
@@ -77,7 +77,7 @@ By default, Parrot stores all subroutines in the namespace currently
active at the point of their declaration. The C<:anon>X<:anon subroutine
modifier> modifier tells Parrot not to store the subroutine in the
namespace. The C<:nsentry>X<:nsentry subroutine modifier> modifier stores
-the subroutine in the currenly active namespace with a different name.
+the subroutine in the currently active namespace with a different name.
For example, Parrot will store this subroutine in the current namespace
as C<bar>, not C<foo>:
@@ -564,7 +564,7 @@ Used by C<freeze> and C<thaw> to visit the contents of the PMC.
Mark a PMC as shared and read-only.
-[NOTE: these seem to be used interchangably, should be distinguished or
+[NOTE: these seem to be used interchangeably, should be distinguished or
merged.]
=back
@@ -24,7 +24,7 @@ F<docs/pdds/pdd03_calling_conventions.pod>
=cut
- # Fetch a subroutine objec
+ # Fetch a subroutine object
.const 'Sub' P0 = "_sub"
# Call the sub in argument, create return continuation
@@ -26,7 +26,7 @@ like( $except, qr/File 'no file here' not found/, '... throwing exception' );
$result = eval { $interp->load_file($hello_pbc) };
$except = $@;
ok( $result, '... returning true if it could load the file' );
-is( $except, '', '... throwing no exeption if so' );
+is( $except, '', '... throwing no exception if so' );
can_ok( $module, 'find_global' );
my $global_greet = $interp->find_global('greet');
@@ -23,7 +23,7 @@ isa_ok( $interp, $module );
my $result = eval { $interp->load_file($pipp_pbc) };
my $except = $@;
ok( $result, '... returning true if it could load the file' );
-is( $except, '', '... throwing no exeption if so' );
+is( $except, '', '... throwing no exception if so' );
# What is 'Pipp' in hll namespace 'parrot' ?
my $pipp_x = $interp->find_global( 'Pipp' );
@@ -214,7 +214,7 @@ our sub subst ($text, $regex, $repl, :$global?) {
}
=begin item split
-Splits C<$text> on occurences of C<$regex>
+Splits C<$text> on occurrences of C<$regex>
=end item
# our sub split ($regex, $text) {
@@ -88,7 +88,7 @@ Description of the test.
.local pmc config
config = interp[.IGLOBALS_CONFIG_HASH]
- .local int has_icu # flag indicating presense of icu
+ .local int has_icu # flag indicating presence of icu
has_icu = config['has_icu']
.local pmc file_iterator # iterate over list of files..
@@ -46,7 +46,7 @@ inline static void *parrot_ppc_cmpset(void * volatile *ptr,
* http://www.kegel.com/xgcc3/ppc405erratum77.html */
" stwcx. %3, 0, %1\n" /* store new using reservation */
" bne- 1b\n" /* spin on failure of reservation; - is branch prediction hint */
- " b 3f\n" "2: stwcx. %0, 0, %1\n" /* flush reserveration */
+ " b 3f\n" "2: stwcx. %0, 0, %1\n" /* flush reservation */
"3: \n" /* end label */
: /* output */
"=&r"(tmp)
@@ -262,7 +262,7 @@ struct parrot_interp_t {
struct _Thread_data *thread_data; /* thread specific items */
- UINTVAL recursion_limit; /* Sub call resursion limit */
+ UINTVAL recursion_limit; /* Sub call recursion limit */
/* during a call sequencer the caller fills these objects
* inside the invoke these get moved to the context structure */
@@ -147,7 +147,7 @@ typedef struct parrot_interp_t Interp;
* some compilers don't like lvalue casts, so macroize them
*
* NOTE: Under no circumstances is it permitted to use this macro on types
- * that are not effectivly guaranteed to be compatible.
+ * that are not effectively guaranteed to be compatible.
* Good: int->unsigned; long->unsigned long; struct*->struct*; char*->void*
* Bad: integral->pointer; struct*->char*
*/
@@ -130,7 +130,7 @@ Performs the initialization of Tcl bridge, namely instantiates TclLibrary class
=item _init_tclobj
- creates a helper for Tcl_Obj struct
- # do the tcl.h adoptations
+ # do the tcl.h adaptations
=cut
View
@@ -68,7 +68,7 @@ You must pass the address_of(&) the OUT results, of course.
Signatures:
- uppercase letters repesent each arg and denote its types
+ uppercase letters represent each arg and denote its types
I INTVAL
N FLOATVAL
View
@@ -443,7 +443,7 @@ In echo mode the script commands are written to stderr before executing."
& dbg_gcdebug,
"toggle gcdebug mode",
"Toggle gcdebug mode.\n\n\
-In gcdebug mode a garbage collection cycle is run before each opcocde,\n\
+In gcdebug mode a garbage collection cycle is run before each opcode,\n\
same as using the gcdebug core."
},
cmd_help = {
@@ -174,7 +174,7 @@ position is beyond 2 GiB
=item B<tell>(out INT, out INT, invar PMC)
64bit tell:
-Get the current file positon of stream $3 in two parts of 32-bit each
+Get the current file position of stream $3 in two parts of 32-bit each
($1 = pos >> 32, $2 = pos & 0xffffffff).
=cut
@@ -133,7 +133,7 @@ static int sweep_cb_pmc(PARROT_INTERP,
=item C<static const char * buffer_location(PARROT_INTERP, const Buffer *b)>
-Recturns a constant string representing the location of the given
+Returns a constant string representing the location of the given
Buffer C<b> in one of the PMC registers. If the PMC is not located
in one of the PMC registers of the current context, returns the
string C<"???">.
View
@@ -733,7 +733,7 @@ aligned_mem(SHIM(const Buffer *buffer), ARGIN(char *mem))
=item C<static const char * buffer_location(PARROT_INTERP, const Buffer *b)>
-Recturns a constant string representing the location of the given
+Returns a constant string representing the location of the given
Buffer C<b> in one of the PMC registers. If the PMC is not located
in one of the PMC registers of the current context, returns the
string C<"???">.
View
@@ -79,7 +79,7 @@ Parrot_io_init(PARROT_INTERP)
=item C<void Parrot_io_finish(PARROT_INTERP)>
-Closes the interpreter's IO resourses. Called during its interpreter
+Closes the interpreter's IO resources. Called during its interpreter
destruction.
=cut
View
@@ -641,7 +641,7 @@ Parrot_io_seek_unix(PARROT_INTERP, ARGMOD(PMC *filehandle),
=item C<PIOOFF_T Parrot_io_tell_unix(PARROT_INTERP, PMC *filehandle)>
-Returns the current read/write position on C<*io>'s file discriptor.
+Returns the current read/write position on C<*io>'s file descriptor.
=cut
View
@@ -456,7 +456,7 @@ Parrot_io_read_win32(PARROT_INTERP,
(Parrot_io_get_flags(interp, filehandle) | PIO_F_EOF));
}
else {
- /* FIXME : An error occured */
+ /* FIXME : An error occurred */
Parrot_io_set_flags(interp, filehandle,
(Parrot_io_get_flags(interp, filehandle) | PIO_F_EOF));
}
@@ -659,7 +659,7 @@ Mark any referenced strings and PMCs.
=item C<void morph(PMC *type)>
-Morph the call signature into a return signature. (Currenly ignores
+Morph the call signature into a return signature. (Currently ignores
the type passed in, and resets the named and positional arguments
stored.)
@@ -600,7 +600,7 @@ Used to unarchive the string.
=item C<METHOD fill(INTVAL fill)>
-Sets all of the entires to true if fill is a true value, otherwise
+Sets all of the entries to true if fill is a true value, otherwise
sets them all to false.
=cut
View
@@ -1066,7 +1066,7 @@ Parrot_str_iter_substr(PARROT_INTERP,
=item C<INTVAL Parrot_str_iter_index(PARROT_INTERP, const STRING *src,
String_iter *start, String_iter *end, const STRING *search)>
-Find the next occurence of STRING C<search> in STRING C<src> starting at
+Find the next occurrence of STRING C<search> in STRING C<src> starting at
String_iter C<start>. If C<search> is found C<start> is modified to mark the
beginning of C<search> and String_iter C<end> is set to the character after
C<search> in C<src>. Returns the character position where C<search> was found
@@ -133,7 +133,7 @@ ucs2_to_encoding(PARROT_INTERP, ARGIN(const STRING *src))
STRING * const result =
Parrot_utf16_encoding_ptr->to_encoding(interp, src);
- /* conversion to utf16 downgrads to ucs-2 if possible - check result */
+ /* conversion to utf16 downgrades to ucs-2 if possible - check result */
if (result->encoding == Parrot_utf16_encoding_ptr)
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_ENCODING,
"can't convert string with surrogates to ucs2");
View
@@ -391,7 +391,7 @@ pt_thread_wait_with(PARROT_INTERP, ARGMOD(Parrot_mutex *mutex))
pt_suspend_self_for_gc(interp);
LOCK(*mutex);
- /* since we unlocked the mutex something bad may have occured */
+ /* since we unlocked the mutex something bad may have occurred */
return;
}
@@ -26,7 +26,7 @@ _main:
OUT
##############################
-pir_2_pasm_is( <<'CODE', <<'OUT', "constant propogation and resulting dead code" );
+pir_2_pasm_is( <<'CODE', <<'OUT', "constant propagation and resulting dead code" );
.sub _main
set $I0, 5
loop:
@@ -24,7 +24,7 @@ pct/complete_workflow.t - PCT tests
Special cases in grammars and actions should be tested here.
This test script builds a parser from a grammar syntax file.
-After that acctions are added from a NQP class file.
+After that actions are added from a NQP class file.
After that the generated compiler is tested against a sample input.
=cut
@@ -90,7 +90,7 @@ Description of the test.
.local pmc config
config = interp[.IGLOBALS_CONFIG_HASH]
- .local int has_icu # flag indicating presense of icu
+ .local int has_icu # flag indicating presence of icu
has_icu = config['has_icu']
.local pmc file_iterator # iterate over list of files..
@@ -177,7 +177,7 @@ GRAMMAR
print $S4
print "\n"
- # Rerieve the transformed tree
+ # Retrieve the transformed tree
$P5 = AGI.'get'('result')
$P6 = getattribute tree, 'left'
@@ -32,7 +32,7 @@ Bernhard Schmalhofer - <Bernhard.Schmalhofer@gmx.de>
# Set up expected output for examples
# cannot test the exact result, just adding one method somewhere
-# changes all. Also namespaces are hashes. And we do not gurantee any specific
+# changes all. Also namespaces are hashes. And we do not guarantee any specific
# order of keys. test the name of the 2 toplevel names, parrot is using
my %expected = (
'namespace_dump.pir' => << 'END_EXPECTED',
View
@@ -18,7 +18,7 @@ the command-line md5sum like this:
a0f32c7d31302c1427285b1a0fcbb015 -
As well as testing the MD5 library itself, it is useful for spotting
-regressisions in the parrot VM, JIT and GC
+regressions in the parrot VM, JIT and GC
=cut
View
@@ -3,11 +3,11 @@
=head1 NAME
-t/oo/compositon.t - test role composition
+t/oo/composition.t - test role composition
=head1 SYNOPSIS
- % prove t/oo/compositon.t
+ % prove t/oo/composition.t
=head1 DESCRIPTION
View
@@ -93,7 +93,7 @@ Test various use cases of the annotate directive.
isa_ok ($P0, 'Hash', 'annotations_p op gives back hash')
$I0 = elements $P0
- is ($I0, 2, 'annoations op gave hash with right number of elements')
+ is ($I0, 2, 'annotations op gave hash with right number of elements')
$S0 = $P0['file']
is ($S0, 'loo.py', 'annotations_p op gave back correct hash')
$I1 = $P0['line']
View
@@ -3,7 +3,7 @@
=head1 NAME
-t/op/sprintf2.t - Auxilliary tests for the sprintf opcode
+t/op/sprintf2.t - Auxiliary tests for the sprintf opcode
=head1 SYNOPSIS
View
@@ -93,7 +93,7 @@ t/pmc/oplib.t - OpLib PMC
is($I0, 0, "got end opcode data")
$I0 = elements op
- is($I0, TESTED_OP_ELEMS, "the opcode tested has the expected lenght")
+ is($I0, TESTED_OP_ELEMS, "the opcode tested has the expected length")
# Using a String PMC
name = new ['String']
@@ -37,7 +37,7 @@ $conf->options->set( %{$args} );
my $step = test_step_constructor_and_description($conf);
my $ret = $step->runstep($conf);
ok( $ret, "runstep() returned true value" );
-ok(defined($step->result()), "A result has been defiined");
+ok(defined($step->result()), "A result has been defined");
$conf->replenish($serialized);
@@ -85,7 +85,7 @@ my $opsdir = q{t/tools/dev/searchops};
\$stderr,
);
unlike($stdout, qr/n_concat\(foobar/,
- "Badly formtted entry excluded from display, as expected");
+ "Badly formatted entry excluded from display, as expected");
is($total_identified, 8, "Got expected total number of ops for $pattern");
}
@@ -107,7 +107,7 @@ my $opsdir = q{t/tools/dev/searchops};
\$stderr,
);
unlike($stdout, qr/NAME/,
- "Badly formtted entry excluded from display, as expected");
+ "Badly formatted entry excluded from display, as expected");
is($total_identified, 2, "Got expected total number of ops for $pattern");
}
Oops, something went wrong.

0 comments on commit 7c975ba

Please sign in to comment.