Misc. typos

found via `codespell` and `grep`
This commit is contained in:
luz.paz 2018-05-14 11:00:52 -04:00 • committed by luz paz
commit 60dfa31a67
90 changed files with 155 additions and 155 deletions

View file

@ -32,7 +32,7 @@ type overwrittenMethodsOnFooBarAbstract struct {
fb FooBarAbstract
// If additional constructor arguments have been given they are typically
// stored here so that the overriden methods can use them.
// stored here so that the overridden methods can use them.
}
func (om *overwrittenMethodsOnFooBarAbstract) Foo() string {
@ -59,7 +59,7 @@ func NewFooBarGo() FooBarGo {
// The memory of the FooBarAbstract director object instance can be
// automatically freed once the FooBarGo instance is garbage collected by
// uncommenting the following line. Please make sure to understand the
// runtime.SetFinalizer specific gotchas before doing this. Furthemore
// runtime.SetFinalizer specific gotchas before doing this. Furthermore
// DeleteFooBarGo should be deleted if a finalizer is in use or the fooBarGo
// struct needs additional data to prevent double deletion.
// runtime.SetFinalizer(fbgs, FooBarGo.deleteFooBarAbstract)

View file

@ -12,7 +12,7 @@
;;; Explanation: The three lines at the beginning of this script are
;;; telling the kernel to load the enhanced guile interpreter named
;;; "matrix"; to execute the function "do-test" (-e option) after loading
;;; this script (-s option). There are a lot more options wich allow for
;;; this script (-s option). There are a lot more options which allow for
;;; even finer tuning. SEE ALSO: Section "Guile Scripts" in the "Guile
;;; reference manual -- Part I: Preliminaries".
;;;

View file

@ -15,14 +15,14 @@ back to this behavior, use: */
void divide_l(int a, int b, int *OUTPUT, int *OUTPUT);
/* Multiple values as vectors. By issueing: */
/* Multiple values as vectors. By issuing: */
%values_as_vector;
/* vectors instead of lists will be used. */
void divide_v(int a, int b, int *OUTPUT, int *OUTPUT);
/* Multiple values for multiple-value continuations.
(This is the most elegant way.) By issueing: */
(This is the most elegant way.) By issuing: */
%multiple_values;
/* multiple values are passed to the multiple-value
continuation, as created by `call-with-values' or the

View file

@ -10,7 +10,7 @@ try{
if(error == -1) {
console.log("t.unknown() didn't throw");
} else {
console.log("successfully catched throw in Test::unknown().");
console.log("successfully caught throw in Test::unknown().");
}
}
@ -22,7 +22,7 @@ catch(error){
if(error == -1) {
console.log("t.simple() did not throw");
} else {
console.log("successfully catched throw in Test::simple().");
console.log("successfully caught throw in Test::simple().");
}
}
@ -33,7 +33,7 @@ try{
if(error == -1) {
console.log("t.message() did not throw");
} else {
console.log("successfully catched throw in Test::message().");
console.log("successfully caught throw in Test::message().");
}
}
@ -45,7 +45,7 @@ catch(error){
if(error == -1) {
console.log("t.hosed() did not throw");
} else {
console.log("successfully catched throw in Test::hosed().");
console.log("successfully caught throw in Test::hosed().");
}
}
@ -58,7 +58,7 @@ for (var i=1; i<4; i++) {
if(error == -1) {
console.log("t.multi(" + i + ") did not throw");
} else {
console.log("successfully catched throw in Test::multi().");
console.log("successfully caught throw in Test::multi().");
}
}
}

View file

@ -44,7 +44,7 @@ example.print_vars();
console.log("\nNow I'm going to try and modify some read only variables");
console.log("Tring to set 'path'");
console.log("Trying to set 'path'");
try{
example.path = "Whoa!";
console.log("Hey, what's going on?!?! This shouldn't work");

View file

@ -1,6 +1,6 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -5,7 +5,7 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -2,7 +2,7 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -16,7 +16,7 @@ and check to see if types Foo and Bar are registered with it
(Bar should be & Foo should not)
Note: Though both the modules exist and are loaded, they are not linked together,
as they are connected to seperate lua interpreters.
as they are connected to separate lua interpreters.
When the third lua state loads both example.i and example2.i,
the two modules are now linked together, and all can now find

View file

@ -2,7 +2,7 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else
@ -48,7 +48,7 @@ else
end
-- this is a rather strange way to perform the multiple catch of exceptions
print "calling t:mutli()"
print "calling t:multi()"
for i=1,3 do
ok,res=pcall(function() t:multi(i) end)
if ok then

View file

@ -1,6 +1,6 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -1,6 +1,6 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -1,7 +1,7 @@
-- Operator overloading example
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -3,7 +3,7 @@
print("Testing the %import directive")
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
function loadit(a)
lib=loadlib(a..'.dll','luaopen_'..a) or loadlib(a..'.so','luaopen_'..a)
assert(lib)()

View file

@ -5,7 +5,7 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -1,7 +1,7 @@
-- Operator overloading example
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -1,6 +1,6 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -1,6 +1,6 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else

View file

@ -1,6 +1,6 @@
---- importing ----
if string.sub(_VERSION,1,7)=='Lua 5.0' then
-- lua5.0 doesnt have a nice way to do this
-- lua5.0 doesn't have a nice way to do this
lib=loadlib('example.dll','luaopen_example') or loadlib('example.so','luaopen_example')
assert(lib)()
else
@ -54,9 +54,9 @@ example.print_vars()
print "\nNow I'm going to try and modify some read only variables";
print " Tring to set 'path' to 'Whoa!'";
print " Trying to set 'path' to 'Whoa!'";
if pcall(function() example.path = "Whoa!" end)==true then
print " Thats funny, it didn't give an error!"
print " That's funny, it didn't give an error!"
else
print " It gave an error, as it should"
end
@ -64,7 +64,7 @@ print(" Just checking the value: path =", example.path)
print " Trying to set 'status' to '0'";
if pcall(function() example.status = 0 end)==true then
print " Thats funny, it didn't give an error!"
print " That's funny, it didn't give an error!"
else
print " It gave an error, as it should"
end

View file

@ -51,7 +51,7 @@ swigexample.print_vars();
printf("\nNow I'm going to try and modify some read only variables\n");
printf(" Tring to set 'path'\n");
printf(" Trying to set 'path'\n");
try
swigexample.cvar.path = "Whoa!";
printf("Hey, what's going on?!?! This shouldn't work\n");

View file

@ -65,7 +65,7 @@ if (!$@) {
}
print " get error for 'status'\n";
print " Tring to set 'path'\n";
print " Trying to set 'path'\n";
eval { $example::path = "Whoa!";};
if (!$@) {
die("path");

View file

@ -26,7 +26,7 @@ $container->addShape($s);
print "\nA total of " . Shape::nshapes() . " shapes were created\n";
# ----- Delete by the old references -----
# This should not truely delete the shapes because they are now owned
# This should not truly delete the shapes because they are now owned
# by the ShapeContainer.
print "Delete the old references.";
@ -38,7 +38,7 @@ $s = NULL;
print "\nA total of " . Shape::nshapes() . " shapes remain\n";
# ----- Delete by the container -----
# This should truely delete the shapes
# This should truly delete the shapes
print "Delete the container.";
$container = NULL;

View file

@ -26,7 +26,7 @@ $container->addShape($s);
print "\nA total of " . Shape::nshapes() . " shapes were created\n";
# ----- Delete by the old references -----
# This should not truely delete the shapes because they are now owned
# This should not truly delete the shapes because they are now owned
# by the ShapeContainer.
print "Delete the old references.";
@ -38,7 +38,7 @@ $s = NULL;
print "\nA total of " . Shape::nshapes() . " shapes remain\n";
# ----- Delete by the container -----
# This should truely delete the shapes
# This should truly delete the shapes
print "Delete the container.";
$container = NULL;

View file

@ -48,7 +48,7 @@ example.print_vars()
print "\nNow I'm going to try and modify some read only variables"
print " Tring to set 'path'"
print " Trying to set 'path'"
try:
example.cvar.path = "Whoa!"
print "Hey, what's going on?!?! This shouldn't work"

View file

@ -48,7 +48,7 @@ Example.print_vars()
puts "\nNow I'm going to try and modify some read only variables";
puts " Tring to set 'path'";
puts " Trying to set 'path'";
begin
Example.path = "Whoa!"
puts "Hey, what's going on?!?! This shouldn't work"

View file

@ -7,7 +7,7 @@ if ierr <> 0 then
end
example_Init();
// This example shows how to use C++ fonctions with STL lists arguments
// This example shows how to use C++ functions with STL lists arguments
// Here, STL lists are converted from/to Scilab matrices (SWIG_SCILAB_EXTRA_NATIVE_CONTAINERS is not defined)
// integer lists

View file

@ -49,7 +49,7 @@ print_vars()
// Immutable variables
printf("\nNow I''m going to try and modify some read only variables\n");
printf(" Tring to set ''path''\n");
printf(" Trying to set ''path''\n");
try
path_set("Whoa!");
printf("Hey, what''s going on?!?! This shouldn''t work\n");

View file

@ -48,7 +48,7 @@ print_vars
puts "\nNow I'm going to try and modify some read only variables";
puts " Tring to set 'path'";
puts " Trying to set 'path'";
if { [catch {
set path "Whoa!"
puts "Hey, what's going on?!?! This shouldn't work"

View file

@ -1,4 +1,4 @@
// Test "Missing identifier for ..." errrors
// Test "Missing identifier for ..." errors
%module xxx
#ifdef

View file

@ -32,8 +32,8 @@ assert(is_std_string(cobj) and cobj:c_str()=="x") -- check type & value
test_const_pointer(cobj)
-- this shouldnt work, but it does
-- swig doesnt appear to diff between const object ptrs & object ptrs very well
-- this shouldn't work, but it does
-- swig doesn't appear to diff between const object ptrs & object ptrs very well
test_pointer(cobj) -- this wants an non const object (give it a const one!)
-- refs are also wrappered as ptrs (unless the correct typemaps are applied)

View file

@ -1,8 +1,8 @@
require("import") -- the import fn
import("newobject2",true) -- import code
foo1 = newobject2.makeFoo() -- lua doesnt yet support static fns properly
assert(newobject2.fooCount() == 1) -- lua doesnt yet support static fns properly
foo1 = newobject2.makeFoo() -- lua doesn't yet support static fns properly
assert(newobject2.fooCount() == 1) -- lua doesn't yet support static fns properly
foo2 = newobject2.makeFoo()
assert(newobject2.fooCount() == 2)

View file

@ -11,14 +11,14 @@ back to this behavior, use: */
void divide_l(int a, int b, int *OUTPUT, int *OUTPUT);
/* Multiple values as vectors. By issueing: */
/* Multiple values as vectors. By issuing: */
%values_as_vector;
/* vectors instead of lists will be used. */
void divide_v(int a, int b, int *OUTPUT, int *OUTPUT);
/* Multiple values for multiple-value continuations.
(This is the most elegant way.) By issueing: */
(This is the most elegant way.) By issuing: */
%multiple_values;
/* multiple values are passed to the multiple-value
continuation, as created by `call-with-values' or the

View file

@ -2,10 +2,10 @@ return_const_value
p = return_const_value.Foo_ptr.getPtr();
if (p.getVal() != 17)
error("Runtime test1 faild. p.getVal()=", p.getVal())
error("Runtime test1 failed. p.getVal()=", p.getVal())
endif
p = return_const_value.Foo_ptr.getConstPtr();
if (p.getVal() != 17)
error("Runtime test2 faild. p.getVal()=", p.getVal())
error("Runtime test2 failed. p.getVal()=", p.getVal())
endif

View file

@ -119,7 +119,7 @@ class check {
$parents[]=$c;
$c=strtolower(get_parent_class($c));
}
if ($c!=$b) return check::fail("Class $a does not inherit from class $b\nHierachy:\n %s\n",join("\n ",$parents));
if ($c!=$b) return check::fail("Class $a does not inherit from class $b\nHierarchy:\n %s\n",join("\n ",$parents));
return TRUE;
}

View file

@ -7,7 +7,7 @@ require "threads_exception.php";
check::functions(array(test_simple,test_message,test_hosed,test_unknown,test_multi,is_python_builtin));
// Check classes.
check::classes(array(Exc,Test,threads_exception));
// Chek globals.
// Check globals.
check::globals(array(exc_code,exc_msg));
$t = new Test();

View file

@ -119,7 +119,7 @@ class check {
$parents[]=$c;
$c=strtolower(get_parent_class($c));
}
if ($c!=$b) return check::fail("Class $a does not inherit from class $b\nHierachy:\n %s\n",join("\n ",$parents));
if ($c!=$b) return check::fail("Class $a does not inherit from class $b\nHierarchy:\n %s\n",join("\n ",$parents));
return TRUE;
}

View file

@ -7,7 +7,7 @@ require "threads_exception.php";
check::functions(array(test_simple,test_message,test_hosed,test_unknown,test_multi,is_python_builtin));
// Check classes.
check::classes(array(Exc,Test,threads_exception));
// Chek globals.
// Check globals.
check::globals(array(exc_code,exc_msg));
$t = new Test();

View file

@ -6,7 +6,7 @@ import sys
if len(sys.argv) >= 2 and sys.argv[1] == "benchmark":
# run the benchmark
import time
k = 1000000 # number of times to excute the functions
k = 1000000 # number of times to execute the functions
t = time.time()
a = bytearray(b'hello world')

View file

@ -3,10 +3,10 @@ import sys
p = return_const_value.Foo_ptr_getPtr()
if (p.getVal() != 17):
print "Runtime test1 faild. p.getVal()=", p.getVal()
print "Runtime test1 failed. p.getVal()=", p.getVal()
sys.exit(1)
p = return_const_value.Foo_ptr_getConstPtr()
if (p.getVal() != 17):
print "Runtime test2 faild. p.getVal()=", p.getVal()
print "Runtime test2 failed. p.getVal()=", p.getVal()
sys.exit(1)

View file

@ -1,6 +1,6 @@
%module redefined_not
// These should not emit an Identifer redefined warning
// These should not emit an Identifier redefined warning
%inline %{
typedef unsigned int my_size_t;
namespace Std {

View file

@ -29,7 +29,7 @@ CPP_STD_TEST_CASES += \
include $(srcdir)/../common.mk
# Overriden variables
# Overridden variables
SRCDIR = ../$(srcdir)/
# Local variables

View file

@ -6,7 +6,7 @@ function checkerror(ierr, cmd)
if ierr <> 0 then swigtesterror("error " + string(ierr) + " in """ + cmd + """"); end
endfunction
// test container of pointers returned from fonction (expected a list)
// test container of pointers returned from function (expected a list)
function [classAPtr_list, classAPtr1, classAPtr2] = testCreateContainerPtr(container, value1, value2)
classAPtr1 = new_ClassA(value1);
classAPtr2 = new_ClassA(value2);
@ -57,7 +57,7 @@ endfunction
// computed on the container
function testContainerType(container, value_type, value1, value2, ..
expected_returned_container, expected_accumulate_value)
// test container of basic type returned from fonction
// test container of basic type returned from function
func = msprintf("ret_%s_%s", value_type, container);
if value_type == "string" then
cmd = msprintf("c = %s(''%s'', ''%s'');", func, value1, value2);

View file

@ -25,7 +25,7 @@ IntDeque_push_back(intDeque, 6);
avg = average(intDeque);
checkequal(avg, 4.0, "average(intDeque)");
// half shoud return a deque with elements half of the input elements
// half should return a deque with elements half of the input elements
RealDeque_clear(realDeque);
RealDeque_push_front(realDeque, 2.0);
RealDeque_push_front(realDeque, 4.0);

View file

@ -2,7 +2,7 @@
exec("swigtest.start", -1);
// test matrix passed as output argument from fonction
// test matrix passed as output argument from function
function test_outMatrix(func, valueType, expectedOutMatrix)
funcName = msprintf("out%s%s", valueType, func);
cmd = msprintf("outMatrix = %s();", funcName);
@ -13,7 +13,7 @@ function test_outMatrix(func, valueType, expectedOutMatrix)
checkequal(outMatrix, expectedOutMatrix, funcName);
endfunction
// test matrix passed as input argument of fonction
// test matrix passed as input argument of function
function test_inMatrix(func, valueType, inMatrix, expectedInValue)
funcName = msprintf("in%s%s", valueType, func);
cmd = msprintf("inValue = %s(inMatrix);", funcName);
@ -24,7 +24,7 @@ function test_inMatrix(func, valueType, inMatrix, expectedInValue)
checkequal(inValue, expectedInValue, funcName);
endfunction
// test matrixes passed as input and output arguments of fonction
// test matrixes passed as input and output arguments of function
function test_inoutMatrix(func, valueType, inoutMatrix, expectedInoutMatrix)
funcName = msprintf("inout%s%s", valueType, func);
cmd = msprintf("inoutMatrix = %s(inoutMatrix);", funcName);

View file

@ -8,15 +8,15 @@ endfunction
foo = new_Foo();
checkException('Foo_test_int(foo)', 'Exception (int) occured: 37');
checkException('Foo_test_int(foo)', 'Exception (int) occurred: 37');
checkException('Foo_test_msg(foo)', 'Exception (char const *) occured: Dead');
checkException('Foo_test_msg(foo)', 'Exception (char const *) occurred: Dead');
checkException('Foo_test_multi(foo, 1)', 'Exception (int) occured: 37');
checkException('Foo_test_multi(foo, 1)', 'Exception (int) occurred: 37');
checkException('Foo_test_multi(foo, 2)', 'Exception (char const *) occured: Dead');
checkException('Foo_test_multi(foo, 2)', 'Exception (char const *) occurred: Dead');
checkException('Foo_test_cls(foo)', 'Exception (CError) occured.');
checkException('Foo_test_cls(foo)', 'Exception (CError) occurred.');
delete_Foo(foo);

View file

@ -26,7 +26,7 @@ namespace Space {
%template(Bool4False) Space::Bool4<false>;
// Forward declarated templates
// Forward declared templates
%inline %{
namespace Space {
template <bool B> struct BoolForward1;

View file

@ -7,7 +7,7 @@
%inline %{
// This typedef triggers an inifinite recursion
// This typedef triggers an infinite recursion
// in the next test1() nd test2() function declarations
typedef std::complex<double> complex;