From 8f68b59f2b66f035ad97e3fe99e9eae983d1f44b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 16 Sep 2011 22:55:23 -0700 Subject: 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 --- Makefile.am | 6 +++--- man/XTest.xml | 32 ++++++++++++++++---------------- src/XRecord.c | 20 ++++++++++---------- src/XTest.c | 2 +- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9bc0525..da9d32f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ -# +# # Copyright 2005 Red Hat, Inc. -# +# # 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. Red Hat makes no # representations about the suitability of this software for any purpose. It # is provided "as is" without express or implied warranty. -# +# # RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO # EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR diff --git a/man/XTest.xml b/man/XTest.xml index 22b6750..9d21ef7 100644 --- a/man/XTest.xml +++ b/man/XTest.xml @@ -3,22 +3,22 @@ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"> - @@ -207,7 +207,7 @@ cc [ flag ... ] file ... -lXtst [ library ... ] This extension is a minimal set of client and server extensions required to completely test the X11 server with no user intervention. This extension is not intended to support general journaling and -playback of user actions. +playback of user actions. The functions provided by this extension fall into two groups: @@ -218,7 +218,7 @@ playback of user actions. actual implementation will depend on the details of the actual language binding and what degree of request buffering, GContext caching, and so on, is provided. In the C binding, routines are provided -to access the internals of two opaque data structures +to access the internals of two opaque data structures — GCs and Visuals — @@ -236,7 +236,7 @@ number to the server and for the server to respond with major and minor versions of its own. The remaining two requests allow the following: -Access to an otherwise write-only server resource: +Access to an otherwise write-only server resource: the cursor associated with a given window @@ -278,12 +278,12 @@ with the cursor of the window specified by window returning True if they are the same and False -otherwise. +otherwise. If the extension is not supported, then the request is ignored and zero is returned. -If the extension is supported, +If the extension is supported, XTestCompareCurrentCursorWithWindow performs a comparison of the current cursor with the cursor of the specified window returning diff --git a/src/XRecord.c b/src/XRecord.c index 45c8b43..69d6120 100644 --- a/src/XRecord.c +++ b/src/XRecord.c @@ -160,7 +160,7 @@ static int close_display( static XPointer alloc_mem_cache(void) { struct mem_cache_str *cache; - + /* note that an error will go unnoticed */ cache = (struct mem_cache_str *) Xmalloc(sizeof(struct mem_cache_str)); if (cache) { @@ -234,7 +234,7 @@ SendRange( xrange.errorsLast = (*range_item)->errors.last; xrange.clientStarted = (*range_item)->client_started; xrange.clientDied = (*range_item)->client_died; - + Data(dpy, (char *)&xrange, rlen); range_item++; } @@ -727,7 +727,7 @@ parse_reply_call_callback( data = alloc_inter_data(info); if (!data) return Error; - + data->id_base = rep->idBase; data->category = rep->category; data->client_swapped = rep->clientSwapped; @@ -795,7 +795,7 @@ parse_reply_call_callback( case XRecordEndOfData: datum_bytes = 0; } - + if (datum_bytes > 0) { if (current_index + datum_bytes > rep->length << 2) fprintf(stderr, @@ -805,7 +805,7 @@ parse_reply_call_callback( /* * This assignment (and indeed the whole buffer sharing * scheme) assumes arbitrary 4-byte boundaries are - * addressable. + * addressable. */ data->data = reply->buf+current_index; reply->ref_count++; @@ -813,9 +813,9 @@ parse_reply_call_callback( data->data = NULL; } data->data_len = datum_bytes >> 2; - + (*callback)(closure, data); - + current_index += datum_bytes; } while (current_indexlength<<2); @@ -931,7 +931,7 @@ record_async_handler( Xfree(state->async); return False; } - + _XGetAsyncData(dpy, (char *)reply->buf, buf, len, SIZEOF(xRecordEnableContextReply), rep->generic.length << 2, 0); @@ -939,8 +939,8 @@ record_async_handler( reply = NULL; } - status = parse_reply_call_callback(dpy, state->info, - (xRecordEnableContextReply*) rep, + status = parse_reply_call_callback(dpy, state->info, + (xRecordEnableContextReply*) rep, reply, state->callback, state->closure); if (status != Continue) diff --git a/src/XTest.c b/src/XTest.c index 76193a1..759e0e8 100644 --- a/src/XTest.c +++ b/src/XTest.c @@ -81,7 +81,7 @@ get_xinput_base(Display *dpy) } static XEXT_GENERATE_FIND_DISPLAY (find_display, xtest_info, - xtest_extension_name, + xtest_extension_name, &xtest_extension_hooks, XTestNumberEvents, get_xinput_base(dpy)) -- cgit v1.2.3