fix spelling errors

This commit is contained in:
2026-01-06 09:51:04 +01:00
parent 58debe99ed
commit 595bb8fb62
157 changed files with 271 additions and 271 deletions
+1 -1
View File
@@ -1018,7 +1018,7 @@ POSIX_Init ( void *argument __attribute__((unused)))
#if defined(QEMU_FIXUPS) && defined(__i386__)
// glorious hack to stub out useless EEPROM check
// which takes sooooo longggg w/ QEMU
// Writes a 'ret' instruction to immediatly return to the caller
// Writes a 'ret' instruction to immediately return to the caller
extern void _bsd_e1000_validate_nvm_checksum(void);
*(char*)&_bsd_e1000_validate_nvm_checksum = 0xc3;
#endif
+1 -1
View File
@@ -40,7 +40,7 @@ static int cond_search(const char **ppinst, int match);
/* calcPerform
*
* Evalutate the postfix expression
* Evaluate the postfix expression
*/
LIBCOM_API long
calcPerform(double *parg, double *presult, const char *pinst)
+3 -3
View File
@@ -42,7 +42,7 @@ typedef enum {
UNARY_OPERATOR,
VARARG_OPERATOR,
BINARY_OPERATOR,
SEPERATOR,
SEPARATOR,
CLOSE_PAREN,
CONDITIONAL,
EXPR_TERMINATOR,
@@ -155,7 +155,7 @@ static const ELEMENT operators[] = {
{"*", 5, 5, -1, BINARY_OPERATOR,MULT},
{"**", 6, 6, -1, BINARY_OPERATOR,POWER},
{"+", 4, 4, -1, BINARY_OPERATOR,ADD},
{",", 0, 0, 0, SEPERATOR, NOT_GENERATED},
{",", 0, 0, 0, SEPARATOR, NOT_GENERATED},
{"-", 4, 4, -1, BINARY_OPERATOR,SUB},
{"/", 5, 5, -1, BINARY_OPERATOR,DIV},
{":", 0, 0, -1, CONDITIONAL, COND_ELSE},
@@ -344,7 +344,7 @@ LIBCOM_API long
operand_needed = TRUE;
break;
case SEPERATOR:
case SEPARATOR:
if (pstacktop == stack) {
*perror = CALC_ERR_BAD_SEPERATOR;
goto bad;
+1 -1
View File
@@ -323,7 +323,7 @@ LIBCOM_API long
/** \brief Run the calculation engine
*
* Evaluates the postfix expression against a set ot input values.
* Evaluates the postfix expression against a set of input values.
*
* \param parg Pointer to an array of double values for the arguments
* \c A-U that can appear in the expression.
@@ -423,7 +423,7 @@ void resTable<T,ID>::show ( unsigned level ) const
mean, stdDev, maxEntries );
printf("%u empty buckets\n", empty);
if ( X != this->nInUse ) {
printf ("this->nInUse didnt match items counted which was %f????\n", X );
printf ("this->nInUse didn't match items counted which was %f????\n", X );
}
}
}
@@ -1140,7 +1140,7 @@ stringId::~stringId()
//
// the HP-UX compiler gives us a warning on
// each cast away of const, but in this case
// it cant be avoided.
// it can't be avoided.
//
// The DEC compiler complains that const isn't
// really significant in a cast if it is present.
+1 -1
View File
@@ -78,7 +78,7 @@ int dbmfInit(size_t size, int chunkItems)
pdbmfPvt = &dbmfPvt;
ellInit(&pdbmfPvt->chunkList);
pdbmfPvt->lock = epicsMutexMustCreate();
/*allign to at least a double*/
/*align to at least a double*/
pdbmfPvt->size = size + size%sizeof(double);
/* layout is
* | itemHeader | REDZONE | size | REDZONE |
+1 -1
View File
@@ -83,7 +83,7 @@ LIBCOM_API extern const ENV_PARAM EPICS_ALLOW_POSIX_THREAD_PRIORITY_SCHEDULING;
*
* A NULL terminated array of all ENV_PARAM known to EPICS Base.
* This array is assembled during the EPICS Base build, and
* contains at least the preceeding parameters.
* contains at least the preceding parameters.
*/
LIBCOM_API extern const ENV_PARAM *env_param_list[];
+2 -2
View File
@@ -45,7 +45,7 @@ extern "C" {
*
* Handles EPICS message codes, and "errno" codes.
*
* Copies in a mesage for any status code. Unknown status codes
* Copies in a message for any status code. Unknown status codes
* are printed numerically.
*/
LIBCOM_API void errSymLookup(long status, char *pBuf, size_t bufLength);
@@ -65,7 +65,7 @@ LIBCOM_API void errSymTest(epicsUInt16 modnum, epicsUInt16 begErrNum,
LIBCOM_API void errSymTestPrint(long errNum);
LIBCOM_API int errSymBld(void);
/** @brief Define new custom error code and associate message string.
* @param errNum New error code. Caller is reponsible for avoiding reuse of existing codes.
* @param errNum New error code. Caller is responsible for avoiding reuse of existing codes.
* @param message New message. Pointer stored. Caller must not free pointed storage.
* @return 0 on success
*/
+1 -1
View File
@@ -71,7 +71,7 @@ LIBCOM_API fdctx * epicsStdCall fdmgr_init(void);
* Specify a function to be called with a specified parameter
* after a specified delay relative to the current time
*
* Returns fdmgrNoAlarm (zero) if alarm cant be created
* Returns fdmgrNoAlarm (zero) if alarm can't be created
*/
#define fdmgrNoAlarm 0
LIBCOM_API fdmgrAlarmId epicsStdCall fdmgr_add_timeout(
+3 -3
View File
@@ -41,7 +41,7 @@ Changes between 2.3 Patch #2 (02Aug90) and original 2.3 release:
Reordered #ifdef maze in the scanner skeleton in the hope of
getting the declarations right for cfront and g++, too.
- Note that this patch supercedes patch #1 for release 2.3,
- Note that this patch supersedes patch #1 for release 2.3,
which was never announced but was available briefly for
anonymous ftp.
@@ -56,7 +56,7 @@ Changes between 2.3 (full) release of 28Jun90 and 2.2 (alpha) release:
given. To specify an end-of-file action for just the initial
state, use <INITIAL><<EOF>>.
- -d debug output is now contigent on the global yy_flex_debug
- -d debug output is now contingent on the global yy_flex_debug
being set to a non-zero value, which it is by default.
- A new macro, YY_USER_INIT, is provided for the user to specify
@@ -99,7 +99,7 @@ Changes between 2.3 (full) release of 28Jun90 and 2.2 (alpha) release:
- yy_switch_to_buffer() can be used in the yywrap() macro/routine.
- flex scanners do not use stdio for their input, and hence when
writing an interactive scanner one must explictly call fflush()
writing an interactive scanner one must explicitly call fflush()
after writing out a prompt.
- flex scanner can be made reentrant (after a fashion) by using
+1 -1
View File
@@ -341,7 +341,7 @@
- yy_create_buffer( file, size ) takes a <I>FILE</I> pointer and
an integer <I>size</I>. It returns a YY_BUFFER_STATE handle to
a new input buffer large enough to accomodate <I>size</I>
a new input buffer large enough to accommodate <I>size</I>
characters and associated with the given file. When in
doubt, use YY_BUF_SIZE for the size.
+2 -2
View File
@@ -602,7 +602,7 @@ extern void *reallocate_array(void *array, int size, int element_size);
#define reallocate_character_array(array,size) \
(Char *) reallocate_array( array, size, sizeof( Char ) )
#if 0 /* JRW this might couse trouble... but not for IOC usage */
#if 0 /* JRW this might cause trouble... but not for IOC usage */
/* used to communicate between scanner and parser. The type should really
* be YYSTYPE, but we can't easily get our hands on it.
*/
@@ -710,7 +710,7 @@ extern void lerrsf (char[], char[]) NORETURN;
/* spit out a "# line" statement */
extern void line_directive_out (FILE*);
/* generate a data statment for a two-dimensional array */
/* generate a data statement for a two-dimensional array */
extern void mk2data (int);
/* generate a data statement */
+1 -1
View File
@@ -500,7 +500,7 @@ void mkdeftbl(void)
* (i.e., jam entries) into the table. It is assumed that by linking to
* "JAMSTATE" they will be taken care of. In any case, entries in "state"
* marking transitions to "SAME_TRANS" are treated as though they will be
* taken care of by whereever "deflink" points. "totaltrans" is the total
* taken care of by wherever "deflink" points. "totaltrans" is the total
* number of transitions out of the state. If it is below a certain threshold,
* the tables are searched for an interior spot that will accommodate the
* state array.
+2 -2
View File
@@ -83,7 +83,7 @@ typedef enum {
initHookAfterInitDatabase, /**< Records and locksets init (also autosave pass 1) */
initHookAfterFinishDevSup, /**< Device support init pass 1 */
initHookAfterScanInit, /**< Scan, AS, ProcessNotify init */
initHookAfterInitialProcess, /**< Records with PINI = YES processsed */
initHookAfterInitialProcess, /**< Records with PINI = YES processed */
initHookAfterCaServerInit, /**< RSRV init */
initHookAfterIocBuilt, /**< End of iocBuild() */
@@ -154,7 +154,7 @@ typedef enum {
/** \brief Type for application callback functions
*
* Application callback functions must match this typdef.
* Application callback functions must match this typedef.
* \param state initHook enumeration value
*/
typedef void (*initHookFunction)(initHookState state);
+1 -1
View File
@@ -1517,7 +1517,7 @@ static const iocshArg *onArgs[1] = {&onArg0};
static const iocshFuncDef onFuncDef = {"on", 1, onArgs,
"Change IOC shell error handling.\n"
" continue (default) - Ignores error and continue with next commands.\n"
" break - Return to caller without executing futher commands.\n"
" break - Return to caller without executing further commands.\n"
" halt - Suspend process.\n"
" wait - stall process for <delay> seconds, then continue.\n"};
static void onCallFunc(const iocshArgBuf *args)
+5 -5
View File
@@ -13,7 +13,7 @@
/**
* @file iocsh.h
*
* @brief C and C++ defintions of functions for IOC shell programming.
* @brief C and C++ definitions of functions for IOC shell programming.
*
* @details
* The iocsh API provides an interface for running commands in the shell
@@ -83,7 +83,7 @@ typedef enum {
/**
* @union iocshArgBuf
*
* This union is used when building the func paramter of iocshRegister().
* This union is used when building the func parameter of iocshRegister().
* Each use should match the parameter type of the parameters of the
* function being registered
*
@@ -257,7 +257,7 @@ LIBCOM_API void epicsStdCall iocshFree(void);
LIBCOM_API int epicsStdCall iocsh(const char *pathname);
/**
* @brief This function is used to exectute a single IOC shell command.
* @brief This function is used to execute a single IOC shell command.
*
* @param cmd A string that represents the command to be executed.
* @return 0 on success, non-zero on error
@@ -268,7 +268,7 @@ LIBCOM_API int epicsStdCall iocshCmd(const char *cmd);
/**
* @brief Read and evaluate IOC shell commands from the given file. A list of macros
* can be supplied as a parameter. These macros are treated as environment variables during
* exectution of the file's commands.
* execution of the file's commands.
*
* @param pathname A string that represents the path to a file from which commands are read.
* @param macros NULL or a comma separated list of macro definitions. eg. "VAR1=x,VAR2=y"
@@ -278,7 +278,7 @@ LIBCOM_API int epicsStdCall iocshLoad(const char *pathname, const char* macros);
/**
* @brief Evaluate a single IOC shell command. A list of macros can be supplied
* as a parameter. These macros are treated as environment variables during
* exectution of the command.
* execution of the command.
*
* @param cmd Command string. eg. "echo \"something or other\""
* @param macros NULL or a comma separated list of macro definitions. eg. "VAR1=x,VAR2=y"
+1 -1
View File
@@ -215,7 +215,7 @@ static void registryDumpCallFunc(const iocshArgBuf *args)
static const iocshFuncDef iocLogInitFuncDef = {"iocLogInit",0,0,
"Initialize IOC logging\n"
" * EPICS environment variable 'EPICS_IOC_LOG_INET' has to be defined\n"
" * Logging controled via 'iocLogDisable' variable\n"
" * Logging controlled via 'iocLogDisable' variable\n"
" see 'setIocLogDisable' command\n"};
static void iocLogInitCallFunc(const iocshArgBuf *args)
{
+1 -1
View File
@@ -670,7 +670,7 @@ static void writeMessagesToLog (struct iocLogClient *pclient)
}
else {
if (status != ntci) {
fprintf(stderr, "iocLogServer: didnt calculate number of characters correctly?\n");
fprintf(stderr, "iocLogServer: didn't calculate number of characters correctly?\n");
}
pclient->pserver->filePos += status;
}
+1 -1
View File
@@ -71,7 +71,7 @@ epicsStdCall macCreateHandle(
/**
* \brief Disable or enable warning messages.
*
* The macExpandString() routine prints warnings when it cant expand a macro.
* The macExpandString() routine prints warnings when it can't expand a macro.
* This routine can be used to silence those warnings. A non zero value will
* suppress the warning messages from subsequent library routines given the
* same \c handle.
+2 -2
View File
@@ -28,7 +28,7 @@ a) long macCreateHandle( MAC_HANDLE **handle, char *pairs[] );
routine.
macSuppressWarning can be called to suppress the marning message
when macExpandString cant expand a macro. A non zero value will
when macExpandString can't expand a macro. A non zero value will
suppress the messages.
@@ -125,7 +125,7 @@ a) macParseDefns( MAC_HANDLE *handle, char *defns, char **pairs[] );
significant within values but ignored elsewhere (i.e. surrounding "="
and "," characters).
Probably noone will ever want to, but the special meanings of "$",
Probably no one will ever want to, but the special meanings of "$",
"{", "}", "(", ")", "=" and "," can all be changed via macPutXxxx()
calls. This routine does not have a handle argument, so they must be
changed globally for it to use the new definitions. Should it have a
+5 -5
View File
@@ -20,19 +20,19 @@
size_t adjustToWorstCaseAlignment(size_t size)
{
union aline {
/* largest primative types (so far...) */
union align {
/* largest primitive types (so far...) */
double dval;
size_t uval;
char *ptr;
};
/* assert that alignment size is a power of 2 */
STATIC_ASSERT((sizeof(union aline) & (sizeof(union aline)-1))==0);
STATIC_ASSERT((sizeof(union align) & (sizeof(union align)-1))==0);
/* round up to aligment size */
/* round up to alignment size */
size--;
size |= sizeof(union aline)-1;
size |= sizeof(union align)-1;
size++;
return size;
+1 -1
View File
@@ -93,7 +93,7 @@ LIBCOM_API size_t epicsStrnEscapedFromRawSize(const char *buf, size_t len);
*/
LIBCOM_API int epicsStrCaseCmp(const char *s1, const char *s2);
/** \brief Does case-insensitive comparision of two strings
/** \brief Does case-insensitive comparison of two strings
*
* Implements strncmp from the C standard library, except is case insensitive
*/
@@ -155,7 +155,7 @@ void ipAddrToAsciiEngine::cleanup()
ipAddrToAsciiEnginePrivate::pEngine = 0;
}
// for now its probably sufficent to allocate one
// for now its probably sufficient to allocate one
// DNS transaction thread for all codes sharing
// the same process that need DNS services but we
// leave our options open for the future
+1 -1
View File
@@ -7,7 +7,7 @@ is like the vxWorks sysClockRateGet().
The implementation should be:
Provide a default that determines the rate emperically at int time by
Provide a default that determines the rate empirically at int time by
calling epicsThreadSleep for amaller and smaller delays until the actual
delay no longer decreases.
Each os/xxx can override the default if desired.
+1 -1
View File
@@ -11,7 +11,7 @@
/**
* \file devLibVME.h
* \author Marty Kraimer, Jeff Hill
* \brief API for accessing hardware devices, mosty over VMEbus.
* \brief API for accessing hardware devices, mostly over VMEbus.
*
* API for accessing hardware devices. The original APIs here were for
* written for use with VMEbus but additional routines were added for
+2 -2
View File
@@ -18,12 +18,12 @@
*
* These primitives can be safely used in a multithreaded programs on symmetric multiprocessing (SMP)
* systems. Where possible the primitives are implemented with compiler intrinsic wrappers for architecture
* specific instructions. Otherwise they are implemeted with OS specific functions and otherwise, when lacking
* specific instructions. Otherwise they are implemented with OS specific functions and otherwise, when lacking
* a sufficently capable OS specific interface, then in some rare situations a mutual exclusion primitive is
* used for synchronization.
*
* In operating systems environments which allow C code to run at interrupt level the implementation must
* use interrupt level invokable CPU instruction primitives.
* use interrupt level invocable CPU instruction primitives.
*
* All C++ functions are implemented in the namespace atomics which is nested inside of namespace epics.
*/
+2 -2
View File
@@ -25,11 +25,11 @@
#include "osdWireConfig.h"
#ifndef EPICS_BYTE_ORDER
#error osdWireConfig.h didnt define EPICS_BYTE_ORDER
#error osdWireConfig.h did not define EPICS_BYTE_ORDER
#endif
#ifndef EPICS_FLOAT_WORD_ORDER
#error osdWireConfig.h didnt define EPICS_FLOAT_WORD_ORDER
#error osdWireConfig.h did not define EPICS_FLOAT_WORD_ORDER
#endif
#endif /* INC_epicsEndian_H */
+1 -1
View File
@@ -13,7 +13,7 @@
/*
* NOTES:
* 1) LOG_LAST_OWNER feature is normally commented out because
* it slows down the system at run time, anfd because its not
* it slows down the system at run time, and because it's not
* currently safe to convert a thread id to a thread name because
* the thread may have exited making the thread id invalid.
*/
+1 -1
View File
@@ -120,7 +120,7 @@ LIBCOM_API int epicsTimeGetMonotonic ( epicsTimeStamp * pDest );
/** \name ISR-callable
* These routines may be called from an Interrupt Service Routine, and
* will return a value from the last current time or event time provider
* that sucessfully returned a result from the equivalent non-ISR routine.
* that successfully returned a result from the equivalent non-ISR routine.
* @{
*/
/** \brief Get current time into \p *pDest (ISR-safe) */
@@ -362,7 +362,7 @@ static int rtemsDevInterruptInUseVME (unsigned vectorNumber)
return FALSE;
/*
* its a C routine. Does it match a default handler?
* it's a C routine. Does it match a default handler?
*/
for (i=0; i<NELEMENTS(defaultHandlerAddr); i++) {
if (defaultHandlerAddr[i] == psub) {
@@ -35,7 +35,7 @@ LIBCOM_API FILE * epicsStdCall epicsTempFile ()
* condition where two programs end up receiving the
* same temporary file name.
*
* _O_CREAT create if non-existant
* _O_CREAT create if non-existent
* _O_EXCL file must not exist
* _O_RDWR read and write the file
* _O_TEMPORARY delete file on close
+3 -3
View File
@@ -41,7 +41,7 @@
* prototypes only appear in the windows SDK 8 and above.
* VS2010 supplies sdk 7, but can be upgraded to later SDK
* To accomodate this we suuply prototypes on, for XP
* To accommodate this we supply prototypes on, for XP
* fall back to Tls*() which will build and run
* correctly for epicsThreads, but means that TLS allocations from
* epicsThreadImplicitCreate() will continue to leak (for non-EPICS threads).
@@ -49,13 +49,13 @@
* Also, WINE circa 5.0.3 provides the FLS storage functions, but doesn't
* actually run the dtor function.
*
* we check for existance of _WIN32_WINNT_WIN8 which will only be defined
* we check for existence of _WIN32_WINNT_WIN8 which will only be defined
* in SDK 8 and above. If Visa is detected and SDK < 8 we will supply
* the missing prototypes
*/
#if _WIN32_WINNT >= 0x0600 /* VISTA */
# ifdef _WIN32_WINNT_WIN8 /* Existance means using SDK 8 or higher */
# ifdef _WIN32_WINNT_WIN8 /* Existence means using SDK 8 or higher */
# include <fibersapi.h>
# else
# include <winnt.h> /* for PFLS_CALLBACK_FUNCTION */
+1 -1
View File
@@ -86,7 +86,7 @@ private:
bool threadHasExited;
void updatePLL ();
static const int pllDelay; /* integer seconds */
// cant be static because of diff btw __stdcall and __cdecl
// can't be static because of diff btw __stdcall and __cdecl
friend unsigned __stdcall _pllThreadEntry ( void * pCurrentTimeIn );
};
@@ -17,7 +17,7 @@
/* This file must be usable from both C and C++ */
/* if compilation fails because this wasnt found then you may need to define an OS
/* if compilation fails because this wasn't found then you may need to define an OS
specific osdWireConfig.h */
#include <sys/param.h>
@@ -27,7 +27,7 @@
# elif __BYTE_ORDER == __BIG_ENDIAN
# define EPICS_BYTE_ORDER EPICS_ENDIAN_BIG
# else
# error EPICS hasnt been ported to run on the <sys/param.h> specified __BYTE_ORDER
# error EPICS has not been ported to run on the <sys/param.h> specified __BYTE_ORDER
# endif
#else
# ifdef BYTE_ORDER
@@ -36,10 +36,10 @@
# elif BYTE_ORDER == BIG_ENDIAN
# define EPICS_BYTE_ORDER EPICS_ENDIAN_BIG
# else
# error EPICS hasnt been ported to run on the <sys/param.h> specified BYTE_ORDER
# error EPICS has not been ported to run on the <sys/param.h> specified BYTE_ORDER
# endif
# else
# error <sys/param.h> doesnt specify __BYTE_ORDER or BYTE_ORDER - is an OS specific osdWireConfig.h needed?
# error <sys/param.h> does not specify __BYTE_ORDER or BYTE_ORDER - is an OS specific osdWireConfig.h needed?
# endif
#endif
@@ -49,7 +49,7 @@
# elif __FLOAT_WORD_ORDER == __BIG_ENDIAN
# define EPICS_FLOAT_WORD_ORDER EPICS_ENDIAN_BIG
# else
# error EPICS hasnt been ported to <sys/param.h> specified __FLOAT_WORD_ORDER
# error EPICS has not been ported to <sys/param.h> specified __FLOAT_WORD_ORDER
# endif
#else
# ifdef FLOAT_WORD_ORDER
@@ -58,7 +58,7 @@
# elif FLOAT_WORD_ORDER == BIG_ENDIAN
# define EPICS_FLOAT_WORD_ORDER EPICS_ENDIAN_BIG
# else
# error EPICS hasnt been ported to <sys/param.h> specified FLOAT_WORD_ORDER
# error EPICS has not been ported to <sys/param.h> specified FLOAT_WORD_ORDER
# endif
# else
/* assume that if neither __FLOAT_WORD_ORDER nor FLOAT_WORD_ORDER are
@@ -56,7 +56,7 @@ inline void WireGet < epicsFloat64 > (
{
// copy through union here
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
// b) doesn't preclude extra copy operation being optimized away
union {
epicsFloat64 _f;
epicsUInt32 _u[2];
@@ -94,7 +94,7 @@ inline void WireSet < epicsFloat64 > (
{
// copy through union here
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
// b) doesn't preclude extra copy operation being optimized away
union {
epicsFloat64 _f;
epicsUInt32 _u[2];
@@ -158,7 +158,7 @@ inline void AlignedWireGet < epicsFloat64 > (
{
// copy through union here
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
// b) doesn't preclude extra copy operation being optimized away
union Swapper {
epicsUInt32 _u[2];
epicsFloat64 _f;
@@ -214,7 +214,7 @@ inline void AlignedWireSet < epicsFloat64 > (
{
// copy through union here
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
// b) doesn't preclude extra copy operation being optimized away
union Swapper {
epicsUInt32 _u[2];
epicsFloat64 _f;
+1 -1
View File
@@ -121,7 +121,7 @@ if((status)) {\
if(status) { \
fprintf(stderr,"%s error %s",(message),strerror((status))); \
fprintf(stderr," %s\n",method); \
fprintf(stderr,"epicsThreadInit cant proceed. Program exiting\n"); \
fprintf(stderr,"epicsThreadInit can't proceed. Program exiting\n"); \
exit(-1);\
}
@@ -22,10 +22,10 @@
#elif defined ( _BIG_ENDIAN )
# define EPICS_BYTE_ORDER EPICS_ENDIAN_BIG
#else
# error EPICS hasnt been ported to byte order specified by <sys/isa_defs.h> on Solaris
# error EPICS has not been ported to byte order specified by <sys/isa_defs.h> on Solaris
#endif
/* for now, assume that Solaris doesnt run on weird arch like ARM NWFP */
/* for now, assume that Solaris doesn't run on weird arch like ARM NWFP */
#define EPICS_FLOAT_WORD_ORDER EPICS_BYTE_ORDER
#endif /* ifdef osdWireConfig_h */
@@ -406,7 +406,7 @@ static int vxDevInterruptInUseVME (unsigned vectorNumber)
psub = isrFetch (vectorNumber);
/*
* its a C routine. Does it match a default handler?
* it's a C routine. Does it match a default handler?
*/
for (i=0; i<NELEMENTS(defaultHandlerAddr); i++) {
if (defaultHandlerAddr[i] == psub) {
@@ -87,8 +87,8 @@ EPICS_ATOMIC_INLINE void epicsAtomicWriteMemoryBarrier (void)
* is the same as UINT_MAX then sizeof ( atomic_t )
* will be the same as sizeof ( size_t )
*
* if ULONG_MAX != UINT_MAX then its 64 bit vxWorks and
* WRS doesnt not supply at this time the atomic interface
* if ULONG_MAX != UINT_MAX then it's 64 bit vxWorks and
* WRS does not supply at this time the atomic interface
* for 8 byte integers that is needed - so that architecture
* receives the lock synchronized version
*/
@@ -153,7 +153,7 @@ EPICS_ATOMIC_INLINE size_t epicsAtomicSubSizeT ( size_t * pTarget, size_t delta
#else /* ULONG_MAX == UINT_MAX */
/*
* if its 64 bit SMP vxWorks and the compiler doesnt
* if it's 64 bit SMP vxWorks and the compiler doesn't
* have an intrinsic then maybe there isn't any way to
* implement these without using a global lock because
* size_t is maybe bigger than atomic_t
@@ -51,7 +51,7 @@ osdReadlineBegin(struct readlineContext *context)
if (osd->ledId == (LED_ID) ERROR) {
context->in = stdin;
printf("Warning -- Unabled to allocate space for command-line history.\n");
printf("Warning -- Command-line editting disabled.\n");
printf("Warning -- Command-line editing disabled.\n");
}
}
context->osd = osd;
@@ -23,10 +23,10 @@
#elif _BYTE_ORDER == _BIG_ENDIAN
# define EPICS_BYTE_ORDER EPICS_ENDIAN_BIG
#else
# error EPICS hasnt been ported to _BYTE_ORDER specified by vxWorks <types/vxArch.h>
# error EPICS has not been ported to _BYTE_ORDER specified by vxWorks <types/vxArch.h>
#endif
/* for now, assume that vxWorks doesnt run on weird arch like ARM NWFP */
/* for now, assume that vxWorks doesn't run on weird arch like ARM NWFP */
#define EPICS_FLOAT_WORD_ORDER EPICS_BYTE_ORDER
#endif /* ifdef osdWireConfig_h */
+2 -2
View File
@@ -70,7 +70,7 @@ LIBCOM_API void epicsStdCall osiSockDiscoverBroadcastAddresses
ifa->ifa_name));
/*
* If its not an internet interface then don't use it
* If it's not an internet interface then don't use it
*/
if ( ifa->ifa_addr->sa_family != AF_INET ) {
ifDepenDebugPrintf ( ("osiSockDiscoverBroadcastAddresses(): interface \"%s\" was not AF_INET\n", ifa->ifa_name) );
@@ -88,7 +88,7 @@ LIBCOM_API void epicsStdCall osiSockDiscoverBroadcastAddresses
if ( pMatchAddr->ia.sin_addr.s_addr != htonl (INADDR_ANY) ) {
struct sockaddr_in *pInetAddr = (struct sockaddr_in *) ifa->ifa_addr;
if ( pInetAddr->sin_addr.s_addr != pMatchAddr->ia.sin_addr.s_addr ) {
ifDepenDebugPrintf ( ("osiSockDiscoverBroadcastAddresses(): net intf \"%s\" didnt match\n", ifa->ifa_name) );
ifDepenDebugPrintf ( ("osiSockDiscoverBroadcastAddresses(): net intf \"%s\" didn't match\n", ifa->ifa_name) );
continue;
}
}
+2 -2
View File
@@ -135,7 +135,7 @@ LIBCOM_API void epicsStdCall osiSockDiscoverBroadcastAddresses
(unsigned)current_ifreqsize));
/*
* If its not an internet interface then don't use it
* If it's not an internet interface then don't use it
*/
if ( pIfreqList->ifr_addr.sa_family != AF_INET ) {
ifDepenDebugPrintf ( ("osiSockDiscoverBroadcastAddresses(): interface \"%s\" was not AF_INET\n", pIfreqList->ifr_name) );
@@ -153,7 +153,7 @@ LIBCOM_API void epicsStdCall osiSockDiscoverBroadcastAddresses
if ( pMatchAddr->ia.sin_addr.s_addr != htonl (INADDR_ANY) ) {
struct sockaddr_in *pInetAddr = (struct sockaddr_in *) &pIfreqList->ifr_addr;
if ( pInetAddr->sin_addr.s_addr != pMatchAddr->ia.sin_addr.s_addr ) {
ifDepenDebugPrintf ( ("osiSockDiscoverBroadcastAddresses(): net intf \"%s\" didnt match\n", pIfreqList->ifr_name) );
ifDepenDebugPrintf ( ("osiSockDiscoverBroadcastAddresses(): net intf \"%s\" didn't match\n", pIfreqList->ifr_name) );
continue;
}
}
+1 -1
View File
@@ -60,7 +60,7 @@ static const iocshArg * const InitArgs[1] = { &InitArg0 };
static const iocshFuncDef InitFuncDef = {
"ClockTime_Init", 1, InitArgs,
"Starts or stops the IOC periodically synchronizing the OS clock\n"
"with the higest priority working time provider.\n"};
"with the highest priority working time provider.\n"};
static void InitCallFunc(const iocshArgBuf *args)
{
ClockTime_Init(args[0].ival);
+1 -1
View File
@@ -292,7 +292,7 @@ int NTPTime_Report(int level)
epicsTimeToStrftime(lastSync, sizeof(lastSync),
"%Y-%m-%d %H:%M:%S.%06f", &NTPTimePvt.syncTime);
printf("Syncronization interval = %.1f seconds\n",
printf("Synchronization interval = %.1f seconds\n",
NTPTimeSyncInterval);
printf("Last synchronized at %s\n",
lastSync);
+2 -2
View File
@@ -114,7 +114,7 @@ LIBCOM_API void epicsStdCall
*
* This enum specifies how to interrupt a blocking socket system call.
* Fortunately, on most systems the combination of a shutdown of both directions
* and/or a signal is sufficent to interrupt a blocking send, receive, or
* and/or a signal is sufficient to interrupt a blocking send, receive, or
* connect call. For odd ball systems this is stubbed out in the osi area.
*
*/
@@ -235,7 +235,7 @@ LIBCOM_API unsigned epicsStdCall ipAddrToDottedIP (
* \param[out] pBuf Pointer to a character buffer where the output string will be placed
* \param bufSize Size of the array pointed to by pBuf
* \return the number of character elements stored in buffer not including the
* null termination. This will be zero if a matching host name cant be found.
* null termination. This will be zero if a matching host name can't be found.
*/
LIBCOM_API unsigned epicsStdCall ipAddrToHostName (
const struct in_addr * pAddr, char * pBuf, unsigned bufSize );
+4 -4
View File
@@ -161,7 +161,7 @@ inline void WireGet ( const epicsUInt8 * pWireSrc, T & dst )
{
// copy through union here
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
// b) doesn't preclude extra copy operation being optimized away
WireAlias < T > tmp;
WireGet ( pWireSrc, tmp._u );
dst = tmp._o;
@@ -198,7 +198,7 @@ inline void WireSet ( const T & src, epicsUInt8 * pWireDst )
{
// copy through union here
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
// b) doesn't preclude extra copy operation being optimized away
WireAlias < T > tmp;
tmp._o = src;
WireSet ( tmp._u, pWireDst );
@@ -234,7 +234,7 @@ inline void AlignedWireGet ( const T & src, T & dst )
{
// copy through union here
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
// b) doesn't preclude extra copy operation being optimized away
WireAlias < T > srcu, dstu;
srcu._o = src;
AlignedWireGet ( srcu._u, dstu._u );
@@ -246,7 +246,7 @@ inline void AlignedWireSet ( const T & src, T & dst )
{
// copy through union here
// a) prevents over-aggressive optimization under strict aliasing rules
// b) doesnt preclude extra copy operation being optimized away
// b) doesn't preclude extra copy operation being optimized away
WireAlias < T > srcu, dstu;
srcu._o = src;
AlignedWireSet ( srcu._u, dstu._u );
+1 -1
View File
@@ -148,7 +148,7 @@ double timerQueue::process ( const epicsTime & currentTime )
}
//
// only restart if they didnt cancel() the timer
// only restart if they didn't cancel() the timer
// while the call back was running
//
if ( this->cancelPending ) {
+1 -1
View File
@@ -41,7 +41,7 @@ static int yyerror(char *str)
The FirstFlag and yyrestart jazz is the flex-flavored version of how you
restart the scanner if you want to parse another file. Without it, the
scanner can only be used one time. Even if you think your code will only
be used one time, it is desireable to put in the restart stuff anyway,
be used one time, it is desirable to put in the restart stuff anyway,
because some day you (or your boss) will change your mind and without it
the IOC will crash when you make your second call to your parser.
+1 -1
View File
@@ -35,7 +35,7 @@ is
%ident string
where string is a sequence of characters begining with a double quote
where string is a sequence of characters beginning with a double quote
and ending with either a double quote or the next end-of-line, whichever
comes first. The declaration will cause a #ident directive to be written
near the start of the output file.
+1 -1
View File
@@ -389,7 +389,7 @@ yajl_lex_string(yajl_lexer lexer, const unsigned char * jsonText,
/* accept it, and move on */
}
finish_string_lex:
/* tell our buddy, the parser, wether he needs to process this string
/* tell our buddy, the parser, whether he needs to process this string
* again */
if (hasEscapes && tok == yajl_tok_string) {
tok = yajl_tok_string_with_escapes;
+3 -3
View File
@@ -34,7 +34,7 @@ extern "C" {
yajl_status_ok,
/** A client callback returned zero, stopping the parse. */
yajl_status_client_canceled,
/** An error occured during the parse. Call yajl_get_error() for
/** An error occurred during the parse. Call yajl_get_error() for
* more information about the encountered error. */
yajl_status_error
} yajl_status;
@@ -229,7 +229,7 @@ extern "C" {
/** Get an error string describing the state of the parse.
*
* If verbose is non-zero, the message will include the JSON text where
* the error occured, along with an arrow pointing to the specific char.
* the error occurred, along with an arrow pointing to the specific char.
*
* \returns A dynamically allocated string will be returned which should
* be freed with yajl_free_error().
@@ -246,7 +246,7 @@ extern "C" {
*
* In the event an error is encountered during parsing, this function
* affords the client a way to get the offset into the most recent
* chunk where the error occured. 0 will be returned if no error
* chunk where the error occurred. 0 will be returned if no error
* was encountered.
*/
YAJL_API size_t yajl_get_bytes_consumed(yajl_handle hand);
+1 -1
View File
@@ -237,7 +237,7 @@ private:
// function and also increment an integer word. The
// epicsInterruptIsInterruptContext function is an
// out-of-line function implemented in a shareable library
// so hopefully it wont be optimized away.
// so hopefully it won't be optimized away.
template < class T >
inline void OrdinaryIncr < T > :: run ()
{
+1 -1
View File
@@ -362,7 +362,7 @@ void testBasic()
using epics::atomic::subtract;
using epics::atomic::compareAndSwap;
testDiag("Test basic operation symantics");
testDiag("Test basic operation semantics");
int Int = 0;
size_t Sizet = 0;
+1 -1
View File
@@ -224,7 +224,7 @@ void testEpicsStrPrintEscaped(void)
// Failing cases
testOk1(epicsStrPrintEscaped(NULL, "1234", 4) == -1);
// On some platforms (specifially certain versions of MinGW-w64), fprintf
// On some platforms (specifically certain versions of MinGW-w64), fprintf
// is broken and does not return -1 when the write operation fails. On
// those platforms, epicsStrPrintEscaped cannot detect failure either, so
// testing that it reports failure does not make sense on those platforms.
+1 -1
View File
@@ -119,7 +119,7 @@ static void threadSleepQuantumTest ()
"The epicsThreadSleepQuantum() call returns %f sec.\n",
quantum );
printf (
"This doesnt match the quantum estimate "
"This doesn't match the quantum estimate "
"of %f sec within %s.\n",
quantumEstimate, pTol );
}
+1 -1
View File
@@ -161,7 +161,7 @@ static void usage(const char * progname)
{
fprintf(stderr,
"usage: %s [options]\n"
"Parse input from stdin as JSON and ouput parsing details "
"Parse input from stdin as JSON and output parsing details "
"to stdout\n"
" -5 allow JSON5\n"
" -b set the read buffer size\n"
@@ -80,7 +80,7 @@ BOOST_LIB_VERSION: The Boost version, in the form x_y, for Boost version x.y.
# endif
#elif defined(_MSC_VER) && !defined(__MWERKS__) && !defined(__EDG_VERSION__)
//
// C language compatability (no, honestly)
// C language compatibility (no, honestly)
//
# define BOOST_MSVC _MSC_VER
# define BOOST_STRINGIZE(X) BOOST_DO_STRINGIZE(X)
@@ -474,7 +474,7 @@ namespace std {
#endif
// long long workaround ------------------------------------------//
// On gcc (and maybe other compilers?) long long is alway supported
// On gcc (and maybe other compilers?) long long is always supported
// but it's use may generate either warnings (with -ansi), or errors
// (with -pedantic -ansi) unless it's use is prefixed by __extension__
//