Commit 23e83724 authored by Alan Coopersmith's avatar Alan Coopersmith
Browse files

Fix spelling/wording issues



Most (but not all) of these were found by using
  codespell --builtin clear,rare,usage,informal,code,names
but not everything reported by that was fixed.
Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent b0413b6e
......@@ -19,7 +19,7 @@ Xorg mailing list:
https://lists.freedesktop.org/mailman/listinfo/xorg
The master development code repository can be found at:
The primary development code repository can be found at:
https://gitlab.freedesktop.org/xorg/xserver
......
......@@ -40,7 +40,7 @@ typedef struct {
int keySize;
} HtGenericHashSetupRec, *HtGenericHashSetupPtr;
/** @brief ht_create initalizes a hash table for a certain hash table
/** @brief ht_create initializes a hash table for a certain hash table
configuration
@param[out] ht The hash table structure to initialize
......
......@@ -366,7 +366,7 @@ ScreenSaverFreeSuspend(void *value, XID id)
}
}
/* Reenable the screensaver if this was the last client suspending it. */
/* Re-enable the screensaver if this was the last client suspending it. */
if (screenSaverSuspended && suspendingClients == NULL) {
screenSaverSuspended = FALSE;
......@@ -1243,7 +1243,7 @@ ProcScreenSaverSuspend(ClientPtr client)
/*
* Allocate a suspension record for the client, and stop the screensaver
* if it isn't already suspended by another client. We attach a resource ID
* to the record, so the screensaver will be reenabled and the record freed
* to the record, so the screensaver will be re-enabled and the record freed
* if the client disconnects without reenabling it first.
*/
this = malloc(sizeof(ScreenSaverSuspensionRec));
......
......@@ -303,8 +303,8 @@ ProcShmQueryVersion(ClientPtr client)
}
/*
* Simulate the access() system call for a shared memory segement,
* using the credentials from the client if available
* Simulate the access() system call for a shared memory segment,
* using the credentials from the client if available.
*/
static int
shm_access(ClientPtr client, SHMPERM_TYPE * perm, int readonly)
......
......@@ -277,8 +277,8 @@ ProcVidModeGetModeLine(ClientPtr client)
/*
* Older servers sometimes had server privates that the VidMode
* extention made available. So to be compatiable pretend that
* there are no server privates to pass to the client
* extension made available. So to be compatible pretend that
* there are no server privates to pass to the client.
*/
rep.privsize = 0;
......
......@@ -72,7 +72,7 @@ typedef struct {
HashTable visitedResources;
/* Used by AddSubResourceSizeSpec when AddResourceSizeValue is
handling crossreferences */
handling cross-references */
HashTable visitedSubResources;
/* used when ConstructResourceBytesCtx is passed to
......@@ -442,7 +442,7 @@ WillConstructMask(ClientPtr client, CARD32 mask,
client id spec
@param sendClient Which client wishes to receive this answer. Used for
byte endianess.
byte endianness.
@param client Which client are we considering.
@param mask The client id spec mask indicating which information
we want about this client.
......@@ -609,7 +609,7 @@ ProcXResQueryClientIds (ClientPtr client)
return rc;
}
/** @brief Swaps xXResResourceIdSpec endianess */
/** @brief Swaps xXResResourceIdSpec endianness */
static void
SwapXResResourceIdSpec(xXResResourceIdSpec *spec)
{
......@@ -617,7 +617,7 @@ SwapXResResourceIdSpec(xXResResourceIdSpec *spec)
swapl(&spec->type);
}
/** @brief Swaps xXResResourceSizeSpec endianess */
/** @brief Swaps xXResResourceSizeSpec endianness */
static void
SwapXResResourceSizeSpec(xXResResourceSizeSpec *size)
{
......@@ -627,7 +627,7 @@ SwapXResResourceSizeSpec(xXResResourceSizeSpec *size)
swapl(&size->useCount);
}
/** @brief Swaps xXResResourceSizeValue endianess */
/** @brief Swaps xXResResourceSizeValue endianness */
static void
SwapXResResourceSizeValue(xXResResourceSizeValue *rep)
{
......
......@@ -57,9 +57,10 @@
#include "extinit.h"
/* XTest events are sent during request processing and may be interruped by
/* XTest events are sent during request processing and may be interrupted by
* a SIGIO. We need a separate event list to avoid events overwriting each
* other's memory */
* other's memory.
*/
static InternalEvent *xtest_evlist;
/**
......
......@@ -425,7 +425,7 @@ XvdiDestroyVideoNotifyList(void *pn, XID id)
{
XvVideoNotifyPtr npn, cpn;
/* ACTUALLY DESTROY THE NOTITY LIST */
/* ACTUALLY DESTROY THE NOTIFY LIST */
cpn = (XvVideoNotifyPtr) pn;
......@@ -820,7 +820,7 @@ XvdiSelectVideoNotify(ClientPtr client, DrawablePtr pDraw, BOOL onoff)
tpn = tpn->next;
}
/* IF TUNNING OFF, THEN JUST RETURN */
/* IF TURNING OFF, THEN JUST RETURN */
if (!onoff)
return Success;
......
......@@ -108,7 +108,7 @@ DeleteDeviceEvents(DeviceIntPtr dev, WindowPtr pWin, ClientPtr client)
/***********************************************************************
*
* Walk througth the window tree, deleting event selections for this client
* Walk through the window tree, deleting event selections for this client
* from this device from all windows.
*
*/
......
......@@ -653,7 +653,7 @@ DeepCopyPointerClasses(DeviceIntPtr from, DeviceIntPtr to)
* Copies the CONTENT of the classes of device from into the classes in device
* to. From and to are identical after finishing.
*
* If to does not have classes from currenly has, the classes are stored in
* If to does not have classes from currently has, the classes are stored in
* to's devPrivates system. Later, we recover it again from there if needed.
* Saves a few memory allocations.
*/
......@@ -2667,7 +2667,7 @@ SendEvent(ClientPtr client, DeviceIntPtr d, Window dest, Bool propagate,
return Success;
/* If the input focus is PointerRootWin, send the event to where
* the pointer is if possible, then perhaps propogate up to root. */
* the pointer is if possible, then perhaps propagate up to root. */
if (inputFocus == PointerRootWin)
inputFocus = GetCurrentRootWindow(d);
......
......@@ -153,7 +153,7 @@ ProcXGrabDevice(ClientPtr client)
* set when XI starts up) and binary OR's the device's mask to whatever the
* event mask for the given event type was.
* If an error occurs, it is sent to the client. Errors are generated if
* - if the device given in the event classs is invalid
* - if the device given in the event class is invalid
* - if the device in the class list is not the device given as parameter (no
* error if parameter is NULL)
*
......
......@@ -414,7 +414,7 @@ XIResetProperties(void)
* @param val The property value
* @param nelem_return The maximum number of elements to return.
* @param buf_return Pointer to an array of at least @nelem_return values.
* @return Success or the error code if an error occured.
* @return Success or the error code if an error occurred.
*/
_X_EXPORT int
XIPropToInt(XIPropertyValuePtr val, int *nelem_return, int **buf_return)
......@@ -484,7 +484,7 @@ XIPropToInt(XIPropertyValuePtr val, int *nelem_return, int **buf_return)
* @param val The property value
* @param nelem_return The maximum number of elements to return.
* @param buf_return Pointer to an array of at least @nelem_return values.
* @return Success or the error code if an error occured.
* @return Success or the error code if an error occurred.
*/
_X_EXPORT int
XIPropToFloat(XIPropertyValuePtr val, int *nelem_return, float **buf_return)
......@@ -521,7 +521,7 @@ XIPropToFloat(XIPropertyValuePtr val, int *nelem_return, float **buf_return)
/* Registers a new property handler on the given device and returns a unique
* identifier for this handler. This identifier is required to unregister the
* property handler again.
* @return The handler's identifier or 0 if an error occured.
* @return The handler's identifier or 0 if an error occurred.
*/
long
XIRegisterPropertyHandler(DeviceIntPtr dev,
......
......@@ -453,7 +453,7 @@ compReparentWindow(WindowPtr pWin, WindowPtr pPriorParent)
compUnredirectOneSubwindow(pPriorParent, pWin);
compRedirectOneSubwindow(pWin->parent, pWin);
/*
* Add any implict redirect due to synthesized visual
* Add any implicit redirect due to synthesized visual
*/
if (compImplicitRedirect(pWin, pWin->parent))
compRedirectWindow(serverClient, pWin, CompositeRedirectAutomatic);
......
......@@ -189,7 +189,7 @@ if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xn
AC_DEFINE([NO_LOCAL_CLIENT_CRED], 1, [Define to 1 if no local socket credentials interface exists])
fi
dnl Find the math libary, then check for cbrt function in it.
dnl Find the math library, then check for cbrt function in it.
AC_CHECK_LIB(m, sqrt)
AC_CHECK_FUNCS([cbrt])
......
......@@ -1127,7 +1127,7 @@ DbeSetupBackgroundPainter(WindowPtr pWin, GCPtr pGC)
* DbeExtensionInit().
*
* To make resource deletion simple, we do not do anything in this function
* and leave all resource deleteion to DbeWindowPrivDelete(), which will
* and leave all resource deletion to DbeWindowPrivDelete(), which will
* eventually be called or already has been called. Deletion functions are
* not guaranteed to be called in any particular order.
*
......@@ -1183,7 +1183,7 @@ DbeWindowPrivDelete(void *pDbeWinPriv, XID id)
}
else {
/* We are removing the last ID in the array, in which case, the
* assignement below is all that we need to do.
* assignment below is all that we need to do.
*/
}
pDbeWindowPriv->IDs[pDbeWindowPriv->nBufferIDs - 1] = DBE_FREE_ID_ELEMENT;
......
......@@ -171,7 +171,7 @@ typedef struct _DbeWindowPrivRec {
typedef struct _DbeScreenPrivRec {
/* Wrapped functions
* It is the responsibilty of the DDX layer to wrap PositionWindow().
* It is the responsibility of the DDX layer to wrap PositionWindow().
* DbeExtensionInit wraps DestroyWindow().
*/
PositionWindowProcPtr PositionWindow;
......
# Add & Override for this directory and it's subdirectories
# Add & Override for this directory and its subdirectories
dix.O
......@@ -1095,7 +1095,7 @@ AllocColor(ColormapPtr pmap,
/*
* FakeAllocColor -- fake an AllocColor request by
* returning a free pixel if availible, otherwise returning
* returning a free pixel if available, otherwise returning
* the closest matching pixel. This is used by the mi
* software sprite code to recolor cursors. A nice side-effect
* is that this routine will never return failure.
......@@ -2510,7 +2510,7 @@ _colormap_find_resource(void *value, XID id, void *cdata)
}
/* something has realloced the visuals, instead of breaking
ABI fix it up here - glx and compsite did this wrong */
ABI fix it up here - glx and composite did this wrong */
Bool
ResizeVisualArray(ScreenPtr pScreen, int new_visual_count, DepthPtr depth)
{
......
......@@ -3864,7 +3864,7 @@ static int init_screen(ScreenPtr pScreen, int i, Bool gpu)
/*
* This loop gets run once for every Screen that gets added,
* but thats ok. If the ddx layer initializes the formats
* but that's ok. If the ddx layer initializes the formats
* one at a time calling AddScreen() after each, then each
* iteration will make it a little more accurate. Worst case
* we do this loop N * numPixmapFormats where N is # of screens.
......
......@@ -1108,7 +1108,7 @@ doPolyText(ClientPtr client, PTclosurePtr c)
if (ClientIsAsleep(client)) {
/* Client has died, but we cannot bail out right now. We
need to clean up after the work we did when going to
sleep. Setting the drawable poiner to 0 makes this
sleep. Setting the drawable pointer to 0 makes this
happen without any attempts to render or perform other
unnecessary activities. */
c->pDraw = (DrawablePtr) 0;
......
Markdown is supported
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