summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2023-05-16 09:55:49 +1200
committerOlly Betts <olly@survex.com>2023-05-16 09:55:49 +1200
commitaf87945aeafedf70b6ea729937b62cdff0b981ce (patch)
treed6c659334a819b561f14af9f2a55494ae36452e9
parente5650d8fa44e64d9b4ffd70b896f757eae4a65e6 (diff)
downloadswig-af87945aeafedf70b6ea729937b62cdff0b981ce.tar.gz
Clean up double spaces between words in comments
-rw-r--r--Examples/test-suite/extend_template_ns.i2
-rw-r--r--Examples/test-suite/li_boost_intrusive_ptr.i2
-rw-r--r--Examples/test-suite/li_boost_shared_ptr.i2
-rw-r--r--Examples/test-suite/template_ns_scope.i2
-rw-r--r--Source/Modules/overload.cxx6
-rw-r--r--Source/Modules/r.cxx4
-rw-r--r--Source/Modules/swigmod.h4
-rw-r--r--Tools/javascript/v8_shell.cxx2
8 files changed, 12 insertions, 12 deletions
diff --git a/Examples/test-suite/extend_template_ns.i b/Examples/test-suite/extend_template_ns.i
index 3712f2c8f..e4ab3ce42 100644
--- a/Examples/test-suite/extend_template_ns.i
+++ b/Examples/test-suite/extend_template_ns.i
@@ -7,7 +7,7 @@ namespace oss
%}
namespace oss {
- %extend Foo<One> { //************ this doesn't work
+ %extend Foo<One> { //************ this doesn't work
int test1(int x) { return x; }
};
}
diff --git a/Examples/test-suite/li_boost_intrusive_ptr.i b/Examples/test-suite/li_boost_intrusive_ptr.i
index c3b211208..13937434f 100644
--- a/Examples/test-suite/li_boost_intrusive_ptr.i
+++ b/Examples/test-suite/li_boost_intrusive_ptr.i
@@ -5,7 +5,7 @@
// like 'top'. There is a wrapper for intrusive_ptr in intrusive_ptr_wrapper.h which enables one to
// count the instances of intrusive_ptr. Uncomment the INTRUSIVE_PTR_WRAPPER macro to turn this on.
//
-// Also note the debug_shared flag which can be set from the target language.
+// Also note the debug_shared flag which can be set from the target language.
//
// Usage of intrusive_ptr_add_ref and intrusive_ptr_release based on boost testing:
// http://www.boost.org/doc/libs/1_36_0/libs/smart_ptr/test/intrusive_ptr_test.cpp
diff --git a/Examples/test-suite/li_boost_shared_ptr.i b/Examples/test-suite/li_boost_shared_ptr.i
index 48d5fc2f1..678003985 100644
--- a/Examples/test-suite/li_boost_shared_ptr.i
+++ b/Examples/test-suite/li_boost_shared_ptr.i
@@ -5,7 +5,7 @@
// like 'top'. There is a wrapper for shared_ptr in shared_ptr_wrapper.h which enables one to
// count the instances of shared_ptr. Uncomment the SHARED_PTR_WRAPPER macro to turn this on.
//
-// Also note the debug_shared flag which can be set from the target language.
+// Also note the debug_shared flag which can be set from the target language.
%module li_boost_shared_ptr
diff --git a/Examples/test-suite/template_ns_scope.i b/Examples/test-suite/template_ns_scope.i
index 928f628d2..57d27a8de 100644
--- a/Examples/test-suite/template_ns_scope.i
+++ b/Examples/test-suite/template_ns_scope.i
@@ -10,7 +10,7 @@
{
public:
A() {} // *** Here, the const. breaks swig ***
- // *** swig works without it ***
+ // *** swig works without it ***
};
namespace hello
diff --git a/Source/Modules/overload.cxx b/Source/Modules/overload.cxx
index 5189c8ba4..e3f4f586b 100644
--- a/Source/Modules/overload.cxx
+++ b/Source/Modules/overload.cxx
@@ -560,7 +560,7 @@ String *Swig_overload_dispatch_cast(Node *n, const_String_or_char_ptr fmt, int *
}
}
if (!Getattr(pj, "tmap:in:SWIGTYPE") && Getattr(pj, "tmap:typecheck:SWIGTYPE")) {
- /* we emit a warning if the argument defines the 'in' typemap, but not the 'typecheck' one */
+ /* we emit a warning if the argument defines the 'in' typemap, but not the 'typecheck' one */
Swig_warning(WARN_TYPEMAP_TYPECHECK_UNDEF, Getfile(ni), Getline(ni),
"Overloaded method %s with no explicit typecheck typemap for arg %d of type '%s'\n",
Swig_name_decl(n), j, SwigType_str(Getattr(pj, "type"), 0));
@@ -737,7 +737,7 @@ static String *overload_dispatch_fast(Node *n, const_String_or_char_ptr fmt, int
}
}
if (!Getattr(pj, "tmap:in:SWIGTYPE") && Getattr(pj, "tmap:typecheck:SWIGTYPE")) {
- /* we emit a warning if the argument defines the 'in' typemap, but not the 'typecheck' one */
+ /* we emit a warning if the argument defines the 'in' typemap, but not the 'typecheck' one */
Swig_warning(WARN_TYPEMAP_TYPECHECK_UNDEF, Getfile(ni), Getline(ni),
"Overloaded method %s with no explicit typecheck typemap for arg %d of type '%s'\n",
Swig_name_decl(n), j, SwigType_str(Getattr(pj, "type"), 0));
@@ -836,7 +836,7 @@ String *Swig_overload_dispatch(Node *n, const_String_or_char_ptr fmt, int *maxar
num_braces++;
}
if (!Getattr(pj, "tmap:in:SWIGTYPE") && Getattr(pj, "tmap:typecheck:SWIGTYPE")) {
- /* we emit a warning if the argument defines the 'in' typemap, but not the 'typecheck' one */
+ /* we emit a warning if the argument defines the 'in' typemap, but not the 'typecheck' one */
Swig_warning(WARN_TYPEMAP_TYPECHECK_UNDEF, Getfile(ni), Getline(ni),
"Overloaded method %s with no explicit typecheck typemap for arg %d of type '%s'\n",
Swig_name_decl(n), j, SwigType_str(Getattr(pj, "type"), 0));
diff --git a/Source/Modules/r.cxx b/Source/Modules/r.cxx
index 1c2da3ac4..b8c6f291c 100644
--- a/Source/Modules/r.cxx
+++ b/Source/Modules/r.cxx
@@ -327,7 +327,7 @@ protected:
String *s_namespace;
// State variables that carry information across calls to functionWrapper()
- // from member accessors and class declarations.
+ // from member accessors and class declarations.
String *opaqueClassDeclaration;
int processing_variable;
int processing_member_access_function;
@@ -2783,7 +2783,7 @@ Language *swig_r(void) {
*----------------------------------------------------------------------- */
String * R::processType(SwigType *t, Node *n, int *nargs) {
//XXX Need to handle typedefs, e.g.
- // a type which is a typedef to a function pointer.
+ // a type which is a typedef to a function pointer.
SwigType *tmp = Getattr(n, "tdname");
if (debugMode)
diff --git a/Source/Modules/swigmod.h b/Source/Modules/swigmod.h
index dfeb2bace..bcbb4bd44 100644
--- a/Source/Modules/swigmod.h
+++ b/Source/Modules/swigmod.h
@@ -243,10 +243,10 @@ public:
/* Returns the dirprot mode */
int dirprot_mode() const;
- /* Check if the non public constructor is needed (for directors) */
+ /* Check if the non public constructor is needed (for directors) */
int need_nonpublic_ctor(Node *n);
- /* Check if the non public member is needed (for directors) */
+ /* Check if the non public member is needed (for directors) */
int need_nonpublic_member(Node *n);
/* Set none comparison string */
diff --git a/Tools/javascript/v8_shell.cxx b/Tools/javascript/v8_shell.cxx
index 336edb2a6..008f63271 100644
--- a/Tools/javascript/v8_shell.cxx
+++ b/Tools/javascript/v8_shell.cxx
@@ -11,7 +11,7 @@
typedef int (*V8ExtensionInitializer) (v8::Handle<v8::Object> module);
-// Note: these typedefs and defines are used to deal with v8 API changes since version 3.19.00
+// Note: these typedefs and defines are used to deal with v8 API changes since version 3.19.00
typedef void SwigV8ReturnValue;
typedef v8::FunctionCallbackInfo<v8::Value> SwigV8Arguments;