[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

libxext: Changes to 'upstream-unstable'



 COPYING         |  168 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 Makefile.am     |    7 ++
 configure.ac    |   17 ++++-
 man/XShape.man  |   18 +++---
 man/XShm.man    |   26 ++++----
 man/Xmbuf.man   |   54 +++++++++---------
 src/Makefile.am |   16 +++++
 src/XAppgroup.c |    2 
 src/XEVI.c      |    5 +
 src/XMultibuf.c |    2 
 src/XSecurity.c |    2 
 src/XShape.c    |    4 -
 src/XTestExt1.c |    8 +-
 src/Xcup.c      |    2 
 src/extutil.c   |    8 +-
 src/globals.c   |    2 
 16 files changed, 272 insertions(+), 69 deletions(-)

New commits:
commit 9884a41dd0282ca3dd19db5bf3a11554ee7eee57
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Thu Feb 28 19:02:58 2008 -0800

    Version bump: 1.0.4

diff --git a/configure.ac b/configure.ac
index ade0502..efb0e7d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,7 +3,7 @@
 
 AC_PREREQ(2.57)
 AC_INIT([libXext],
-        1.0.3,
+        1.0.4,
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
         libXext)
 

commit f6c7c70f312c8eb0883437c003ba78bb4abbabc3
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Fri Dec 7 15:41:42 2007 -0800

    Coverity #467: security_error_list has fewer than XSecurityNumberErrors entries
    
    Sometimes it's annoying that C silently merges adjacent strings without
    warning you that you forgot a comma in your list of strings.

diff --git a/src/XSecurity.c b/src/XSecurity.c
index 161ade3..9a09daa 100644
--- a/src/XSecurity.c
+++ b/src/XSecurity.c
@@ -78,7 +78,7 @@ static XExtensionHooks Security_extension_hooks = {
 };
 
 static char    *security_error_list[] = {
-    "BadAuthorization"
+    "BadAuthorization",
     "BadAuthorizationProtocol"
 };
 

commit 37fe15843fd892c529e554f24a937ed712ea129c
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Fri Dec 7 15:39:13 2007 -0800

    Allow overriding the SOREV in configure.ac

diff --git a/configure.ac b/configure.ac
index 6cd40f0..ade0502 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,11 +21,13 @@ XORG_MACROS_VERSION(1.1)
 # Determine .so library version per platform 
 # based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
 AC_CANONICAL_HOST
-case $host_os in
+if test "x$XEXT_SOREV" = "x" ; then
+    case $host_os in
 	openbsd*)	XEXT_SOREV=8:0 		;;
 	solaris*)       XEXT_SOREV=0 		;;
 	*)              XEXT_SOREV=6:4:0 	;;
-esac
+    esac
+fi
 AC_SUBST(XEXT_SOREV)
 
 # Checks for programs.

commit 285deb33da14fb5476b18cb1071b41070cf3ae99
Author: James Cloos <cloos@jhcloos.com>
Date:   Thu Dec 6 15:51:16 2007 -0500

    Add missing PHONY line for automatic ChangeLog generation

diff --git a/Makefile.am b/Makefile.am
index a7443ff..611f6b3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,6 +6,8 @@ pkgconfig_DATA = xext.pc
 EXTRA_DIST=xext.pc.in ChangeLog autogen.sh
 MAINTAINERCLEANFILES=ChangeLog
 
+.PHONY: ChangeLog
+
 ChangeLog:
 	(GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
 

commit 249daf0d8a044a97d053c957ab45445c159d31e4
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Wed Nov 28 17:29:28 2007 -0800

    XeviGetVisualInfo: check for null pointer before writing to it, not after

diff --git a/src/XEVI.c b/src/XEVI.c
index dd796a4..c7cc7f7 100644
--- a/src/XEVI.c
+++ b/src/XEVI.c
@@ -117,10 +117,13 @@ Status XeviGetVisualInfo(
     register int n_data, visualIndex, vinfoIndex;
     Bool isValid;
     XeviCheckExtension (dpy, info, 0);
+    if (!n_info_return || !evi_return) {
+	return BadValue;
+    }
     *n_info_return = 0;
     *evi_return = NULL;
     vinfo = XGetVisualInfo(dpy, 0, NULL, &sz_info);
-    if (!vinfo || !evi_return) {
+    if (!vinfo) {
 	return BadValue;
     }
     if (!n_visual || !visual) {		/* copy the all visual */

commit a7d211f6e3ded98c79e7be73253a51958d3e98db
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Tue Nov 27 18:12:29 2007 -0800

    include of config.h should not be inside #ifdef WIN32

diff --git a/src/XAppgroup.c b/src/XAppgroup.c
index 2ca3e4d..48fcc01 100644
--- a/src/XAppgroup.c
+++ b/src/XAppgroup.c
@@ -26,10 +26,10 @@ in this Software without prior written authorization from The Open Group.
 */
 /* $Xorg: XAppgroup.c,v 1.5 2001/02/09 02:03:49 xorgcvs Exp $ */
 
-#ifdef WIN32
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
+#ifdef WIN32
 #include <X11/Xwindows.h>
 #endif
 
diff --git a/src/Xcup.c b/src/Xcup.c
index 6315d32..a775966 100644
--- a/src/Xcup.c
+++ b/src/Xcup.c
@@ -26,10 +26,10 @@ in this Software without prior written authorization from The Open Group.
 */
 /* $Xorg: Xcup.c,v 1.5 2001/02/09 02:03:49 xorgcvs Exp $ */
 
-#ifdef WIN32
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
+#ifdef WIN32
 #include <X11/Xwindows.h>
 #endif
 

commit 1614ea1074d62f32f51032141b0c55250380ca17
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Tue Nov 27 17:54:34 2007 -0800

    Add hooks for checking code with lint/sparse/etc.

diff --git a/Makefile.am b/Makefile.am
index 0ee0095..a7443ff 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,3 +11,8 @@ ChangeLog:
 
 dist-hook: ChangeLog
 
+if LINT
+# Check source code with tools like lint & sparse
+lint:
+	(cd src && $(MAKE) $(MFLAGS) lint)
+endif LINT
diff --git a/configure.ac b/configure.ac
index bb595e6..6cd40f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,6 +14,10 @@ AM_MAINTAINER_MODE
 
 AM_CONFIG_HEADER([config.h])
 
+# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro
+m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.1)
+
 # Determine .so library version per platform 
 # based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
 AC_CANONICAL_HOST
@@ -45,6 +49,11 @@ XORG_RELEASE_VERSION
 XORG_PROG_RAWCPP
 XORG_MANPAGE_SECTIONS
 
+dnl Allow checking code with lint, sparse, etc.
+XORG_WITH_LINT
+XORG_LINT_LIBRARY([Xext])
+LINT_FLAGS="${LINT_FLAGS} ${XEXT_CFLAGS}"
+
 AC_OUTPUT([Makefile
            man/Makefile
 	   src/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index fbe8b24..bfd3740 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -23,3 +23,19 @@ libXext_la_SOURCES = \
 	extutil.c \
 	globals.c
 
+if LINT
+ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+                $(AM_CPPFLAGS) $(CPPFLAGS)
+
+lint:
+	$(LINT) $(ALL_LINT_FLAGS) $(libXext_la_SOURCES) $(XEXT_LIBS)
+endif LINT
+
+if MAKE_LINT_LIB
+lintlibdir = $(libdir)
+
+lintlib_DATA = $(LINTLIB)
+
+$(LINTLIB): $(libXext_la_SOURCES)
+	$(LINT) -y -oXext -x $(ALL_LINT_FLAGS) $(libXext_la_SOURCES) 
+endif MAKE_LINT_LIB

commit 8a2bb8793eed1c7f690be5c00772b2a64b9632fd
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Tue Nov 27 16:54:21 2007 -0800

    Fix sparse warnings (type mismatches in function pointers, int as pointer)

diff --git a/src/XShape.c b/src/XShape.c
index 29a7f83..6bae29a 100644
--- a/src/XShape.c
+++ b/src/XShape.c
@@ -461,7 +461,7 @@ XRectangle *XShapeGetRectangles (
     }
     *count = rep.nrects;
     *ordering = rep.ordering;
-    rects = 0;
+    rects = NULL;
     if (*count) {
 	xrects = (xRectangle *) Xmalloc (*count * sizeof (xRectangle));
 	rects = (XRectangle *) Xmalloc (*count * sizeof (XRectangle));
@@ -471,7 +471,7 @@ XRectangle *XShapeGetRectangles (
 	    if (rects)
 		Xfree (rects);
 	    _XEatData (dpy, *count * sizeof (xRectangle));
-	    rects = 0;
+	    rects = NULL;
 	    *count = 0;
 	} else {
 	    _XRead (dpy, (char *) xrects, *count * sizeof (xRectangle));
diff --git a/src/XTestExt1.c b/src/XTestExt1.c
index 28a733e..e7dce92 100644
--- a/src/XTestExt1.c
+++ b/src/XTestExt1.c
@@ -1200,7 +1200,7 @@ int	ack_flag)
 	/*
 	 * points to XTestIdentifyMyEvent
 	 */
-	Bool	(*func_ptr)();
+	Bool	(*func_ptr)(Display *, XEvent *, XPointer);
 
 	/*
 	 * write the input actions to the server
diff --git a/src/extutil.c b/src/extutil.c
index d96b17f..730649a 100644
--- a/src/extutil.c
+++ b/src/extutil.c
@@ -248,11 +248,11 @@ static int _default_exterror (Display *dpy, char *ext_name, char *reason)
  * requested extension is referenced.  This should eventually move into Xlib.
  */
 
-extern int (*_XExtensionErrorFunction)();
+extern int (*_XExtensionErrorFunction)(Display*, char *, char * );
 
-int (*XSetExtensionErrorHandler(int (*handler)(Display*, char *, char * )))()
+int (*XSetExtensionErrorHandler(int (*handler)(Display*, char *, char * )))(Display*, char *, char * )
 {
-    int (*oldhandler)() = _XExtensionErrorFunction;
+    int (*oldhandler)(Display*, char *, char * ) = _XExtensionErrorFunction;
 
     _XExtensionErrorFunction = (handler ? handler :
 				_default_exterror);
@@ -265,7 +265,7 @@ int (*XSetExtensionErrorHandler(int (*handler)(Display*, char *, char * )))()
  */
 int XMissingExtension (Display *dpy, _Xconst char *ext_name)
 {
-    int (*func)() = (_XExtensionErrorFunction ?
+    int (*func)(Display*, char *, char *) = (_XExtensionErrorFunction ?
 		     _XExtensionErrorFunction : _default_exterror);
 
     if (!ext_name) ext_name = X_EXTENSION_UNKNOWN;
diff --git a/src/globals.c b/src/globals.c
index 0cd5d26..120909a 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -75,7 +75,7 @@ from The Open Group.
 /*
  * Error handlers; used to be in XlibInt.c
  */
-typedef int (*funcptr)();
+typedef int (*funcptr)(Display*, char *, char *);
 ZEROINIT (funcptr, _XExtensionErrorFunction, NULL);
 
 /*

commit 781dbe7d723e9fe5a0e028dcb5a0fafeb59629e3
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Tue Nov 27 16:11:49 2007 -0800

    Add missing copyright/license notices to COPYING

diff --git a/COPYING b/COPYING
index ca17ed6..443e63a 100644
--- a/COPYING
+++ b/COPYING
@@ -1,4 +1,4 @@
-Copyright 1987, 1988, 1998  The Open Group
+Copyright 1986, 1987, 1988, 1989, 1994, 1998  The Open Group
 
 Permission to use, copy, modify, distribute, and sell this software and its
 documentation for any purpose is hereby granted without fee, provided that
@@ -19,3 +19,169 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 Except as contained in this notice, the name of The Open Group 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 Open Group.
+
+Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts.
+
+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 without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software.
+
+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.  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 
+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 
+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 
+Equipment Corporation.
+
+Copyright (c) 1997 by Silicon Graphics Computer Systems, Inc.
+Permission to use, copy, modify, and distribute this
+software and its documentation for any purpose and without
+fee is hereby granted, provided that the above copyright
+notice appear in all copies and that both that copyright
+notice and this permission notice appear in supporting
+documentation, and that the name of Silicon Graphics not be
+used in advertising or publicity pertaining to distribution
+of the software without specific prior written permission.
+Silicon Graphics makes no representation about the suitability
+of this software for any purpose. It is provided "as is"
+without any express or implied warranty.
+SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
+GRAPHICS 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 CONNECTION  WITH
+THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+Copyright 1992 Network Computing Devices
+
+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
+copyright notice and this permission notice appear in supporting
+documentation, and that the name of NCD. not be used in advertising or
+publicity pertaining to distribution of the software without specific,
+written prior permission.  NCD. makes no representations about the
+suitability of this software for any purpose.  It is provided "as is"
+without express or implied warranty.
+
+NCD. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
+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 
+CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+Copyright 1991,1993 by Digital Equipment Corporation, Maynard, Massachusetts,
+and Olivetti Research Limited, Cambridge, England.
+
+                        All Rights Reserved
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation, and that the names of Digital or Olivetti
+not be used in advertising or publicity pertaining to distribution of the
+software without specific, written prior permission.
+
+DIGITAL AND OLIVETTI DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS, IN NO EVENT SHALL THEY 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 CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+Copyright 1986, 1987, 1988 by Hewlett-Packard Corporation
+
+Permission to use, copy, modify, and distribute this
+software and its documentation for any purpose and without
+fee is hereby granted, provided that the above copyright
+notice appear in all copies and that both that copyright
+notice and this permission notice appear in supporting
+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 
+"as is" without express or implied warranty.
+
+This software is not subject to any license of the American
+Telephone and Telegraph Company or of the Regents of the
+University of California.
+
+Copyright (c) 1994, 1995  Hewlett-Packard Company
+
+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
+without limitation the rights to use, copy, modify, merge, publish,
+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.
+IN NO EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM,
+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.
+
+Copyright Digital Equipment Corporation, 1996
+
+Permission to use, copy, modify, distribute, and sell this
+documentation for any purpose is hereby granted without fee,
+provided that the above copyright notice and this permission
+notice appear in all copies.  Digital Equipment Corporation
+makes no representations about the suitability for any purpose
+of the information in this document.  This documentation is
+provided ``as is'' without express or implied warranty.
+
+Copyright 1999, 2005, 2006 Sun Microsystems, 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 without limitation
+the rights to use, copy, modify, merge, publish, 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.
+IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+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 names of the copyright holders
+shall not be used in advertising or otherwise to promote the sale, use
+or other dealings in this Software without prior written authorization
+from said copyright holders.

commit 39cb1caa381666ac79307d3d312992d4e22980d1
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Tue Nov 27 16:03:14 2007 -0800

    Fix incorrect comment delimiters in libXext man pages
    
    Similar to X.Org Bug #4312 <http://bugs.freedesktop.org/show_bug.cgi?id=4312>
    Protect /* sequences from cpp pre-processor removal without transforming
    to Unicode mathematical asterisk character, and fix incorrectly encoded
    /* sequences in XShm.man.

diff --git a/man/XShape.man b/man/XShape.man
index 408e24a..0f16ce9 100644
--- a/man/XShape.man
+++ b/man/XShape.man
@@ -131,16 +131,16 @@ XRectangle *XShapeGetRectangles (
 .LP
 .ta 3i
 typedef struct {
-    int type;	/\(** of event */
-    unsigned long serial;	/\(** # of last request processed by server */
-    Bool send_event;	/\(** true if this came from a SendEvent request */
-    Display *display;	/\(** Display the event was read from */
-    Window window;	/\(** window of event */
-    int kind;	/\(** ShapeBounding or ShapeClip */
-    int x, y;	/\(** extents of new region */
+    int type;	/\&* of event */
+    unsigned long serial;	/\&* # of last request processed by server */
+    Bool send_event;	/\&* true if this came from a SendEvent request */
+    Display *display;	/\&* Display the event was read from */
+    Window window;	/\&* window of event */
+    int kind;	/\&* ShapeBounding or ShapeClip */
+    int x, y;	/\&* extents of new region */
     unsigned width, height;
-    Time time;	/\(** server timestamp when region changed */
-    Bool shaped;	/\(** true if the region exists */
+    Time time;	/\&* server timestamp when region changed */
+    Bool shaped;	/\&* true if the region exists */
 } XShapeEvent;
 .fi
 .SH DESCRIPTION
diff --git a/man/XShm.man b/man/XShm.man
index 2961e44..2e37997 100644
--- a/man/XShm.man
+++ b/man/XShm.man
@@ -128,24 +128,24 @@ Status XShmGetEventBase(
 .ta 3i
 \fIEvents:\fP
 typedef struct {
-    int type;               /\\(* of event */
-    unsigned long serial;   /\\(* # of last request processed by server*/
-    Bool send_event;        /\\(* true if this came from a SendEvent request*/
-    Display *display;       /\\(* Display the event was read from */
-    Drawable drawable;      /\\(* drawable of request */
-    int major_code;         /\\(* ShmReqCode */
-    int minor_code;         /\\(* X_ShmPutImage */
-    ShmSeg shmseg;          /\\(* the ShmSeg used in the request*/
-    unsigned long offset;   /\\(* the offset into ShmSeg used in the request*/
+    int type;               /\&* of event */
+    unsigned long serial;   /\&* # of last request processed by server*/
+    Bool send_event;        /\&* true if this came from a SendEvent request*/
+    Display *display;       /\&* Display the event was read from */
+    Drawable drawable;      /\&* drawable of request */
+    int major_code;         /\&* ShmReqCode */
+    int minor_code;         /\&* X_ShmPutImage */
+    ShmSeg shmseg;          /\&* the ShmSeg used in the request*/
+    unsigned long offset;   /\&* the offset into ShmSeg used in the request*/
 } XShmCompletionEvent;
 .LP
 \fIa structure of type XShmSegmentInfo :\fP
 
 typedef struct {
-    ShmSeg shmseg;      /\\(* resource id */
-    int shmid;          /\\(* kernel id */
-    char *shmaddr;      /\\(* address in client */
-    Bool readOnly;      /\\(* how the server should attach it */
+    ShmSeg shmseg;      /\&* resource id */
+    int shmid;          /\&* kernel id */
+    char *shmaddr;      /\&* address in client */
+    Bool readOnly;      /\&* how the server should attach it */
 } XShmSegmentInfo;
 
 .SH DESCRIPTION
diff --git a/man/Xmbuf.man b/man/Xmbuf.man
index ec72027..adca2a1 100644
--- a/man/Xmbuf.man
+++ b/man/Xmbuf.man
@@ -118,7 +118,7 @@ Window XmbufCreateStereoWindow(
     unsigned int height,
     unsigned int border_width,
     int depth,
-    unsigned int class,                 /\(** InputOutput, InputOnly*/
+    unsigned int class,                 /\&* InputOutput, InputOnly*/
     Visual *visual,
     unsigned long valuemask,
     XSetWindowAttributes *attributes,
@@ -130,55 +130,55 @@ Window XmbufCreateStereoWindow(
 .ta 3i
 \fIEvents:\fP
 typedef struct {
-    int type;	/\(** of event */
-    unsigned long serial;	/\(** # of last request processed by server */
-    int send_event;	/\(** true if this came from a SendEvent request */
-    Display *display;	/\(** Display the event was read from */
-    Multibuffer buffer;	/\(** buffer of event */
-    int state;	/\(** see Clobbered constants above */
+    int type;	/\&* of event */
+    unsigned long serial;	/\&* # of last request processed by server */
+    int send_event;	/\&* true if this came from a SendEvent request */
+    Display *display;	/\&* Display the event was read from */
+    Multibuffer buffer;	/\&* buffer of event */
+    int state;	/\&* see Clobbered constants above */
 } XmbufClobberNotifyEvent;
 .LP
 typedef struct {
-    int type;	/\(** of event */
-    unsigned long serial;	/\(** # of last request processed by server */
-    int send_event;	/\(** true if this came from a SendEvent request */
-    Display *display;	/\(** Display the event was read from */
-    Multibuffer buffer;	/\(** buffer of event */
+    int type;	/\&* of event */
+    unsigned long serial;	/\&* # of last request processed by server */
+    int send_event;	/\&* true if this came from a SendEvent request */
+    Display *display;	/\&* Display the event was read from */
+    Multibuffer buffer;	/\&* buffer of event */
 } XmbufUpdateNotifyEvent;
 .LP
 \fIPer-window attributes that can be got:\fP
 typedef struct {
-    int displayed_index;	/\(** which buffer is being displayed */
-    int update_action;	/\(** Undefined, Background, Untouched, Copied */
-    int update_hint;	/\(** Frequent, Intermittent, Static */
-    int window_mode;	/\(** Mono, Stereo */
-    int nbuffers;	/\(** Number of buffers */
-    Multibuffer *buffers;	/\(** Buffers */
+    int displayed_index;	/\&* which buffer is being displayed */
+    int update_action;	/\&* Undefined, Background, Untouched, Copied */
+    int update_hint;	/\&* Frequent, Intermittent, Static */
+    int window_mode;	/\&* Mono, Stereo */
+    int nbuffers;	/\&* Number of buffers */
+    Multibuffer *buffers;	/\&* Buffers */
 } XmbufWindowAttributes;
 .LP
 \fIPer-window attributes that can be set:\fP
 typedef struct {
-    int update_hint;	/\(** Frequent, Intermittent, Static */
+    int update_hint;	/\&* Frequent, Intermittent, Static */
 } XmbufSetWindowAttributes;
 .LP
 \fIPer-buffer attributes that can be got:\fP
 typedef struct {
-    Window window;	/\(** which window this belongs to */
-    unsigned long event_mask;	/\(** events that have been selected */
-    int buffer_index;	/\(** which buffer is this */
-    int side;	/\(** Mono, Left, Right */
+    Window window;	/\&* which window this belongs to */
+    unsigned long event_mask;	/\&* events that have been selected */
+    int buffer_index;	/\&* which buffer is this */
+    int side;	/\&* Mono, Left, Right */
 } XmbufBufferAttributes;
 .LP
 \fIPer-buffer attributes that can be set:\fP
 typedef struct {
-    unsigned long event_mask;	/\(** events that have been selected */
+    unsigned long event_mask;	/\&* events that have been selected */
 } XmbufSetBufferAttributes;
 .LP
 \fIPer-screen buffer info (there will be lists of them):\fP
 typedef struct {
-    VisualID visualid;	/\(** visual usable at this depth */
-    int max_buffers;	/\(** most buffers for this visual */
-    int depth;	/\(** depth of buffers to be created */
+    VisualID visualid;	/\&* visual usable at this depth */
+    int max_buffers;	/\&* most buffers for this visual */
+    int depth;	/\&* depth of buffers to be created */
 } XmbufBufferInfo;
 .fi
 .SH DESCRIPTION

commit cca90a25678bf3c3269af1c0ac5493cfd4809727
Author: Alan Coopersmith <alan.coopersmith@sun.com>
Date:   Tue Nov 27 15:55:28 2007 -0800

    Fix typos in source comments

diff --git a/src/XMultibuf.c b/src/XMultibuf.c
index 3e0049e..106f2c4 100644
--- a/src/XMultibuf.c
+++ b/src/XMultibuf.c
@@ -354,7 +354,7 @@ void XmbufDestroyBuffers (Display *dpy, Window window)
  * 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 Matc
+ * 	No two buffers may be associated with the same window or else a Match
  * 	error is generated.
  */
 void XmbufDisplayBuffers (
diff --git a/src/XTestExt1.c b/src/XTestExt1.c
index ee4a0bd..28a733e 100644
--- a/src/XTestExt1.c
+++ b/src/XTestExt1.c
@@ -76,14 +76,14 @@ University of California.
  * Holds the request type code for this extension.  The request type code
  * for this extension may vary depending on how many extensions are installed
  * already, so the initial value given below will be added to the base request
- * code that is aquired when this extension is installed.
+ * code that is acquired when this extension is installed.
  */
 static int		XTestReqCode = 0;
 /*
  * Holds the two event type codes for this extension.  The event type codes
  * for this extension may vary depending on how many extensions are installed
  * already, so the initial values given below will be added to the base event
- * code that is aquired when this extension is installed.
+ * code that is acquired when this extension is installed.
  *
  * These two variables must be available to programs that use this extension.
  */
@@ -1262,7 +1262,7 @@ static	Bool
 XTestIdentifyMyEvent(
 Display	*display,
 /*
- * Holds the event that this routiine is supposed to look at.
+ * Holds the event that this routine is supposed to look at.
  */
 XEvent	*event_ptr,
 /*


Reply to: