1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0031939: Coding - correction of spelling errors in comments [part 9]

Fix various typos via codespell.
This commit is contained in:
luz paz
2021-04-01 20:18:10 +03:00
committed by bugmaster
parent 00e9052bee
commit 5e6e59146f
59 changed files with 288 additions and 512 deletions

View File

@@ -14,10 +14,10 @@
#include <OSD.hxx>
// Convert Real to CString in format e with 16 significant digits.
// The decimal point character is always a period.
// The conversion is independant from current locale database
//=======================================================================
//function : RealToCString
//purpose :
//=======================================================================
Standard_Boolean OSD::RealToCString(const Standard_Real aReal,
Standard_PCharacter& aString)
{

View File

@@ -19,8 +19,8 @@
#include <Standard_PCharacter.hxx>
#include <OSD_SignalMode.hxx>
//! Set of Operating Sytem Dependent (OSD) Tools
class OSD
//! Set of Operating System Dependent (OSD) tools.
class OSD
{
public:
@@ -118,17 +118,17 @@ public:
//! Commands the process to sleep for a number of milliseconds
Standard_EXPORT static void MilliSecSleep (const Standard_Integer theMilliseconds);
//! Converts aReal into aCstring in exponential format with a period as
//! decimal point, no thousand separator and no grouping of digits.
//! The conversion is independant from the current locale
//! Converts aReal into aCstring in exponential format with a period as decimal point,
//! no thousand separator and no grouping of digits.
//! The conversion is independent from the current locale
Standard_EXPORT static Standard_Boolean RealToCString (const Standard_Real aReal, Standard_PCharacter& aString);
//! Converts aCstring representing a real with a period as
//! decimal point, no thousand separator and no grouping of digits
//! into aReal .
//! The conversion is independant from the current locale.
//! Converts aCstring representing a real with a period as decimal point,
//! no thousand separator and no grouping of digits into aReal.
//!
//! The conversion is independent from the current locale.
Standard_EXPORT static Standard_Boolean CStringToReal (const Standard_CString aString, Standard_Real& aReal);
//! since Windows NT does not support 'SIGINT' signal like UNIX,
//! then this method checks whether Ctrl-Break keystroke was or
//! not. If yes then raises Exception_CTRL_BREAK.

View File

@@ -31,7 +31,7 @@ public:
public:
//! Creates Directory object.
//! It is initiliazed to an empty name.
//! It is initialized to an empty name.
Standard_EXPORT OSD_Directory();
//! Creates Directory object initialized with theName.

View File

@@ -289,7 +289,7 @@ TCollection_AsciiString OSD_Environment::Value()
// msvc C-runtime (_wputenv()) puts variable using WinAPI internally (calls SetEnvironmentVariableW())
// and also caches its value in its own map,
// so that _wgetenv() ignores WinAPI and retieves variable from this cache.
// so that _wgetenv() ignores WinAPI and retrieves variable from this cache.
//
// Using _wgetenv() might lead to awkward results in context when several C-runtimes are used
// at once within application or WinAPI is used directly for setting environment variable.

View File

@@ -57,7 +57,7 @@ public:
//! Changes environment variable value.
//! Raises ConstructionError either if the string contains
//! characters not in range of ' '...'~' or if the string
//! contains the character '$' which is forbiden.
//! contains the character '$' which is forbidden.
Standard_EXPORT void SetValue (const TCollection_AsciiString& Value);
//! Gets the value of an environment variable
@@ -66,7 +66,7 @@ public:
//! Changes environment variable name.
//! Raises ConstructionError either if the string contains
//! characters not in range of ' '...'~' or if the string
//! contains the character '$' which is forbiden.
//! contains the character '$' which is forbidden.
Standard_EXPORT void SetName (const TCollection_AsciiString& name);
//! Gets the name of <me>.

View File

@@ -159,7 +159,7 @@ public:
Standard_EXPORT Standard_Boolean IsOpen() const;
//! returns TRUE if the file exists and if the user
//! has the autorization to read it.
//! has the authorization to read it.
Standard_EXPORT Standard_Boolean IsReadable();
//! returns TRUE if the file can be read and overwritten.
@@ -170,7 +170,7 @@ public:
//! Enables to emulate unix "tail -f" command.
//! If a line is available in the file <me> returns it.
//! Otherwise attemps to read again aNbTries times in the file
//! Otherwise attempts to read again aNbTries times in the file
//! waiting aDelay seconds between each read.
//! If meanwhile the file increases returns the next line, otherwise
//! returns FALSE.

View File

@@ -295,7 +295,7 @@ Quantity_Date OSD_FileNode::CreationMoment(){
// if (Failed()) Perror();
/* Get File Informations */
/* Get File Information */
TCollection_AsciiString aBuffer;
myPath.SystemName ( aBuffer );
@@ -323,7 +323,7 @@ Quantity_Date OSD_FileNode::AccessMoment(){
// if (Failed()) Perror();
/* Get File Informations */
/* Get File Information */
TCollection_AsciiString aBuffer;
myPath.SystemName ( aBuffer );

View File

@@ -39,7 +39,7 @@ public:
//! Default implementation create a stream from file buffer returned by OSD_FileSystem::OpenFileBuffer().
//! @param theUrl [in] path to open
//! @param theMode [in] flags describing the requested input mode for the stream (std::ios_base::in will be implicitly added)
//! @param theOffset [in] expected stream position from the begining of the file (beginning of the stream by default);
//! @param theOffset [in] expected stream position from the beginning of the file (beginning of the stream by default);
//! -1 would keep seek position undefined (in case of re-using theOldStream)
//! @param theOldStream [in] a pointer to existing stream pointing to theUrl to be reused (without re-opening)
//! @return pointer to newly created opened stream, to theOldStream if it can be reused or NULL in case of failure.
@@ -52,7 +52,7 @@ public:
//! Opens stream buffer for specified file URL.
//! @param theUrl [in] path to open
//! @param theMode [in] flags describing the requested input mode for the stream
//! @param theOffset [in] expected stream position from the begining of the buffer (beginning of the stream buffer by default)
//! @param theOffset [in] expected stream position from the beginning of the buffer (beginning of the stream buffer by default)
//! @param theOutBufSize [out] total buffer size (only if buffer is opened for read)
//! @return pointer to newly created opened stream buffer or NULL in case of failure.
virtual opencascade::std::shared_ptr<std::streambuf> OpenStreamBuffer (const TCollection_AsciiString& theUrl,

View File

@@ -142,7 +142,7 @@ public:
Standard_Mutex myMutex; //!< used for thread-safe access
Numbers* myArray; //!< indexed from 0 to myMaxAllocSize-1
ptrdiff_t myTotalLeftSize; //!< currently remained allocated size
size_t myTotalPeakSize; //!< maxium cumulative allocated size
size_t myTotalPeakSize; //!< maximum cumulative allocated size
size_t myBreakSize; //!< user defined allocation size to debug (see place_for_breakpoint())
size_t myBreakPeak; //!< user defined peak size limit to debug
};

View File

@@ -205,7 +205,7 @@ void OSD_Parallel::SetUseOcctThreads (Standard_Boolean theToUseOcct)
//=======================================================================
//function : NbLogicalProcessors
//purpose : Returns number of logical proccessors.
//purpose : Returns number of logical processors.
//=======================================================================
Standard_Integer OSD_Parallel::NbLogicalProcessors()
{

View File

@@ -187,7 +187,7 @@ protected:
};
//! Interface class representing functor object.
//! Intended to add polymorphic behavour to For and ForEach functionality
//! Intended to add polymorphic behaviour to For and ForEach functionality
//! enabling execution of arbitrary function in parallel mode.
class FunctorInterface
{

View File

@@ -76,7 +76,7 @@ namespace
private: //! @name private fields
const OSD_Parallel::UniversalIterator& myBegin; //!< Fisrt element of range.
const OSD_Parallel::UniversalIterator& myBegin; //!< First element of range.
const OSD_Parallel::UniversalIterator& myEnd; //!< Last element of range.
mutable OSD_Parallel::UniversalIterator myIt; //!< First non processed element of range.
mutable Standard_Mutex myMutex; //!< Access controller for the first non processed element.

View File

@@ -298,7 +298,7 @@ static void MacExtract(const TCollection_AsciiString& what,
Standard_Integer pos;
Standard_PCharacter p;
// I don't know how to distingish a disk from a trek !
// I don't know how to distinguish a disk from a trek !
trek = what;
@@ -612,7 +612,7 @@ static void P2DOS (TCollection_AsciiString & Way){
// Convert a path to system dependant syntax
// Convert a path to system dependent syntax
void OSD_Path::SystemName (TCollection_AsciiString& FullName,
const OSD_SysType aType)const{

View File

@@ -32,7 +32,7 @@ public:
//! i.e. current directory.
Standard_EXPORT OSD_Path();
//! Creates a Path object initialized by dependant path.
//! Creates a Path object initialized by dependent path.
//! ex: OSD_Path me ("/usr/bin/myprog.sh",OSD_UnixBSD);
//!
//! OSD_Path me ("sys$common:[syslib]cc.exe",OSD_OSF) will

View File

@@ -18,26 +18,21 @@
#include <Standard_Address.hxx>
// Typedef for prototype of function to be used as main
// function of a thread
// Note: currently we use the same prototype for thread functions on all
// platforms, in order to make user programs less platform-dependent.
// However, there is a distinction in returned value for the thread function
// on UNIX/Linux (void*) and WIndows (DWORD) systems.
// Thus on Windows we have to encode returned void* as DWORD. It is OK for WIN32,
// but potentially problem on WIN64.
// To avoid any problems with this, for better application portability it is recomended
// that the thread function returns just integer (casted to void*).
// This shall work on all platforms.
//#ifdef _WIN32
//#include <windows.h>
//typedef LPTHREAD_START_ROUTINE OSD_ThreadFunction;
//#else
//! Typedef for prototype of function to be used as main function of a thread.
//!
//! Note: currently we use the same prototype for thread functions on all platforms,
//! in order to make user programs less platform-dependent.
//! However, there is a distinction in returned value for the thread function
//! on UNIX/Linux (void*) and Windows (DWORD) systems.
//! Thus on Windows we have to encode returned void* as DWORD.
//! It is OK for WIN32, but potentially problem on WIN64.
//! To avoid any problems with this, for better application portability it is recommended
//! that the thread function returns just integer (casted to void*).
//! This shall work on all platforms.
typedef Standard_Address (*OSD_ThreadFunction) (Standard_Address data);
//#ifdef _WIN32
//typedef LPTHREAD_START_ROUTINE OSD_ThreadFunction;
//#endif
#endif

View File

@@ -17,8 +17,8 @@
/******************************************************************************/
/* File: OSD_WNT.cxx */
/* Purpose: Security management routines ( more convinient than WIN32 */
/* ones ) and other convinient functions. */
/* Purpose: Security management routines ( more convenient than WIN32 */
/* ones ) and other convrnient functions. */
/******************************************************************************/
/***/
#include <OSD_WNT.hxx>
@@ -970,7 +970,7 @@ retry:
/***/
/******************************************************************************/
/* Function : SetMoveDirectoryProc */
/* Purpose : Sets callback procedure which is calling by the */
/* Purpose : Sets callback procedure which is calling by the */
/* 'MoveDirectory' after moving of each item in the */
/* directory. To unregister this callback function supply NULL */
/* pointer */
@@ -984,7 +984,7 @@ void SetMoveDirectoryProc ( MOVE_DIR_PROC proc ) {
/***/
/******************************************************************************/
/* Function : SetCopyDirectoryProc */
/* Purpose : Sets callback procedure which is calling by the */
/* Purpose : Sets callback procedure which is calling by the */
/* 'CopyDirectory' after copying of each item in the */
/* directory. To unregister this callback function supply NULL */
/* pointer */
@@ -998,10 +998,10 @@ void SetCopyDirectoryProc ( COPY_DIR_PROC proc ) {
/***/
/******************************************************************************/
/* Function : SetResponseDirectoryProc */
/* Purpose : Sets callback procedure which is calling by the */
/* directoy processing function if an error was occur. */
/* Purpose : Sets callback procedure which is calling by the */
/* directory processing function if an error was occur. */
/* The return value of that callback procedure determines */
/* behaviour of directoy processing functions in case of error. */
/* behaviour of directory processing functions in case of error. */
/* To unregister this callback function supply NULL pointer */
/******************************************************************************/
/***/

View File

@@ -250,7 +250,7 @@ static LONG CallHandler (DWORD theExceptionCode,
}
case EXCEPTION_PRIV_INSTRUCTION:
{
strcat_s (aBuffer, sizeof(aBuffer), "PRIVELEGED INSTRUCTION ENCOUNTERED");
strcat_s (aBuffer, sizeof(aBuffer), "PRIVILEGED INSTRUCTION ENCOUNTERED");
break;
}
case EXCEPTION_STACK_OVERFLOW:
@@ -467,7 +467,7 @@ void OSD::SetSignal (OSD_SignalMode theSignalMode,
TCollection_AsciiString val = env.Value();
if (!env.Failed())
{
std::cout << "Environment variable CSF_DEBUG_MODE setted.\n";
std::cout << "Environment variable CSF_DEBUG_MODE set.\n";
fMsgBox = Standard_True;
if (OSD_SignalStackTraceLength == 0)
{
@@ -769,7 +769,7 @@ typedef void (* SIG_PFV) (int);
//============================================================================
//==== Handler
//==== Catche the differents signals:
//==== Catch the different signals:
//==== 1- The Fatal signals, which cause the end of process:
//==== 2- The exceptions which are "signaled" by Raise.
//==== The Fatal Signals:
@@ -802,7 +802,7 @@ static void Handler (const int theSignal)
perror ("sigaction");
}
// std::cout << "OSD::Handler: signal " << (int) theSignal << " occured inside a try block " << std::endl ;
// std::cout << "OSD::Handler: signal " << (int) theSignal << " occurred inside a try block " << std::endl ;
if ( ADR_ACT_SIGIO_HANDLER != NULL )
(*ADR_ACT_SIGIO_HANDLER)() ;
@@ -1029,7 +1029,7 @@ void OSD::SetThreadLocalSignal (OSD_SignalMode /*theSignalMode*/,
//============================================================================
//==== SetSignal
//==== Set the differents signals:
//==== Set the different signals:
//============================================================================
void OSD::SetSignal (OSD_SignalMode theSignalMode,