summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2009-04-29 12:00:38 +0000
committerOlly Betts <olly@survex.com>2009-04-29 12:00:38 +0000
commit6d8ea4f7fac8dd54e8efea46239ab5e826a73b40 (patch)
treecb466cb4a6914bc16f6c9437ad506d03db0cb186
parent38f00d3544facb8954b2809f81487a768f481d44 (diff)
downloadswig-6d8ea4f7fac8dd54e8efea46239ab5e826a73b40.tar.gz
Fix comment typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Lib/python/director.swg2
-rw-r--r--Lib/python/embed.i4
-rw-r--r--Lib/python/embed15.i2
-rw-r--r--Lib/python/pycomplex.swg8
-rw-r--r--Lib/python/pycontainer.swg2
-rw-r--r--Lib/python/pyhead.swg2
-rw-r--r--Lib/python/pyinit.swg6
-rw-r--r--Lib/python/pyiterators.swg2
-rw-r--r--Lib/python/pyname_compat.i4
-rw-r--r--Lib/python/pyrun.swg10
10 files changed, 21 insertions, 21 deletions
diff --git a/Lib/python/director.swg b/Lib/python/director.swg
index 836d107ce..ba9144539 100644
--- a/Lib/python/director.swg
+++ b/Lib/python/director.swg
@@ -47,7 +47,7 @@
/*
Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
- 'Swig' namespace. This could be usefull for multi-modules projects.
+ 'Swig' namespace. This could be useful for multi-modules projects.
*/
#ifdef SWIG_DIRECTOR_STATIC
/* Force anonymous (static) namespace */
diff --git a/Lib/python/embed.i b/Lib/python/embed.i
index 4855e3dbb..c29e8fd9f 100644
--- a/Lib/python/embed.i
+++ b/Lib/python/embed.i
@@ -1,11 +1,11 @@
//
-// embed15.i
+// embed.i
// SWIG file embedding the Python interpreter in something else.
// This file is based on Python-1.5. It will not work with
// earlier versions.
//
// This file makes it possible to extend Python and all of its
-// built-in functions without having to hack it's setup script.
+// built-in functions without having to hack its setup script.
//
diff --git a/Lib/python/embed15.i b/Lib/python/embed15.i
index f677d166e..32808b1aa 100644
--- a/Lib/python/embed15.i
+++ b/Lib/python/embed15.i
@@ -9,7 +9,7 @@
* earlier versions.
*
* This file makes it possible to extend Python and all of its
- * built-in functions without having to hack it's setup script.
+ * built-in functions without having to hack its setup script.
* ----------------------------------------------------------------------------- */
#ifdef AUTODOC
diff --git a/Lib/python/pycomplex.swg b/Lib/python/pycomplex.swg
index 7914b0e91..74be5b970 100644
--- a/Lib/python/pycomplex.swg
+++ b/Lib/python/pycomplex.swg
@@ -1,13 +1,13 @@
/*
- Defines the As/From conversors for double/float complex, you need to
- provide complex Type, the Name you want to use in the conversors,
+ Defines the As/From converters for double/float complex, you need to
+ provide complex Type, the Name you want to use in the converters,
the complex Constructor method, and the Real and Imag complex
- accesor methods.
+ accessor methods.
See the std_complex.i and ccomplex.i for concret examples.
*/
-/* the common from conversor */
+/* the common from converter */
%define %swig_fromcplx_conv(Type, Real, Imag)
%fragment(SWIG_From_frag(Type),"header")
{
diff --git a/Lib/python/pycontainer.swg b/Lib/python/pycontainer.swg
index 6fd1d56f9..7d7fdfc72 100644
--- a/Lib/python/pycontainer.swg
+++ b/Lib/python/pycontainer.swg
@@ -122,7 +122,7 @@ namespace std {
*/
if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) )
{
- /* Objects can't be compared, this mostly occured in Python 3.0 */
+ /* Objects can't be compared, this mostly occurred in Python 3.0 */
/* Compare their ptr directly for a workaround */
res = (v < w);
PyErr_Clear();
diff --git a/Lib/python/pyhead.swg b/Lib/python/pyhead.swg
index 732d4689e..bac702bb0 100644
--- a/Lib/python/pyhead.swg
+++ b/Lib/python/pyhead.swg
@@ -1,4 +1,4 @@
-/* Compatibility marcos for Python 3 */
+/* Compatibility macros for Python 3 */
#if PY_VERSION_HEX >= 0x03000000
#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg
index 286e7fb68..058934b04 100644
--- a/Lib/python/pyinit.swg
+++ b/Lib/python/pyinit.swg
@@ -152,7 +152,7 @@ swig_varlink_type(void) {
(char *)"swigvarlink", /* Type name (tp_name) */
sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
0, /* Itemsize (tp_itemsize) */
- (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
+ (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
(printfunc) swig_varlink_print, /* Print (tp_print) */
(getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
(setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
@@ -163,7 +163,7 @@ swig_varlink_type(void) {
0, /* tp_as_mapping */
0, /* tp_hash */
0, /* tp_call */
- (reprfunc)swig_varlink_str, /* tp_str */
+ (reprfunc) swig_varlink_str, /* tp_str */
0, /* tp_getattro */
0, /* tp_setattro */
0, /* tp_as_buffer */
@@ -184,7 +184,7 @@ swig_varlink_type(void) {
#endif
};
varlink_type = tmp;
- /* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */
+ /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
#if PY_VERSION_HEX < 0x03000000
varlink_type.ob_type = &PyType_Type;
#endif
diff --git a/Lib/python/pyiterators.swg b/Lib/python/pyiterators.swg
index 9cd795d7c..8719f73ce 100644
--- a/Lib/python/pyiterators.swg
+++ b/Lib/python/pyiterators.swg
@@ -9,7 +9,7 @@
* Users can derive form the SwigPyIterator to implement their
* own iterators. As an example (real one since we use it for STL/STD
* containers), the template SwigPyIterator_T does the
- * implementation for genereic C++ iterators.
+ * implementation for generic C++ iterators.
* ----------------------------------------------------------------------------- */
%include <std_common.i>
diff --git a/Lib/python/pyname_compat.i b/Lib/python/pyname_compat.i
index cdda38f80..b5acca955 100644
--- a/Lib/python/pyname_compat.i
+++ b/Lib/python/pyname_compat.i
@@ -15,10 +15,10 @@
*
* This file defined macros to provide backward compatibility for these deprecated
* symbols. In the case you have these symbols in your interface file, you can simply
-* include this file at begining of it.
+* include this file at beginning of it.
*
* However, this file may be removed in future release of SWIG, so using this file to
-* keep these inappropriate names in your SWIG interface file is also not recommanded.
+* keep these inappropriate names in your SWIG interface file is also not recommended.
* Instead, we provide a simple tool for converting your interface files to
* the new naming convention. You can download the tool here:
* https://swig.svn.sourceforge.net/svnroot/swig/trunk/Tools/pyname_patch.py
diff --git a/Lib/python/pyrun.swg b/Lib/python/pyrun.swg
index 5a1b1230e..0a3adff5d 100644
--- a/Lib/python/pyrun.swg
+++ b/Lib/python/pyrun.swg
@@ -440,7 +440,7 @@ SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
return (i < j) ? -1 : ((i > j) ? 1 : 0);
}
-/* Added for Python 3.x, whould it also useful for Python 2.x? */
+/* Added for Python 3.x, would it also be useful for Python 2.x? */
SWIGRUNTIME PyObject*
SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
{
@@ -488,7 +488,7 @@ SwigPyObject_dealloc(PyObject *v)
/* destroy is always a VARARGS method */
PyObject *res;
if (data->delargs) {
- /* we need to create a temporal object to carry the destroy operation */
+ /* we need to create a temporary object to carry the destroy operation */
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
res = SWIG_Python_CallFunctor(destroy, tmp);
Py_DECREF(tmp);
@@ -689,7 +689,7 @@ _PySwigObject_type(void) {
if (!type_init) {
const PyTypeObject tmp
= {
- /* PyOjbect header changed in Python 3 */
+ /* PyObject header changed in Python 3 */
#if PY_VERSION_HEX >= 0x03000000
PyVarObject_HEAD_INIT(&PyType_Type, 0)
#else
@@ -758,7 +758,7 @@ _PySwigObject_type(void) {
#endif
};
swigpyobject_type = tmp;
- /* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */
+ /* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
#if PY_VERSION_HEX < 0x03000000
swigpyobject_type.ob_type = &PyType_Type;
#endif
@@ -1206,7 +1206,7 @@ SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *t
* ----------------------------------------------------------------------------- */
/*
- Create a new instance object, whitout calling __init__, and set the
+ Create a new instance object, without calling __init__, and set the
'this' attribute.
*/