summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-06-14 04:03:18 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-06-14 04:10:39 -0400
commit248f980a67ac721882465c48d60039ac70d3fa82 (patch)
tree02d853e6bd275b1351f09ad6827fb02bf7cbad95 /src
parent0f77f9f6a8974257a21e5fc0b8327b838c2a4849 (diff)
codespell-fixes
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src')
-rw-r--r--src/Convert.c2
-rw-r--r--src/Converters.c2
-rw-r--r--src/Event.c14
-rw-r--r--src/Initialize.c6
-rw-r--r--src/Keyboard.c4
-rw-r--r--src/NextEvent.c10
-rw-r--r--src/PassivGrab.c6
-rw-r--r--src/Selection.c2
-rw-r--r--src/TMaction.c2
-rw-r--r--src/TMparse.c2
-rw-r--r--src/TMstate.c2
11 files changed, 26 insertions, 26 deletions
diff --git a/src/Convert.c b/src/Convert.c
index 440d624..17faaa3 100644
--- a/src/Convert.c
+++ b/src/Convert.c
@@ -698,7 +698,7 @@ XtDirectConvert(XtConverter converter,
(*to).addr = NULL;
(*converter) (args, &num_args, from, to);
/* This memory can never be freed since we don't know the Display
- * or app context from which to compute the persistance */
+ * or app context from which to compute the persistence */
{
CacheEnter(&globalHeap, (XtTypeConverter) converter, args, num_args,
from, to, (to->addr != NULL), hash, False, False,
diff --git a/src/Converters.c b/src/Converters.c
index 4c27623..9e80544 100644
--- a/src/Converters.c
+++ b/src/Converters.c
@@ -1697,7 +1697,7 @@ XtCvtStringToCommandArgArray(Display *dpy,
(IsWhitespace(*(src + 1)) || IsNewline(*(src + 1)))) {
len = (int) (src - start);
if (len) {
- /* copy preceeding part of token */
+ /* copy preceding part of token */
memcpy(dst, start, (size_t) len);
dst += len;
}
diff --git a/src/Event.c b/src/Event.c
index dadcede..b423eeb 100644
--- a/src/Event.c
+++ b/src/Event.c
@@ -86,7 +86,7 @@ typedef struct _XtEventRecExt {
#define NonMaskableMask ((EventMask)0x80000000L)
/*
- * These are definitions to make the code that handles exposure compresssion
+ * These are definitions to make the code that handles exposure compression
* easier to read.
*
* COMP_EXPOSE - The compression exposure field of "widget"
@@ -212,7 +212,7 @@ RemoveEventHandler(Widget widget,
/* p->mask specifies count of EXT_SELECT_DATA(p,i)
* search through the list of selection data, if not found
- * dont remove this handler
+ * don't remove this handler
*/
for (i = 0; i < p->mask && select_data != EXT_SELECT_DATA(p, i);)
i++;
@@ -265,9 +265,9 @@ RemoveEventHandler(Widget widget,
* adding the event handlers.
* Arguments: widget - widget to register an event handler for.
* eventMask - events to mask for.
- * other - pass non maskable events to this proceedure.
- * proc - proceedure to register.
- * closure - data to pass to the event hander.
+ * other - pass non maskable events to this procedure.
+ * proc - procedure to register.
+ * closure - data to pass to the event handler.
* position - where to add this event handler.
* force_new_position - If the element is already in the
* list, this will force it to the
@@ -955,7 +955,7 @@ static void AddExposureToRectangularRegion(XEvent *, Region);
/* Function Name: CompressExposures
* Description: Handles all exposure compression
* Arguments: event - the xevent that is to be dispatched
- * widget - the widget that this event occured in.
+ * widget - the widget that this event occurred in.
* Returns: none.
*
* NOTE: Event must be of type Expose or GraphicsExpose.
@@ -1123,7 +1123,7 @@ _XtEventInitialize(void)
* Description: Sets the x, y, width, and height of the event
* to be the clip box of Expose Region.
* Arguments: event - the X Event to mangle; Expose or GraphicsExpose.
- * widget - the widget that this event occured in.
+ * widget - the widget that this event occurred in.
* pd - the per display information for this widget.
* Returns: none.
*/
diff --git a/src/Initialize.c b/src/Initialize.c
index 8ae54b4..8252d59 100644
--- a/src/Initialize.c
+++ b/src/Initialize.c
@@ -203,10 +203,10 @@ _XtInherit(void)
* First it could be used as a generic function and second
* as an absolute address reference, which will be used to
* check the initialisation process of several other libraries.
- * Because of this the symbol must be accessable by all
+ * Because of this the symbol must be accessible by all
* client dll's and applications. In unix environments
* this is no problem, because the used shared libraries
- * format (elf) supports this immediatly. Under Windows
+ * format (elf) supports this immediately. Under Windows
* this isn't true, because a functions address in a dll
* is different from the same function in another dll or
* applications, because the used Portable Executable
@@ -287,7 +287,7 @@ XtToolkitInitialize(void)
XrmInitialize();
_XtResourceListInitialize();
- /* Other intrinsic intialization */
+ /* Other intrinsic initialization */
_XtConvertInitialize();
_XtEventInitialize();
_XtTranslateInitialize();
diff --git a/src/Keyboard.c b/src/Keyboard.c
index da6fa11..71d8d12 100644
--- a/src/Keyboard.c
+++ b/src/Keyboard.c
@@ -226,7 +226,7 @@ IsOutside(XKeyEvent *e, Widget w)
/*
* if the pointer is outside the shell or inside
- * the window try to see if it would recieve the
+ * the window try to see if it would receive the
* focus
*/
XtTranslateCoords(w, 0, 0, &left, &top);
@@ -428,7 +428,7 @@ GetShell(Widget widget)
}
/*
- * Check that widget really has Xt focus due to it having recieved an
+ * Check that widget really has Xt focus due to it having received an
* event
*/
typedef enum { NotActive = 0, IsActive, IsTarget } ActiveType;
diff --git a/src/NextEvent.c b/src/NextEvent.c
index 6999c4f..b4802bf 100644
--- a/src/NextEvent.c
+++ b/src/NextEvent.c
@@ -601,7 +601,7 @@ _XtWaitForSomething(XtAppContext app,
if (app->lock == (ThreadAppProc) NULL)
drop_lock = FALSE;
#else
- drop_lock = drop_lock; /* avoid unsed warning */
+ drop_lock = drop_lock; /* avoid unused warning */
#endif
InitTimes((Boolean) block, howlong, &wt);
@@ -649,14 +649,14 @@ _XtWaitForSomething(XtAppContext app,
nfds = IoWait(&wt, &wf);
if (nfds == -1) {
/*
- * interrupt occured recalculate time value and wait again.
+ * interrupt occurred recalculate time value and wait again.
*/
if (errno == EINTR || errno == EAGAIN) {
if (errno == EAGAIN) {
- errno = 0; /* errno is not self reseting */
+ errno = 0; /* errno is not self resetting */
continue;
}
- errno = 0; /* errno is not self reseting */
+ errno = 0; /* errno is not self resetting */
/* was it interrupted by a signal that we care about? */
if (!ignoreSignals && app->signalQueue != NULL) {
@@ -1002,7 +1002,7 @@ XtNoticeSignal(XtSignalId id)
*
* Lastly, and perhaps most importantly, since POSIX threads
* says that the handling of asynchronous signals in a synchronous
- * threads environment is undefined. Therefor it would be an
+ * threads environment is undefined. Therefore it would be an
* error for both signals and threads to be in use in the same
* program.
*/
diff --git a/src/PassivGrab.c b/src/PassivGrab.c
index 9a2d90b..672c1ef 100644
--- a/src/PassivGrab.c
+++ b/src/PassivGrab.c
@@ -558,7 +558,7 @@ _XtCheckServerGrabsOnWidget(XEvent *event, Widget widget, _XtBoolean isKeyboard)
/*
* if either there is no entry in the context manager or the entry
- * is empty, or the keyboard is grabed, then no work to be done
+ * is empty, or the keyboard is grabbed, then no work to be done
*/
if (!*passiveListPtr)
return (XtServerGrabPtr) NULL;
@@ -859,7 +859,7 @@ XtUngrabButton(Widget widget, unsigned int button, Modifiers modifiers)
}
/*
- * Active grab of Device. clear any client side grabs so we dont lock
+ * Active grab of Device. clear any client side grabs so we don't lock
*/
static int
GrabDevice(Widget widget,
@@ -940,7 +940,7 @@ UngrabDevice(Widget widget, Time time, Boolean isKeyboard)
}
/*
- * Active grab of keyboard. clear any client side grabs so we dont lock
+ * Active grab of keyboard. clear any client side grabs so we don't lock
*/
int
XtGrabKeyboard(Widget widget,
diff --git a/src/Selection.c b/src/Selection.c
index f5df019..a38d5c3 100644
--- a/src/Selection.c
+++ b/src/Selection.c
@@ -979,7 +979,7 @@ OwnSelection(Widget widget,
XtAddCallback(widget, XtNdestroyCallback,
WidgetDestroyed, (XtPointer) ctx);
}
- ctx->widget = widget; /* Selection offically changes hands. */
+ ctx->widget = widget; /* Selection officially changes hands. */
ctx->time = time;
ctx->serial = serial;
}
diff --git a/src/TMaction.c b/src/TMaction.c
index 21e4c35..5e843b5 100644
--- a/src/TMaction.c
+++ b/src/TMaction.c
@@ -906,7 +906,7 @@ _XtPopupInitialize(XtAppContext app)
* The _XtGlobalTM.newMatchSemantics flag determines whether
* we support old or new matching
* behavior. This is mainly an issue of whether subsequent lhs will
- * get pushed up in the match table if a lhs containing thier initial
+ * get pushed up in the match table if a lhs containing this initial
* sequence has already been encountered. Currently inited to False;
*/
#ifdef NEW_TM
diff --git a/src/TMparse.c b/src/TMparse.c
index 62f2940..5beade0 100644
--- a/src/TMparse.c
+++ b/src/TMparse.c
@@ -709,7 +709,7 @@ ParseModifiers(register String str, EventPtr event, Boolean *error)
ScanWhitespace(str);
return str;
}
- else if (Qmod == QAny) { /*backward compatability */
+ else if (Qmod == QAny) { /*backward compatibility */
event->event.modifierMask = 0;
event->event.modifiers = AnyModifier;
ScanWhitespace(str);
diff --git a/src/TMstate.c b/src/TMstate.c
index 897d535..8c7854d 100644
--- a/src/TMstate.c
+++ b/src/TMstate.c
@@ -2036,7 +2036,7 @@ ComposeTranslations(Widget dest,
* If a GetValues is done on a translation resource that contains
* accelerators we need to return the accelerator context in addition
* to the pure translations. Since this means returning memory that
- * the client controlls but we still own, we will track the "headers"
+ * the client controls but we still own, we will track the "headers"
* that we return (via a linked list pointed to from the bindData) and
* free it at destroy time.
*/