summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-16 22:18:56 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-16 22:18:56 -0700
commitb46167511d429792086fb8e8cfea6f19b2fc9847 (patch)
tree0c9e6e660581dd670f711b744562724f7d5c8243 /src
parentead0cea593266b91f08d33a0c83170ba92d8ac7e (diff)
downloadxorg-lib-libXext-b46167511d429792086fb8e8cfea6f19b2fc9847.tar.gz
Strip trailing whitespace
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r--src/DPMS.c16
-rw-r--r--src/MITMisc.c2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/XAppgroup.c14
-rw-r--r--src/XLbx.c4
-rw-r--r--src/XMultibuf.c52
-rw-r--r--src/XShape.c6
-rw-r--r--src/XShm.c2
-rw-r--r--src/XSync.c2
-rw-r--r--src/XTestExt1.c36
-rw-r--r--src/Xcup.c8
-rw-r--r--src/Xdbe.c24
-rw-r--r--src/extutil.c22
-rw-r--r--src/globals.c2
14 files changed, 96 insertions, 96 deletions
diff --git a/src/DPMS.c b/src/DPMS.c
index 9fc9cca..07818a0 100644
--- a/src/DPMS.c
+++ b/src/DPMS.c
@@ -14,14 +14,14 @@ all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
-DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
-BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
+DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
+BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-Except as contained in this notice, the name of Digital Equipment Corporation
+Except as contained in this notice, the name of Digital Equipment Corporation
shall not be used in advertising or otherwise to promote the sale, use or other
-dealings in this Software without prior written authorization from Digital
+dealings in this Software without prior written authorization from Digital
Equipment Corporation.
******************************************************************/
@@ -74,7 +74,7 @@ static XEXT_GENERATE_FIND_DISPLAY (find_display, dpms_info,
NULL)
static XEXT_GENERATE_CLOSE_DISPLAY (close_display, dpms_info)
-
+
/*****************************************************************************
* *
* public routines *
@@ -150,14 +150,14 @@ DPMSSetTimeouts(Display *dpy, CARD16 standby, CARD16 suspend, CARD16 off)
XExtDisplayInfo *info = find_display (dpy);
register xDPMSSetTimeoutsReq *req;
- if ((off != 0)&&(off < suspend))
+ if ((off != 0)&&(off < suspend))
{
return BadValue;
}
if ((suspend != 0)&&(suspend < standby))
{
return BadValue;
- }
+ }
DPMSCheckExtension (dpy, info, 0);
LockDisplay(dpy);
diff --git a/src/MITMisc.c b/src/MITMisc.c
index a4000d6..bc452db 100644
--- a/src/MITMisc.c
+++ b/src/MITMisc.c
@@ -63,7 +63,7 @@ static /* const */ XExtensionHooks mit_extension_hooks = {
NULL /* error_string */
};
-static XEXT_GENERATE_FIND_DISPLAY (find_display, mit_info, mit_extension_name,
+static XEXT_GENERATE_FIND_DISPLAY (find_display, mit_info, mit_extension_name,
&mit_extension_hooks, MITMiscNumberEvents,
NULL)
diff --git a/src/Makefile.am b/src/Makefile.am
index 6e34bb9..e236c33 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -61,5 +61,5 @@ lintlibdir = $(libdir)
lintlib_DATA = $(LINTLIB)
$(LINTLIB): $(libXext_la_SOURCES)
- $(LINT) -y -oXext -x $(ALL_LINT_FLAGS) $(libXext_la_SOURCES)
+ $(LINT) -y -oXext -x $(ALL_LINT_FLAGS) $(libXext_la_SOURCES)
endif MAKE_LINT_LIB
diff --git a/src/XAppgroup.c b/src/XAppgroup.c
index 0d4396c..16650b6 100644
--- a/src/XAppgroup.c
+++ b/src/XAppgroup.c
@@ -78,9 +78,9 @@ static /* const */ XExtensionHooks xag_extension_hooks = {
NULL, /* error_string */
};
-static XEXT_GENERATE_FIND_DISPLAY (find_display, xag_info,
- xag_extension_name,
- &xag_extension_hooks,
+static XEXT_GENERATE_FIND_DISPLAY (find_display, xag_info,
+ xag_extension_name,
+ &xag_extension_hooks,
0, NULL)
static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xag_info)
@@ -157,7 +157,7 @@ StuffToWire (Display *dpy, struct xagstuff *stuff, xXagCreateReq *req)
Data32 (dpy, (long*) values, (long) nvalues);
}
-Bool
+Bool
XagCreateEmbeddedApplicationGroup(
Display* dpy,
VisualID root_visual,
@@ -178,7 +178,7 @@ XagCreateEmbeddedApplicationGroup(
stuff.default_root = RootWindow (dpy, DefaultScreen(dpy));
stuff.root_visual = root_visual;
stuff.default_colormap = default_colormap;
- stuff.attrib_mask =
+ stuff.attrib_mask =
XagAppGroupLeaderMask | XagSingleScreenMask | XagDefaultRootMask |
XagRootVisualMask | XagDefaultColormapMask;
if (default_colormap != None) {
@@ -198,7 +198,7 @@ XagCreateEmbeddedApplicationGroup(
return True;
}
-Bool
+Bool
XagCreateNonembeddedApplicationGroup(
Display* dpy,
XAppGroup* app_group_return)
@@ -358,7 +358,7 @@ XagCreateAssociation(Display* dpy, Window* window_return, void* system_window)
/* other platforms go here */
/* this whole thing could be arranged better, but since X need
- * only short-circuit the protocol and WIN32 is the only other
+ * only short-circuit the protocol and WIN32 is the only other
* platform the XC supports, it will suffice for now.
*/
*window_return = *(Window*)system_window;
diff --git a/src/XLbx.c b/src/XLbx.c
index e180dc4..b3ba1b2 100644
--- a/src/XLbx.c
+++ b/src/XLbx.c
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NCD.
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* Author: Keith Packard, Network Computing Devices
@@ -59,7 +59,7 @@ static /* const */ char *lbx_error_list[] = {
"BadLbxClient", /* BadLbxClient */
};
-static XEXT_GENERATE_FIND_DISPLAY (find_display, lbx_info, lbx_extension_name,
+static XEXT_GENERATE_FIND_DISPLAY (find_display, lbx_info, lbx_extension_name,
&lbx_extension_hooks, LbxNumberEvents, NULL)
static XEXT_GENERATE_CLOSE_DISPLAY (close_display, lbx_info)
diff --git a/src/XMultibuf.c b/src/XMultibuf.c
index ca9473d..fb995f8 100644
--- a/src/XMultibuf.c
+++ b/src/XMultibuf.c
@@ -77,18 +77,18 @@ static /* const */ char *multibuf_error_list[] = {
};
static XEXT_GENERATE_FIND_DISPLAY (find_display, multibuf_info,
- multibuf_extension_name,
- &multibuf_extension_hooks,
+ multibuf_extension_name,
+ &multibuf_extension_hooks,
MultibufferNumberEvents, NULL)
static XEXT_GENERATE_CLOSE_DISPLAY (close_display, multibuf_info)
static XEXT_GENERATE_ERROR_STRING (error_string, multibuf_extension_name,
- MultibufferNumberErrors,
+ MultibufferNumberErrors,
multibuf_error_list)
/*
- * wire_to_event - convert a wire event in network format to a C
+ * wire_to_event - convert a wire event in network format to a C
* event structure
*/
static Bool wire_to_event (Display *dpy, XEvent *libevent, xEvent *netevent)
@@ -102,7 +102,7 @@ static Bool wire_to_event (Display *dpy, XEvent *libevent, xEvent *netevent)
{
XmbufClobberNotifyEvent *ev;
xMbufClobberNotifyEvent *event;
-
+
ev = (XmbufClobberNotifyEvent *) libevent;
event = (xMbufClobberNotifyEvent *) netevent;
ev->type = event->type & 0x7f;
@@ -147,7 +147,7 @@ static Status event_to_wire (Display *dpy, XEvent *libevent, xEvent *netevent)
{
XmbufClobberNotifyEvent *ev;
xMbufClobberNotifyEvent *event;
-
+
ev = (XmbufClobberNotifyEvent *) libevent;
event = (xMbufClobberNotifyEvent *) netevent;
event->type = ev->type;
@@ -226,15 +226,15 @@ static XmbufBufferInfo *read_buffer_info (Display *dpy, int nbufs)
*****************************************************************************/
-/*
- * XmbufQueryExtension -
+/*
+ * XmbufQueryExtension -
* Returns True if the multibuffering/stereo extension is available
* on the given display. If the extension exists, the value of the
* first event code (which should be added to the event type constants
* MultibufferClobberNotify and MultibufferUpdateNotify to get the
* actual values) is stored into event_base and the value of the first
* error code (which should be added to the error type constant
- * MultibufferBadBuffer to get the actual value) is stored into
+ * MultibufferBadBuffer to get the actual value) is stored into
* error_base.
*/
Bool XmbufQueryExtension (
@@ -242,7 +242,7 @@ Bool XmbufQueryExtension (
int *event_base_return, int *error_base_return)
{
XExtDisplayInfo *info = find_display (dpy);
-
+
if (XextHasExtension (info)) {
*event_base_return = info->codes->first_event;
*error_base_return = info->codes->first_error;
@@ -253,7 +253,7 @@ Bool XmbufQueryExtension (
}
-/*
+/*
* XmbufGetVersion -
* Gets the major and minor version numbers of the extension. The return
* value is zero if an error occurs or non-zero if no error happens.
@@ -285,7 +285,7 @@ Status XmbufGetVersion (
/*
- * XmbufCreateBuffers -
+ * XmbufCreateBuffers -
* Requests that "count" buffers be created with the given update_action
* and update_hint and be associated with the indicated window. The
* number of buffers created is returned (zero if an error occurred)
@@ -329,7 +329,7 @@ int XmbufCreateBuffers (
/*
- * XmbufDestroyBuffers -
+ * XmbufDestroyBuffers -
* Destroys the buffers associated with the given window.
*/
void XmbufDestroyBuffers (Display *dpy, Window window)
@@ -348,7 +348,7 @@ void XmbufDestroyBuffers (Display *dpy, Window window)
/*
- * XmbufDisplayBuffers -
+ * XmbufDisplayBuffers -
* Displays the indicated buffers their appropriate windows within
* max_delay milliseconds after min_delay milliseconds have passed.
* No two buffers may be associated with the same window or else a Match
@@ -378,7 +378,7 @@ void XmbufDisplayBuffers (
/*
- * XmbufGetWindowAttributes -
+ * XmbufGetWindowAttributes -
* Gets the multibuffering attributes that apply to all buffers associated
* with the given window. Returns non-zero on success and zero if an
* error occurs.
@@ -402,7 +402,7 @@ Status XmbufGetWindowAttributes (
SyncHandle ();
return 0;
}
- attr->buffers = (Multibuffer *) NULL;
+ attr->buffers = (Multibuffer *) NULL;
if ((attr->nbuffers = rep.length)) {
int nbytes = rep.length * sizeof(Multibuffer);
attr->buffers = (Multibuffer *) Xmalloc((unsigned) nbytes);
@@ -427,7 +427,7 @@ Status XmbufGetWindowAttributes (
/*
- * XmbufChangeWindowAttributes -
+ * XmbufChangeWindowAttributes -
* Sets the multibuffering attributes that apply to all buffers associated
* with the given window. This is currently limited to the update_hint.
*/
@@ -450,7 +450,7 @@ void XmbufChangeWindowAttributes (
unsigned long *v = values;
unsigned int nvalues;
- if (valuemask & MultibufferWindowUpdateHint)
+ if (valuemask & MultibufferWindowUpdateHint)
*v++ = attr->update_hint;
req->length += (nvalues = v - values);
nvalues <<= 2; /* watch out for macros... */
@@ -462,7 +462,7 @@ void XmbufChangeWindowAttributes (
/*
- * XmbufGetBufferAttributes -
+ * XmbufGetBufferAttributes -
* Gets the attributes for the indicated buffer. Returns non-zero on
* success and zero if an error occurs.
*/
@@ -497,7 +497,7 @@ Status XmbufGetBufferAttributes (
/*
- * XmbufChangeBufferAttributes -
+ * XmbufChangeBufferAttributes -
* Sets the attributes for the indicated buffer. This is currently
* limited to the event_mask.
*/
@@ -533,15 +533,15 @@ void XmbufChangeBufferAttributes (
/*
- * XmbufGetScreenInfo -
+ * XmbufGetScreenInfo -
* Gets the parameters controlling how mono and stereo windows may be
- * created on the indicated screen. The numbers of sets of visual and
- * depths are returned in nmono_return and nstereo_return. If
+ * created on the indicated screen. The numbers of sets of visual and
+ * depths are returned in nmono_return and nstereo_return. If
* nmono_return is greater than zero, then mono_info_return is set to
* the address of an array of XmbufBufferInfo structures describing the
* various visuals and depths that may be used. Otherwise,
* mono_info_return is set to NULL. Similarly, stereo_info_return is
- * set according to nstereo_return. The storage returned in
+ * set according to nstereo_return. The storage returned in
* mono_info_return and stereo_info_return may be released by XFree.
* If no errors are encounted, non-zero will be returned.
*/
@@ -595,10 +595,10 @@ Status XmbufGetScreenInfo (
/*
- * XmbufCreateStereoWindow -
+ * XmbufCreateStereoWindow -
* Creates a stereo window in the same way that XCreateWindow creates
* a mono window (in fact, use the same code, except for the request)
- * and returns the left and right buffers that may be
+ * and returns the left and right buffers that may be
*/
Window XmbufCreateStereoWindow (
Display *dpy,
diff --git a/src/XShape.c b/src/XShape.c
index 708c20f..1e3a77f 100644
--- a/src/XShape.c
+++ b/src/XShape.c
@@ -70,7 +70,7 @@ static /* const */ XExtensionHooks shape_extension_hooks = {
};
static XEXT_GENERATE_FIND_DISPLAY (find_display, shape_info,
- shape_extension_name,
+ shape_extension_name,
&shape_extension_hooks,
ShapeNumberEvents, NULL)
@@ -202,7 +202,7 @@ void XShapeCombineRegion(
LockDisplay(dpy);
GetReq(ShapeRectangles, req);
- xr = (XRectangle *)
+ xr = (XRectangle *)
_XAllocScratch(dpy, (unsigned long)(r->numRects * sizeof (XRectangle)));
for (pr = xr, pb = r->rects, i = r->numRects; --i >= 0; pr++, pb++) {
pr->x = pb->x1;
@@ -354,7 +354,7 @@ Status XShapeQueryExtents (
XExtDisplayInfo *info = find_display (dpy);
xShapeQueryExtentsReply rep;
register xShapeQueryExtentsReq *req;
-
+
ShapeCheckExtension (dpy, info, 0);
LockDisplay (dpy);
diff --git a/src/XShm.c b/src/XShm.c
index d1f1a4d..e3f8fa0 100644
--- a/src/XShm.c
+++ b/src/XShm.c
@@ -74,7 +74,7 @@ static /* const */ char *shm_error_list[] = {
"BadShmSeg", /* BadShmSeg */
};
-static XEXT_GENERATE_FIND_DISPLAY (find_display, shm_info, shm_extension_name,
+static XEXT_GENERATE_FIND_DISPLAY (find_display, shm_info, shm_extension_name,
&shm_extension_hooks, ShmNumberEvents, NULL)
static XEXT_GENERATE_CLOSE_DISPLAY (close_display, shm_info)
diff --git a/src/XSync.c b/src/XSync.c
index 2bdecfc..0e19922 100644
--- a/src/XSync.c
+++ b/src/XSync.c
@@ -414,7 +414,7 @@ XSyncFreeSystemCounterList(XSyncSystemCounter *list)
}
-XSyncCounter
+XSyncCounter
XSyncCreateCounter(Display *dpy, XSyncValue initial_value)
{
XExtDisplayInfo *info = find_display(dpy);
diff --git a/src/XTestExt1.c b/src/XTestExt1.c
index c12c223..15aa4c0 100644
--- a/src/XTestExt1.c
+++ b/src/XTestExt1.c
@@ -41,8 +41,8 @@ documentation, and that the name of Hewlett-Packard not be used in
advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
-Hewlett-Packard makes no representations about the
-suitability of this software for any purpose. It is provided
+Hewlett-Packard makes no representations about the
+suitability of this software for any purpose. It is provided
"as is" without express or implied warranty.
This software is not subject to any license of the American
@@ -147,7 +147,7 @@ int action_list_size,
* input action buffer is empty
*/
int ack_flag)
-{
+{
/*
* pointer to xTestFakeInputReq structure
*/
@@ -162,7 +162,7 @@ int ack_flag)
(action_list_size > XTestMAX_ACTION_LIST_SIZE))
{
/*
- * if the extension is not installed in the server or the
+ * if the extension is not installed in the server or the
* action list will not fit in the request, then unlock
* the display and return -1.
*/
@@ -179,7 +179,7 @@ int ack_flag)
*
* GetReq is a macro defined in Xlibint.h.
*/
- GetReq(TestFakeInput, req);
+ GetReq(TestFakeInput, req);
/*
* fix up the request type code to what is needed
*/
@@ -232,7 +232,7 @@ register Display *dpy,
* tells the server what to do with the user input actions
*/
int action_handling)
-{
+{
/*
* pointer to xTestGetInputReq structure
*/
@@ -258,7 +258,7 @@ int action_handling)
*
* GetReq is a macro defined in Xlibint.h.
*/
- GetReq(TestGetInput, req);
+ GetReq(TestGetInput, req);
/*
* fix up the request type code to what is needed
*/
@@ -290,7 +290,7 @@ XTestStopInput(
* the connection to the X server
*/
register Display *dpy)
-{
+{
/*
* pointer to xTestStopInputReq structure
*/
@@ -316,7 +316,7 @@ register Display *dpy)
*
* GetReq is a macro defined in Xlibint.h.
*/
- GetReq(TestStopInput, req);
+ GetReq(TestStopInput, req);
/*
* fix up the request type code to what is needed
*/
@@ -344,7 +344,7 @@ XTestReset(
* the connection to the X server
*/
register Display *dpy)
-{
+{
/*
* pointer to xTestReset structure
*/
@@ -370,7 +370,7 @@ register Display *dpy)
*
* GetReq is a macro defined in Xlibint.h.
*/
- GetReq(TestReset, req);
+ GetReq(TestReset, req);
/*
* fix up the request type code to what is needed
*/
@@ -402,7 +402,7 @@ register Display *dpy,
* server's input action buffer
*/
unsigned long *size_return)
-{
+{
/*
* pointer to xTestQueryInputSize structure
*/
@@ -432,7 +432,7 @@ unsigned long *size_return)
*
* GetReq is a macro defined in Xlibint.h.
*/
- GetReq(TestQueryInputSize, req);
+ GetReq(TestQueryInputSize, req);
/*
* fix up the request type code to what is needed
*/
@@ -471,7 +471,7 @@ register Display *dpy)
/*
* if the extension has not been initialized, then do so
*/
- if (!XTestReqCode)
+ if (!XTestReqCode)
{
return(XTestInitExtension(dpy));
}
@@ -518,7 +518,7 @@ register Display *dpy)
*/
XTestReqCode = ret->major_opcode;
/*
- * set up the event handler for any events from
+ * set up the event handler for any events from
* this extension
*/
for (i = 0; i < XTestEVENT_COUNT; i++)
@@ -732,7 +732,7 @@ unsigned int action)
return(-1);
}
/*
- * create the header
+ * create the header
*/
keyinfo.header = XTestPackDeviceID(device_id) |
XTestKEY_ACTION |
@@ -765,7 +765,7 @@ unsigned int action)
return(-1);
}
/*
- * create the header
+ * create the header
*/
keyinfo.header = XTestPackDeviceID(device_id) |
XTestKEY_ACTION |
@@ -1138,7 +1138,7 @@ int action_size)
/*
* We have to write input actions to the server. If the server's
* input action capacity will be reached, then ask for an
- * acknowledge event when the server has processed all of the
+ * acknowledge event when the server has processed all of the
* input actions. Otherwise, an acknowledge event is not needed.
*/
if (action_count >= action_array_size)
diff --git a/src/Xcup.c b/src/Xcup.c
index 2f73d2d..ad78699 100644
--- a/src/Xcup.c
+++ b/src/Xcup.c
@@ -62,9 +62,9 @@ static /* const */ XExtensionHooks xcup_extension_hooks = {
NULL, /* error_string */
};
-static XEXT_GENERATE_FIND_DISPLAY (find_display, xcup_info,
- xcup_extension_name,
- &xcup_extension_hooks,
+static XEXT_GENERATE_FIND_DISPLAY (find_display, xcup_info,
+ xcup_extension_name,
+ &xcup_extension_hooks,
0, NULL)
static XEXT_GENERATE_CLOSE_DISPLAY (close_display, xcup_info)
@@ -111,7 +111,7 @@ XcupQueryVersion(
#define TYP_RESERVED_ENTRIES 20
#endif
-Status
+Status
XcupGetReservedColormapEntries(
Display* dpy,
int screen,
diff --git a/src/Xdbe.c b/src/Xdbe.c
index f167088..1b9e2da 100644
--- a/src/Xdbe.c
+++ b/src/Xdbe.c
@@ -1,5 +1,5 @@
/******************************************************************************
- *
+ *
* Copyright (c) 1994, 1995 Hewlett-Packard Company
*
* Permission is hereby granted, free of charge, to any person obtaining
@@ -9,10 +9,10 @@
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
- *
+ *
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@@ -20,12 +20,12 @@
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
* THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
+ *
* Except as contained in this notice, the name of the Hewlett-Packard
* Company shall not be used in advertising or otherwise to promote the
* sale, use or other dealings in this Software without prior written
* authorization from the Hewlett-Packard Company.
- *
+ *
* Xlib DBE code
*
*****************************************************************************/
@@ -91,14 +91,14 @@ static char *dbe_error_list[] = {
};
static XEXT_GENERATE_FIND_DISPLAY (find_display, dbe_info,
- dbe_extension_name,
- &dbe_extension_hooks,
+ dbe_extension_name,
+ &dbe_extension_hooks,
DbeNumberEvents, NULL)
static XEXT_GENERATE_CLOSE_DISPLAY (close_display, dbe_info)
static XEXT_GENERATE_ERROR_STRING (error_string, dbe_extension_name,
- DbeNumberErrors,
+ DbeNumberErrors,
dbe_error_list)
@@ -108,7 +108,7 @@ static XEXT_GENERATE_ERROR_STRING (error_string, dbe_extension_name,
* *
*****************************************************************************/
-/*
+/*
* XdbeQueryExtension -
* Sets major_version_return and minor_verion_return to the major and
* minor DBE protocol version supported by the server. If the DBE
@@ -193,7 +193,7 @@ XdbeBackBuffer XdbeAllocateBackBufferName(
} /* XdbeAllocateBackBufferName() */
/*
- * XdbeDeallocateBackBufferName -
+ * XdbeDeallocateBackBufferName -
* This function frees a drawable ID, buffer, that was obtained via
* XdbeAllocateBackBufferName. The buffer must refer to the back buffer
* of the specified window, or a protocol error results.
@@ -218,7 +218,7 @@ Status XdbeDeallocateBackBufferName (
/*
- * XdbeSwapBuffers -
+ * XdbeSwapBuffers -
* This function swaps the front and back buffers for a list of windows.
* The argument num_windows specifies how many windows are to have their
* buffers swapped; it is the number of elements in the swap_info array.
@@ -385,7 +385,7 @@ XdbeScreenVisualInfo *XdbeGetVisualInfo (
SyncHandle ();
return NULL;
}
-
+
/* Read the visual info item into the wire structure. Then copy each
* element into the library structure. The element sizes and/or
* padding may be different in the two structures.
diff --git a/src/extutil.c b/src/extutil.c
index 9fc8e25..361a327 100644
--- a/src/extutil.c
+++ b/src/extutil.c
@@ -24,23 +24,23 @@ in this Software without prior written authorization from The Open Group.
*
* Author: Jim Fulton, MIT X Consortium
*
- *
+ *
* Xlib Extension-Writing Utilities
- *
+ *
* This package contains utilities for writing the client API for various
* protocol extensions. THESE INTERFACES ARE NOT PART OF THE X STANDARD AND
* ARE SUBJECT TO CHANGE!
- *
+ *
* Routines include:
- *
+ *
* XextCreateExtension called once per extension
* XextDestroyExtension if no longer using extension
* XextAddDisplay add another display
* XextRemoveDisplay remove a display
* XextFindDisplay is a display open
- *
+ *
* In addition, the following Xlib-style interfaces are provided:
- *
+ *
* XSetExtensionErrorHandler establish an extension error handler
* XMissingExtension raise an error about missing ext
*/
@@ -55,12 +55,12 @@ in this Software without prior written authorization from The Open Group.
#include <X11/extensions/ge.h>
/* defined in Xge.c */
-extern _X_HIDDEN Bool
+extern _X_HIDDEN Bool
xgeExtRegister(Display* dpy, int extension, XExtensionHooks* callbacks);
/*
* XextCreateExtension - return an extension descriptor containing context
- * information for this extension. This object is passed to all Xext
+ * information for this extension. This object is passed to all Xext
* routines.
*/
XExtensionInfo *XextCreateExtension (void)
@@ -110,7 +110,7 @@ XExtDisplayInfo *XextAddDisplay (
dpyinfo->codes = XInitExtension (dpy, ext_name);
/*
- * if the server has the extension, then we can initialize the
+ * if the server has the extension, then we can initialize the
* appropriate function vectors
*/
if (dpyinfo->codes) {
@@ -138,7 +138,7 @@ XExtDisplayInfo *XextAddDisplay (
if (hooks->free_font)
XESetFreeFont (dpy, dpyinfo->codes->extension, hooks->free_font);
if (hooks->close_display)
- XESetCloseDisplay (dpy, dpyinfo->codes->extension,
+ XESetCloseDisplay (dpy, dpyinfo->codes->extension,
hooks->close_display);
if (hooks->error)
XESetError (dpy, dpyinfo->codes->extension, hooks->error);
@@ -251,7 +251,7 @@ static int _default_exterror (Display *dpy, _Xconst char *ext_name, _Xconst char
/*
- * XSetExtensionErrorHandler - sets the handler that gets called when a
+ * XSetExtensionErrorHandler - sets the handler that gets called when a
* requested extension is referenced. This should eventually move into Xlib.
*/
diff --git a/src/globals.c b/src/globals.c
index f85d63a..8b5923d 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -43,7 +43,7 @@ from The Open Group.
*/
#ifdef NULL_NOT_ZERO /* then need to initialize */
#define SetZero(t,var,z) t var = z
-#else
+#else
#define SetZero(t,var,z) t var
#endif