From f9566ad2df496e3447857962f55cb959dab3ac8a Mon Sep 17 00:00:00 2001
From: Olly Betts
virtual int functionWrapper(Node *n) {
- /* get useful atributes */
+ /* get useful attributes */
String *name = Getattr(n,"sym:name");
SwigType *type = Getattr(n,"type");
ParmList *parms = Getattr(n,"parms");
diff --git a/Examples/test-suite/chicken/README b/Examples/test-suite/chicken/README
index ba32bb464..aad730ec4 100644
--- a/Examples/test-suite/chicken/README
+++ b/Examples/test-suite/chicken/README
@@ -1,10 +1,10 @@
See ../README for common README file.
Any testcases which have _runme.ss appended after the testcase name will be detected and run.
-NOTE: I had to use _runme.ss becuase otherwise it would be hard to implement make clean
+NOTE: I had to use _runme.ss because otherwise it would be hard to implement make clean
Since when SWIG runs it generates an example.scm file for every test, to clean those files
I needed to add a rm -f *.scm to make clean. But we don't want the runme scripts to
-dissappear as well!
+disappear as well!
Any testcases which have _runme_proxy.ss appended after the testcase name will be detected
and run with the -proxy argument passed to SWIG. SWIG will not be run with the -unhide-primitive
diff --git a/Examples/test-suite/perl5/default_args_runme.pl b/Examples/test-suite/perl5/default_args_runme.pl
index 45f10b37e..20f0c9bc6 100644
--- a/Examples/test-suite/perl5/default_args_runme.pl
+++ b/Examples/test-suite/perl5/default_args_runme.pl
@@ -51,7 +51,7 @@ my $ex = new default_args::Except($false);
my $hit = 0;
eval { $ex->exspec(); $hit = 1; };
-# a zero was thrown, an exception occured, but $@ is false
+# a zero was thrown, an exception occurred, but $@ is false
is($hit, 0, "exspec 1");
eval { $ex->exspec(-1) };
like($@, qr/^ciao/, "exspec 2");
diff --git a/Lib/std/std_pair.i b/Lib/std/std_pair.i
index 7c8327795..2743430e9 100644
--- a/Lib/std/std_pair.i
+++ b/Lib/std/std_pair.i
@@ -49,7 +49,7 @@ namespace std {
};
// ***
- // The following specializations should dissapear or get
+ // The following specializations should disappear or get
// simplified when a 'const SWIGTYPE*&' can be defined
// ***
template struct pair {
diff --git a/Lib/std/std_vector.i b/Lib/std/std_vector.i
index e4f9f140d..baecf8507 100644
--- a/Lib/std/std_vector.i
+++ b/Lib/std/std_vector.i
@@ -95,7 +95,7 @@ namespace std {
};
// ***
- // This specialization should dissapear or get simplified when
+ // This specialization should disappear or get simplified when
// a 'const SWIGTYPE*&' can be defined
// ***
template
diff --git a/Source/CParse/cscanner.c b/Source/CParse/cscanner.c
index 64875a4d1..b52618606 100644
--- a/Source/CParse/cscanner.c
+++ b/Source/CParse/cscanner.c
@@ -9,7 +9,7 @@
* scanner.c
*
* SWIG tokenizer. This file is a wrapper around the generic C scanner
- * found in Swig/scanner.c. Extra logic is added both to accomodate the
+ * found in Swig/scanner.c. Extra logic is added both to accommodate the
* bison-based grammar and certain peculiarities of C++ parsing (e.g.,
* operator overloading, typedef resolution, etc.). This code also splits
* C identifiers up into keywords and SWIG directives.
@@ -373,7 +373,7 @@ void scanner_clear_rename() {
rename_active = 0;
}
-/* Used to push a ficticious token into the scanner */
+/* Used to push a fictitious token into the scanner */
static int next_token = 0;
void scanner_next_token(int tok) {
next_token = tok;
diff --git a/Source/DOH/README b/Source/DOH/README
index 9a42e8b8b..9baaabc8a 100644
--- a/Source/DOH/README
+++ b/Source/DOH/README
@@ -69,7 +69,7 @@ Close(obj) Close
String Operations
-----------------
-Replace(obj, orig, rep, flags) Replace occurences of orig with rep.
+Replace(obj, orig, rep, flags) Replace occurrences of orig with rep.
Chop(obj) Remove trailing whitespace
flags is one of the following:
diff --git a/Source/Modules/d.cxx b/Source/Modules/d.cxx
index b8e30d50c..560835751 100644
--- a/Source/Modules/d.cxx
+++ b/Source/Modules/d.cxx
@@ -3625,7 +3625,7 @@ private:
// If the import statement has been found in the target string, we have to
// check if the previous import was static, which would lead to problems
// if this import is not.
- // Thus, we check if the seven characters in front of the occurence are
+ // Thus, we check if the seven characters in front of the occurrence are
// »static «. If the import string passed is also static, the checks fail
// even if the found statement is also static because the last seven
// characters would be part of the previous import statement then.
diff --git a/Source/Modules/lua.cxx b/Source/Modules/lua.cxx
index ef2fa96de..34763290f 100644
--- a/Source/Modules/lua.cxx
+++ b/Source/Modules/lua.cxx
@@ -113,7 +113,7 @@ private:
String *s_var_tab; // table of global variables
String *s_const_tab; // table of global constants
String *s_methods_tab; // table of class methods
- String *s_attr_tab; // table of class atributes
+ String *s_attr_tab; // table of class attributes
String *s_luacode; // luacode to be called during init
String *s_dot_get; // table of variable 'get' functions
String *s_dot_set; // table of variable 'set' functions
diff --git a/Tools/pyname_patch.py b/Tools/pyname_patch.py
index 5931269f9..f8f436c38 100644
--- a/Tools/pyname_patch.py
+++ b/Tools/pyname_patch.py
@@ -109,7 +109,7 @@ def main(fns):
if patch_file(fn):
print "Patched file", fn
except IOError:
- print "Error occured during patching", fn
+ print "Error occurred during patching", fn
return
if __name__=="__main__":