[PATCH:libX11] Remove unused ETEST & ESZTEST macros from XlibInt.c

Jasper St. Pierre jstpierre at mecheye.net
Sat Jan 4 08:11:36 PST 2014


Reviewed-by: Jasper St. Pierre <jstpierre at mecheye.net>


On Sat, Jan 4, 2014 at 2:47 AM, Alan Coopersmith <
alan.coopersmith at oracle.com> wrote:

> Left behind when 15e5eaf62897 removed support for building without XCB.
>
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
>  src/XlibInt.c |   33 ---------------------------------
>  1 file changed, 33 deletions(-)
>
> diff --git a/src/XlibInt.c b/src/XlibInt.c
> index 7521f12..a5350e9 100644
> --- a/src/XlibInt.c
> +++ b/src/XlibInt.c
> @@ -74,27 +74,6 @@ xthread_t (*_Xthread_self_fn)(void) = NULL;
>
>  #endif /* XTHREADS */
>
> -/* check for both EAGAIN and EWOULDBLOCK, because some supposedly POSIX
> - * systems are broken and return EWOULDBLOCK when they should return
> EAGAIN
> - */
> -#ifdef WIN32
> -#define ETEST() (WSAGetLastError() == WSAEWOULDBLOCK)
> -#else
> -#ifdef __CYGWIN__ /* Cygwin uses ENOBUFS to signal socket is full */
> -#define ETEST() (errno == EAGAIN || errno == EWOULDBLOCK || errno ==
> ENOBUFS)
> -#else
> -#if defined(EAGAIN) && defined(EWOULDBLOCK)
> -#define ETEST() (errno == EAGAIN || errno == EWOULDBLOCK)
> -#else
> -#ifdef EAGAIN
> -#define ETEST() (errno == EAGAIN)
> -#else
> -#define ETEST() (errno == EWOULDBLOCK)
> -#endif /* EAGAIN */
> -#endif /* EAGAIN && EWOULDBLOCK */
> -#endif /* __CYGWIN__ */
> -#endif /* WIN32 */
> -
>  #ifdef WIN32
>  #define ECHECK(err) (WSAGetLastError() == err)
>  #define ESET(val) WSASetLastError(val)
> @@ -108,18 +87,6 @@ xthread_t (*_Xthread_self_fn)(void) = NULL;
>  #endif
>  #endif
>
> -#if defined(LOCALCONN) || defined(LACHMAN)
> -#ifdef EMSGSIZE
> -#define ESZTEST() (ECHECK(EMSGSIZE) || ECHECK(ERANGE))
> -#else
> -#define ESZTEST() ECHECK(ERANGE)
> -#endif
> -#else
> -#ifdef EMSGSIZE
> -#define ESZTEST() ECHECK(EMSGSIZE)
> -#endif
> -#endif
> -
>  #ifdef __UNIXOS2__
>  #include <limits.h>
>  #define MAX_PATH _POSIX_PATH_MAX
> --
> 1.7.9.2
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>



-- 
  Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140104/485af65f/attachment-0001.html>


More information about the xorg-devel mailing list