From 4b67f965496c40413642bc42cd686a5ed6909a49 Mon Sep 17 00:00:00 2001 From: "luz.paz" <luzpaz@users.noreply.github.com> Date: Wed, 3 Jan 2018 07:07:34 -0500 Subject: [PATCH] Remove superfluous double whitespace in appropriate places + fix documentation of method name + fix some source comment typos --- CMakeLists.txt | 2 +- DynamicLoader.cxx | 2 +- Glob.cxx | 4 ++-- ProcessUNIX.c | 2 +- RegularExpression.cxx | 8 ++++---- RegularExpression.hxx.in | 2 +- SystemInformation.cxx | 2 +- SystemInformation.hxx.in | 2 +- SystemTools.cxx | 2 +- SystemTools.hxx.in | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 351e38d..ccf4e91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -576,7 +576,7 @@ IF(KWSYS_USE_SystemInformation) CHECK_INCLUDE_FILE_CXX("execinfo.h" KWSYS_CXX_HAS_EXECINFOH) IF (KWSYS_CXX_HAS_EXECINFOH) # we have the backtrace header check if it - # can be used with this compiler + # can be used with this compiler SET(KWSYS_PLATFORM_CXX_TEST_LINK_LIBRARIES ${EXECINFO_LIB}) KWSYS_PLATFORM_CXX_TEST(KWSYS_CXX_HAS_BACKTRACE "Checking whether backtrace works with this C++ compiler" DIRECT) diff --git a/DynamicLoader.cxx b/DynamicLoader.cxx index 664f183..9b7d9bf 100644 --- a/DynamicLoader.cxx +++ b/DynamicLoader.cxx @@ -60,7 +60,7 @@ const char* DynamicLoader::LastError() } // namespace KWSYS_NAMESPACE #elif defined(__hpux) -// Implementation for HPUX machines +// Implementation for HPUX machines #include <dl.h> #include <errno.h> diff --git a/Glob.cxx b/Glob.cxx index d2f0b85..64962cd 100644 --- a/Glob.cxx +++ b/Glob.cxx @@ -81,13 +81,13 @@ std::string Glob::PatternToRegex(const std::string& pattern, int c = *i; if (c == '*') { // A '*' (not between brackets) matches any string. - // We modify this to not match slashes since the orignal glob + // We modify this to not match slashes since the original glob // pattern documentation was meant for matching file name // components separated by slashes. regex += "[^/]*"; } else if (c == '?') { // A '?' (not between brackets) matches any single character. - // We modify this to not match slashes since the orignal glob + // We modify this to not match slashes since the original glob // pattern documentation was meant for matching file name // components separated by slashes. regex += "[^/]"; diff --git a/ProcessUNIX.c b/ProcessUNIX.c index 718a1aa..1e80b39 100644 --- a/ProcessUNIX.c +++ b/ProcessUNIX.c @@ -231,7 +231,7 @@ struct kwsysProcess_s when reaping PIDs or modifying this array to avoid race conditions. */ volatile pid_t* volatile ForkPIDs; - /* Flag for whether the children were terminated by a faild select. */ + /* Flag for whether the children were terminated by a failed select. */ int SelectError; /* The timeout length. */ diff --git a/RegularExpression.cxx b/RegularExpression.cxx index fa3551c..ed517e2 100644 --- a/RegularExpression.cxx +++ b/RegularExpression.cxx @@ -43,7 +43,7 @@ RegularExpression::RegularExpression(const RegularExpression& rxp) int ind; this->progsize = rxp.progsize; // Copy regular expression size this->program = new char[this->progsize]; // Allocate storage - for (ind = this->progsize; ind-- != 0;) // Copy regular expresion + for (ind = this->progsize; ind-- != 0;) // Copy regular expression this->program[ind] = rxp.program[ind]; // Copy pointers into last successful "find" operation this->regmatch = rxp.regmatch; @@ -76,7 +76,7 @@ RegularExpression& RegularExpression::operator=(const RegularExpression& rxp) this->progsize = rxp.progsize; // Copy regular expression size delete[] this->program; this->program = new char[this->progsize]; // Allocate storage - for (ind = this->progsize; ind-- != 0;) // Copy regular expresion + for (ind = this->progsize; ind-- != 0;) // Copy regular expression this->program[ind] = rxp.program[ind]; // Copy pointers into last successful "find" operation this->regmatch = rxp.regmatch; @@ -128,8 +128,8 @@ bool RegularExpression::deep_equal(const RegularExpression& rxp) const this->regmatch.end() == rxp.regmatch.end()); } -// The remaining code in this file is derived from the regular expression code -// whose copyright statement appears below. It has been changed to work +// The remaining code in this file is derived from the regular expression code +// whose copyright statement appears below. It has been changed to work // with the class concepts of C++ and COOL. /* diff --git a/RegularExpression.hxx.in b/RegularExpression.hxx.in index a3fe72d..3cbbeb8 100644 --- a/RegularExpression.hxx.in +++ b/RegularExpression.hxx.in @@ -202,7 +202,7 @@ inline std::string RegularExpressionMatch::match(int n) const * * ? Matches preceding pattern zero or once only * - * () Saves a matched expression and uses it in a later match + * () Saves a matched expression and uses it in a later match * * Note that more than one of these metacharacters can be used * in a single regular expression in order to create complex diff --git a/SystemInformation.cxx b/SystemInformation.cxx index ab1f40a..8d148d8 100644 --- a/SystemInformation.cxx +++ b/SystemInformation.cxx @@ -1649,7 +1649,7 @@ int SystemInformationImplementation::GetFullyQualifiedDomainName( // any number of interfaces on this system we look for the // first of these that contains the name returned by gethostname // and is longer. failing that we return gethostname and indicate - // with a failure code. Return of a failure code is not necessarilly + // with a failure code. Return of a failure code is not necessarily // an indication of an error. for instance gethostname may return // the fully qualified domain name, or there may not be one if the // system lives on a private network such as in the case of a cluster diff --git a/SystemInformation.hxx.in b/SystemInformation.hxx.in index 5678e8a..de22232 100644 --- a/SystemInformation.hxx.in +++ b/SystemInformation.hxx.in @@ -110,7 +110,7 @@ public: size_t GetAvailablePhysicalMemory(); // returns an informative general description if the installed and - // available ram on this system. See the GetHostMmeoryTotal, and + // available ram on this system. See the GetHostMemoryTotal, and // Get{Host,Proc}MemoryAvailable methods for more information. std::string GetMemoryDescription(const char* hostLimitEnvVarName = NULL, const char* procLimitEnvVarName = NULL); diff --git a/SystemTools.cxx b/SystemTools.cxx index f547362..ad8b02d 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -1072,7 +1072,7 @@ bool SystemTools::WriteRegistryValue(const std::string&, const std::string&, // HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath // => will delete the data of the "default" value of the key // HKEY_LOCAL_MACHINE\SOFTWARE\Scriptics\Tcl\8.4;Root -// => will delete the data of the "Root" value of the key +// => will delete the data of the "Root" value of the key #if defined(_WIN32) && !defined(__CYGWIN__) bool SystemTools::DeleteRegistryValue(const std::string& key, KeyWOW64 view) diff --git a/SystemTools.hxx.in b/SystemTools.hxx.in index 8a02b75..719d45c 100644 --- a/SystemTools.hxx.in +++ b/SystemTools.hxx.in @@ -881,7 +881,7 @@ public: /** * Get the width of the terminal window. The code may or may not work, so - * make sure you have some resonable defaults prepared if the code returns + * make sure you have some reasonable defaults prepared if the code returns * some bogus size. */ static int GetTerminalWidth(); -- GitLab