summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-16 22:52:12 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-16 22:52:12 -0700
commitfb6002c5736eda80a8ae1df46626862ca53a1c25 (patch)
tree26a4c35c104f3eee0862229dc59eec05fb6b6372
parent455c02ee9143b2bfbfd99b6481a1b22a0ce2a2bf (diff)
downloadxorg-lib-libXRes-fb6002c5736eda80a8ae1df46626862ca53a1c25.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>
-rw-r--r--Makefile.am8
-rw-r--r--man/XRes.man66
-rw-r--r--src/XRes.c4
3 files changed, 39 insertions, 39 deletions
diff --git a/Makefile.am b/Makefile.am
index 061309f..456e398 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
-#
+#
# Copyright © 2003 Keith Packard, Noah Levitt
-#
+#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
@@ -10,7 +10,7 @@
# specific, written prior permission. Keith Packard makes no
# representations about the suitability of this software for any purpose. It
# is provided "as is" without express or implied warranty.
-#
+#
# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
@@ -21,7 +21,7 @@
AUTOMAKE_OPTIONS = foreign
-SUBDIRS = src man
+SUBDIRS = src man
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xres.pc
diff --git a/man/XRes.man b/man/XRes.man
index e62c07b..c35dec4 100644
--- a/man/XRes.man
+++ b/man/XRes.man
@@ -1,6 +1,6 @@
.\"
.\" Copyright (C) 1994-2003 The XFree86 Project, Inc. All Rights Reserved.
-.\"
+.\"
.\" Permission is hereby granted, free of charge, to any person obtaining
.\" a copy of this software and associated documentation files (the
.\" "Software"), to deal in the Software without restriction, including
@@ -8,10 +8,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 NON-INFRINGEMENT.
@@ -19,12 +19,12 @@
.\" 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 XFree86 Project
.\" 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 XFree86 Project.
-.\"
+.\"
.TH XRes __libmansuffix__ __vendorversion__
.SH NAME
XRes \- X-Resource extension client library
@@ -44,19 +44,19 @@ typedef struct {
} XResType;
.fi
.HP
-Bool XResQueryExtension(Display *\fIdpy\fP,
+Bool XResQueryExtension(Display *\fIdpy\fP,
int *\fIevent_base_return\fP, int *\fIerror_base_return\fP\^);
.HP
Status XResQueryVersion(Display *\fIdpy\fP, int *\fImajor_version_return\fP,
int *\fIminor_version_return\fP\^);
.HP
-Status XResQueryClients(Display *\fIdpy\fP, int *\fInum_clients\fP,
+Status XResQueryClients(Display *\fIdpy\fP, int *\fInum_clients\fP,
XResClient **\fIclients\fP\^);
.HP
-Status XResQueryClientResources(Display *\fIdpy\fP, XID \fIxid\fP,
+Status XResQueryClientResources(Display *\fIdpy\fP, XID \fIxid\fP,
int *\fInum_types\fP, XResType **\fItypes\fP\^);
.HP
-Status XResQueryClientPixmapBytes(Display *\fIdpy\fP, XID \fIxid\fP,
+Status XResQueryClientPixmapBytes(Display *\fIdpy\fP, XID \fIxid\fP,
unsigned long *\fIbytes\fP\^);
.PP
.SH DESCRIPTION
@@ -68,10 +68,10 @@ with the X resource database access functions.
.B XResQueryExtension
returns
.B True
-if the
+if the
.I XRes
extension is available on the given display.
-A client must call
+A client must call
.B XResQueryExtension
before calling any other XRes function in order
to negotiate a compatible protocol version; otherwise the client will
@@ -81,57 +81,57 @@ get undefined behavior (XRes may or may not work).
returns
.B True
if the request succeeded; the values of the major and minor protocol
-versions supported by the server are returned in
+versions supported by the server are returned in
.I major_version_return
-and
+and
.I minor_version_return .
.PP
.PP
-.B XResQueryClients
+.B XResQueryClients
fills a list of clients of the given display. For each client it
-returns in the
+returns in the
.I XResClient
structure a mask and a base value of the resources used by these
-clients.
-Returns
+clients.
+Returns
.B True
-on success or
+on success or
.B False
-on failure.
+on failure.
.PP
.B XResQueryClientResources
-fills a list of
+fills a list of
XResType
structures, indicating for each resource type allocated by the client its
-name (as an Atom) and the number of resources of this type allocated.
-Returns
+name (as an Atom) and the number of resources of this type allocated.
+Returns
.B True
-on success or
+on success or
.B False
-on failure.
+on failure.
.PP
.B XResQueryClientPixmapBytes
-gives, for resources of type
+gives, for resources of type
.I PIXMAP
the total number of bytes allocated in the X server by the given
-client.
-Returns
+client.
+Returns
.B True
-on success or
+on success or
.B False
-on failure.
+on failure.
.SH "ERRORS"
.B XResQueryClientResources
and
.B XResQueryClientPixmapBytes
-will return
+will return
.I BadValue
-if passed an illegal client identifier.
+if passed an illegal client identifier.
.SH "SEE ALSO"
X(__miscmansuffix__)
.SH AUTHOR
-Mark Vojkovich, originally for The XFree86 Project Inc.
+Mark Vojkovich, originally for The XFree86 Project Inc.
.SH STABILITY
This API is considered as experimental. The XRes library major
revision may be incremented whenever incompatible changes are done to
-the API without notice. Use with care.
+the API without notice. Use with care.
diff --git a/src/XRes.c b/src/XRes.c
index 518ad01..d1ba49c 100644
--- a/src/XRes.c
+++ b/src/XRes.c
@@ -38,7 +38,7 @@ static XExtensionHooks xres_extension_hooks = {
};
static XEXT_GENERATE_FIND_DISPLAY (find_display, xres_ext_info,
- xres_extension_name,
+ xres_extension_name,
&xres_extension_hooks,
0, NULL)
@@ -186,7 +186,7 @@ Status XResQueryClientResources (
_XEatData(dpy, rep.length << 2);
}
}
-
+
UnlockDisplay (dpy);
SyncHandle ();
return result;