Commit 012f7149 authored by Kyle Lutz's avatar Kyle Lutz
Browse files

Fix misspellings in VTK/Wrapping

This fixes a number of misspellings in the comments of
the source files in VTK/Wrapping. The misspellings were
found using the codespell tool.

Change-Id: I118d654d6e93caefd0541586416aa0d77690be33
parent 307bbaf9
......@@ -43,7 +43,7 @@ public class vtkJavaTesting {
&& vtkJavaTesting.LoadLib(libname, verbose) != 1
&& vtkJavaTesting.LoadLib(releaselibname, verbose) != 1
&& vtkJavaTesting.LoadLib(debuglibname, verbose) != 1) {
System.out.println("Problem loading apropriate library");
System.out.println("Problem loading appropriate library");
}
}
......
......@@ -583,7 +583,7 @@ static PyObject *PyVTKClass_NewSubclass(PyObject *, PyObject *args,
if (!PyTuple_Check(bases) || PyTuple_Size(bases) != 1)
{
PyErr_SetString(PyExc_ValueError,
"multiple inheritence is not allowed with VTK classes");
"multiple inheritance is not allowed with VTK classes");
return NULL;
}
......
......@@ -100,7 +100,7 @@ def get_libs():
if vtk_has_configuration_types:
dir = os.path.join(dir, vtk_build_type)
# Enumerate ths list of module files.
# Enumerate this list of module files.
for kit in vtk_kit_names:
libs.append(os.path.abspath(os.path.join(dir, prefix+kit+'Python'+suffix)))
if vtk_use_sip:
......@@ -132,7 +132,7 @@ def get_scripts():
if vtk_has_configuration_types:
dir = os.path.join(dir, vtk_build_type)
# Enumerate ths list of executable files.
# Enumerate this list of executable files.
for exe in vtk_exe_names:
scripts.append(os.path.abspath(os.path.join(dir, exe+suffix)))
......
......@@ -705,7 +705,7 @@ PyObject *vtkPythonOverload::CallMethod(
}
}
// Initialize the helper for ths signature
// Initialize the helper for this signature
helperArray[sig].initialize(selfIsClass, methods[sig].ml_doc);
}
......
......@@ -459,7 +459,7 @@ PyObject *vtkPythonUtil::FindNearestBaseClass(vtkObjectBase *ptr)
{
PyObject *cls = pyclass;
PyObject *bases = ((PyVTKClass *)pyclass)->vtk_bases;
// count the heirarchy depth for this class
// count the hierarchy depth for this class
for (depth = 0; PyTuple_GET_SIZE(bases) != 0; depth++)
{
cls = PyTuple_GET_ITEM(bases,0);
......@@ -796,7 +796,7 @@ void *vtkPythonUtil::UnmanglePointer(char *ptrText, int *len, const char *type)
i = sscanf(text, "_%I64x_%s", &u.l ,typeCheck);
#endif
if (strcmp(type,typeCheck) == 0)
{ // sucessfully unmangle
{ // successfully unmangle
*len = 0;
return u.p;
}
......
......@@ -159,7 +159,7 @@ private:
extern VTK_PYTHON_EXPORT void vtkPythonVoidFunc(void *);
extern VTK_PYTHON_EXPORT void vtkPythonVoidFuncArgDelete(void *);
// The following macro is used to supress missing initializer
// The following macro is used to suppress missing initializer
// warnings. Python documentation says these should not be necessary.
// We define it as a macro in case the length needs to change across
// python versions.
......
......@@ -85,7 +85,7 @@ typedef struct _TemplateArgs
*
* Note that Dimensions is an array of char pointers, in
* order to support dimensions that are sized according to
* template arg values or accoring to named constants.
* template arg values or according to named constants.
*/
typedef struct _ValueInfo
{
......
......@@ -1326,7 +1326,7 @@ unsigned int add_indirection_to_array(unsigned int type)
%%
/*
* Here is the start of the grammer
* Here is the start of the grammar
*/
strt: | strt
......
......@@ -99,7 +99,7 @@ void vtkParse_ExpandValues(
ValueInfo *valinfo, int n, const char *name[], const char *val[]);
/**
* Search for all occurences of "name" and replace with the corresponding
* Search for all occurrences of "name" and replace with the corresponding
* "val", return the initial string if no replacements occurred, otherwise
* return a new string allocated with malloc.
*/
......
......@@ -137,7 +137,7 @@ static void preproc_skip_comment(const char **cpp)
*cpp = cp;
}
/** Skip over whitespace, but not newlines unless preceeded by backlash. */
/** Skip over whitespace, but not newlines unless preceded by backlash. */
static void preproc_skip_whitespace(const char **cpp)
{
const char *cp = *cpp;
......@@ -1443,7 +1443,7 @@ static int preproc_evaluate_if(
{
if (info->ConditionalDepth == 0)
{
/* preceeding clause was not skipped, so must skip this one */
/* preceding clause was not skipped, so must skip this one */
info->ConditionalDepth = 1;
}
else if (info->ConditionalDepth == 1 &&
......
......@@ -82,7 +82,7 @@
* Pointers on the left, arrays on the right,
* and optionally a set of parentheses and a ref.
*
* The 'type' may be preceeded or followed by const,
* The 'type' may be preceded or followed by const,
* which is handled by the VTK_PARSE_CONST flag.
*
* The array dimensionality and sizes is stored
......@@ -94,7 +94,7 @@
* these two types are identical in C and C++.
*
* Any pointer can be followed by const, and any pointer
* can be preceeded by a parenthesis. However, you will
* can be preceded by a parenthesis. However, you will
* never see a parenthesis anywhere except for just before
* the leftmost pointer.
*
......
......@@ -1402,7 +1402,7 @@ void vtkWrapPython_RemovePreceededMethods(
{
argmatch = 1;
}
/* double preceeds float */
/* double precedes float */
else if ((indirect1 == indirect2) &&
(baseType1 == VTK_PARSE_DOUBLE) &&
(baseType2 == VTK_PARSE_FLOAT))
......@@ -1415,7 +1415,7 @@ void vtkWrapPython_RemovePreceededMethods(
{
if (!vote1) { vote2 = 1; }
}
/* unsigned char preceeds signed char */
/* unsigned char precedes signed char */
else if ((indirect1 == indirect2) &&
((baseType1 == VTK_PARSE_CHAR) && unsigned1) &&
(baseType2 == VTK_PARSE_SIGNED_CHAR))
......@@ -1428,7 +1428,7 @@ void vtkWrapPython_RemovePreceededMethods(
{
if (!vote1) { vote2 = 1; }
}
/* signed preceeds unsigned for everthing but char */
/* signed precedes unsigned for everything but char */
else if ((indirect1 == indirect2) &&
(baseType1 != VTK_PARSE_CHAR) &&
(baseType2 != VTK_PARSE_CHAR) &&
......@@ -1463,7 +1463,7 @@ void vtkWrapPython_RemovePreceededMethods(
{
if (!vote1) { vote2 = 1; }
}
/* a string method preceeds a "char *" method */
/* a string method precedes a "char *" method */
else if ((baseType2 == VTK_PARSE_CHAR) &&
(indirect2 == VTK_PARSE_POINTER) &&
(baseType1 == VTK_PARSE_STRING) &&
......@@ -2329,7 +2329,7 @@ void vtkWrapPython_GenerateOneMethod(
wrappedFunctions, numberOfWrappedFunctions, fnum,
&all_static, &all_legacy);
/* find all occurances of this method */
/* find all occurrences of this method */
occCounter = 0;
for (occ = fnum; occ < numberOfWrappedFunctions; occ++)
{
......@@ -2491,7 +2491,7 @@ void vtkWrapPython_GenerateOneMethod(
/* set the legacy flag */
theFunc->IsLegacy = all_legacy;
/* clear all occurances of this method from further consideration */
/* clear all occurrences of this method from further consideration */
for (occ = fnum + 1; occ < numberOfWrappedFunctions; occ++)
{
theOccurrence = wrappedFunctions[occ];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment