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

libxxf86dga: Changes to 'upstream-unstable'



 configure.ac                      |   32 ++++++++++----------
 include/X11/extensions/Xxf86dga.h |    2 -
 include/X11/extensions/xf86dga1.h |    2 -
 man/XDGA.man                      |   14 ++++----
 src/Makefile.am                   |    2 -
 src/XF86DGA.c                     |   36 +++++++++++-----------
 src/XF86DGA2.c                    |   60 +++++++++++++++++++-------------------
 7 files changed, 75 insertions(+), 73 deletions(-)

New commits:
commit 3dad5d7c34c5787f0466b9ff50d7c26cd18e37bd
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Wed Mar 7 21:34:06 2012 -0800

    libXxf86dga 1.1.3
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

diff --git a/configure.ac b/configure.ac
index 7f9b97c..54585c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
 
 # Initialize Autoconf
 AC_PREREQ([2.60])
-AC_INIT([libXxf86dga], [1.1.2],
+AC_INIT([libXxf86dga], [1.1.3],
         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXxf86dga])
 AC_CONFIG_SRCDIR([Makefile.am])
 AC_CONFIG_HEADERS(src/config.h)

commit 870a35db2ad6eab47d1026a56e52c3f53a9877eb
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Thu Nov 10 21:50:52 2011 -0800

    Fix gcc -Wwrite-strings warnings
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

diff --git a/src/XF86DGA.c b/src/XF86DGA.c
index 71484b7..4544507 100644
--- a/src/XF86DGA.c
+++ b/src/XF86DGA.c
@@ -65,7 +65,7 @@ Copyright (c) 1995,1996  The XFree86 Project, Inc
 #include <X11/extensions/extutil.h>
 
 extern XExtDisplayInfo* xdga_find_display(Display*);
-extern char *xdga_extension_name;
+extern const char *xdga_extension_name;
 
 #define XF86DGACheckExtension(dpy,i,val) \
   XextCheckExtension (dpy, i, xdga_extension_name, val)
diff --git a/src/XF86DGA2.c b/src/XF86DGA2.c
index fbc84cb..e81b486 100644
--- a/src/XF86DGA2.c
+++ b/src/XF86DGA2.c
@@ -25,7 +25,7 @@ Copyright (c) 1995,1996  The XFree86 Project, Inc
 /* If you change this, change the Bases[] array below as well */
 #define MAX_HEADS 16
 
-char *xdga_extension_name = XF86DGANAME;
+const char *xdga_extension_name = XF86DGANAME;
 
 static XExtensionInfo _xdga_info_data;
 static XExtensionInfo *xdga_info = &_xdga_info_data;
@@ -760,7 +760,7 @@ typedef struct _DGAMapRec{
 } DGAMapRec, *DGAMapPtr;
 
 static Bool
-DGAMapPhysical(int, char*, unsigned char*, CARD32, CARD32, CARD32, DGAMapPtr);
+DGAMapPhysical(int, const char*, unsigned char*, CARD32, CARD32, CARD32, DGAMapPtr);
 static void DGAUnmapPhysical(DGAMapPtr);
 
 static DGAMapPtr _Maps = NULL;
@@ -852,7 +852,7 @@ XDGAUnmapFramebuffer(int screen)
 static Bool
 DGAMapPhysical(
    int screen,
-   char *name,			/* optional device name */
+   const char *name,		/* optional device name */
    unsigned char* base,		/* physical memory */
    CARD32 size,			/* size */
    CARD32 offset,		/* optional offset */

commit e9936bbcfe7ae6430ec91fd5fca696c09f2b904c
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Fri Sep 16 22:57:14 2011 -0700

    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>

diff --git a/include/X11/extensions/Xxf86dga.h b/include/X11/extensions/Xxf86dga.h
index 3b14ff3..d78a032 100644
--- a/include/X11/extensions/Xxf86dga.h
+++ b/include/X11/extensions/Xxf86dga.h
@@ -150,7 +150,7 @@ int XDGAGetViewportStatus(
     Display	*dpy,
     int		screen
 );
-   
+
 void XDGASync(
     Display	*dpy,
     int		screen
diff --git a/include/X11/extensions/xf86dga1.h b/include/X11/extensions/xf86dga1.h
index 0fc97aa..8110438 100644
--- a/include/X11/extensions/xf86dga1.h
+++ b/include/X11/extensions/xf86dga1.h
@@ -37,7 +37,7 @@ Status XF86DGAGetVideoLL(
     unsigned int *		/* base addr */,
     int *			/* width */,
     int *			/* bank_size */,
-    int *			/* ram_size */ 
+    int *			/* ram_size */
 );
 
 Status XF86DGAGetVideo(
diff --git a/man/XDGA.man b/man/XDGA.man
index 2121787..4510bcd 100644
--- a/man/XDGA.man
+++ b/man/XDGA.man
@@ -1,4 +1,4 @@
-.\" 
+.\"
 .TH XDGA 3 __vendorversion__
 .SH NAME
 XDGA \- Client library for the XFree86-DGA extension.
@@ -230,7 +230,7 @@ Each
 corresponds to a different framebuffer layout.
 .PP
 .BR XDGAQueryModes ()
-returns a pointer to an array of 
+returns a pointer to an array of
 .IR XDGAMode s
 which are valid for the given screen.
 .I num
@@ -382,7 +382,7 @@ function.
 .I maxViewportX
 .TP 8
 .I maxViewportY
-The maximum x and y positions possible with the 
+The maximum x and y positions possible with the
 .BR XDGASetViewport ()
 function.
 .TP 8
diff --git a/src/Makefile.am b/src/Makefile.am
index edfb90a..fbde550 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,7 +6,7 @@ AM_CFLAGS = -I $(top_srcdir)/include \
             $(XXF86DGA_CFLAGS) \
             $(MALLOC_ZERO_CFLAGS) \
             $(CWARNFLAGS)
-           
+
 libXxf86dga_la_LIBADD = $(XXF86DGA_LIBS)
 libXxf86dga_la_LDFLAGS = -version-number 1:0:0
 
diff --git a/src/XF86DGA.c b/src/XF86DGA.c
index 4effcaf..71484b7 100644
--- a/src/XF86DGA.c
+++ b/src/XF86DGA.c
@@ -86,7 +86,7 @@ Bool XF86DGAQueryExtension (
 
 Bool XF86DGAQueryVersion(
     Display* dpy,
-    int* majorVersion, 
+    int* majorVersion,
     int* minorVersion
 ){
     return XDGAQueryVersion(dpy, majorVersion, minorVersion);
@@ -96,8 +96,8 @@ Bool XF86DGAGetVideoLL(
     Display* dpy,
     int screen,
     unsigned int *offset,
-    int *width, 
-    int *bank_size, 
+    int *width,
+    int *bank_size,
     int *ram_size
 ){
     XExtDisplayInfo *info = xdga_find_display (dpy);
@@ -121,13 +121,13 @@ Bool XF86DGAGetVideoLL(
     *width = rep.width;
     *bank_size = rep.bank_size;
     *ram_size = rep.ram_size;
-	
+
     UnlockDisplay(dpy);
     SyncHandle();
     return True;
 }
 
-    
+
 Bool XF86DGADirectVideoLL(
     Display* dpy,
     int screen,
@@ -153,7 +153,7 @@ Bool XF86DGADirectVideoLL(
 Bool XF86DGAGetViewPortSize(
     Display* dpy,
     int screen,
-    int *width, 
+    int *width,
     int *height
 ){
     XExtDisplayInfo *info = xdga_find_display (dpy);
@@ -175,17 +175,17 @@ Bool XF86DGAGetViewPortSize(
 
     *width = rep.width;
     *height = rep.height;
-	
+
     UnlockDisplay(dpy);
     SyncHandle();
     return True;
 }
-    
-    
+
+
 Bool XF86DGASetViewPort(
     Display* dpy,
     int screen,
-    int x, 
+    int x,
     int y
 ){
     XExtDisplayInfo *info = xdga_find_display (dpy);
@@ -206,7 +206,7 @@ Bool XF86DGASetViewPort(
     return True;
 }
 
-    
+
 Bool XF86DGAGetVidPage(
     Display* dpy,
     int screen,
@@ -235,7 +235,7 @@ Bool XF86DGAGetVidPage(
     return True;
 }
 
-    
+
 Bool XF86DGASetVidPage(
     Display* dpy,
     int screen,
@@ -342,7 +342,7 @@ Bool XF86DGAViewPortChanged(
 #include <stdlib.h>
 #include <stdio.h>
 #include <fcntl.h>
-#if defined(ISC) 
+#if defined(ISC)
 # define HAS_SVR3_MMAP
 # include <sys/types.h>
 # include <errno.h>
@@ -548,7 +548,7 @@ MapPhysAddress(unsigned long address, unsigned long size)
    if (rc != 0)
 	return NULL;
 #elif defined(Lynx) && defined(NO_MMAP)
-    vaddr = (void *)smem_create("XF86DGA", (char *)offset, 
+    vaddr = (void *)smem_create("XF86DGA", (char *)offset,
 				size + delta, SM_READ|SM_WRITE);
 #else
 #ifndef MAP_FILE
@@ -670,8 +670,8 @@ XF86DGAGetVideo(
     Display *dis,
     int screen,
     char **addr,
-    int *width, 
-    int *bank, 
+    int *width,
+    int *bank,
     int *ram
 ){
     unsigned int offset;
@@ -710,7 +710,7 @@ XF86DGAGetVideo(
 	signal(SIGBUS, XF86cleanup);
 #endif
 	signal(SIGHUP, XF86cleanup);
-	signal(SIGFPE, XF86cleanup);  
+	signal(SIGFPE, XF86cleanup);
     }
 
     return 1;
diff --git a/src/XF86DGA2.c b/src/XF86DGA2.c
index d241ff7..fbc84cb 100644
--- a/src/XF86DGA2.c
+++ b/src/XF86DGA2.c
@@ -30,7 +30,7 @@ char *xdga_extension_name = XF86DGANAME;
 static XExtensionInfo _xdga_info_data;
 static XExtensionInfo *xdga_info = &_xdga_info_data;
 
- 
+
 Bool XDGAMapFramebuffer(int, char *, unsigned char*, CARD32, CARD32, CARD32);
 void XDGAUnmapFramebuffer(int);
 unsigned char* XDGAGetMappedMemory(int);
@@ -66,9 +66,9 @@ static XEXT_GENERATE_CLOSE_DISPLAY (xdga_close_display, xdga_info)
 
 
 XExtDisplayInfo* xdga_find_display(Display*);
-XEXT_GENERATE_FIND_DISPLAY (xdga_find_display, xdga_info, 
-				   "XFree86-DGA", 
-				   &xdga_extension_hooks, 
+XEXT_GENERATE_FIND_DISPLAY (xdga_find_display, xdga_info,
+				   "XFree86-DGA",
+				   &xdga_extension_hooks,
 				   0, NULL)
 
 
@@ -154,7 +154,7 @@ Bool XDGAQueryExtension (
 
 Bool XDGAQueryVersion(
     Display *dpy,
-    int *majorVersion, 
+    int *majorVersion,
     int *minorVersion
 ){
     XExtDisplayInfo *info = xdga_find_display (dpy);
@@ -182,7 +182,7 @@ Bool XDGAQueryVersion(
 
 	for (i = 0, j = info->codes->first_event;
 	     i < XF86DGANumberEvents;
-	     i++, j++) 
+	     i++, j++)
 	{
 	    XESetWireToEvent (dpy, j, xdga_wire_to_event);
 	    XESetEventToWire (dpy, j, xdga_event_to_wire);
@@ -240,11 +240,11 @@ Bool XDGAOpenFramebuffer(
     }
 
     ret = XDGAMapFramebuffer(screen, deviceName,
-				(unsigned char*)(long)rep.mem1, 
+				(unsigned char*)(long)rep.mem1,
 				rep.size, rep.offset, rep.extra);
 
     if(deviceName)
-	Xfree(deviceName);	
+	Xfree(deviceName);
 
     UnlockDisplay(dpy);
     SyncHandle();
@@ -305,12 +305,12 @@ XDGAMode* XDGAQueryModes(
 	   offset = (char*)(&modes[rep.number]); /* start of text */
 
 
-	   if(modes) {	
+	   if(modes) {
 	      for(i = 0; i < rep.number; i++) {
 		_XRead(dpy, (char*)(&info), sz_xXDGAModeInfo);
 
 		modes[i].num = info.num;
-		modes[i].verticalRefresh = 
+		modes[i].verticalRefresh =
 			(float)info.vsync_num / (float)info.vsync_den;
 		modes[i].flags = info.flags;
 		modes[i].imageWidth = info.image_width;
@@ -333,7 +333,7 @@ XDGAMode* XDGAQueryModes(
 		modes[i].maxViewportY = info.viewport_ymax;
 		modes[i].viewportFlags = info.viewport_flags;
 		modes[i].reserved1 = info.reserved1;
-		modes[i].reserved2 = info.reserved2;	
+		modes[i].reserved2 = info.reserved2;
 
 		_XRead(dpy, offset, info.name_size);
 		modes[i].name = offset;
@@ -352,7 +352,7 @@ XDGAMode* XDGAQueryModes(
 }
 
 
-XDGADevice * 
+XDGADevice *
 XDGASetMode(
     Display	*dpy,
     int		screen,
@@ -373,7 +373,7 @@ XDGASetMode(
     req->screen = screen;
     req->mode = mode;
     req->pid = pid = XAllocID(dpy);
-    
+
     if (_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
 	if(rep.length) {
 	   xXDGAModeInfo info;
@@ -383,12 +383,12 @@ XDGASetMode(
 	   size -= sz_xXDGAModeInfo; /* get text size */
 
 	   dev = (XDGADevice*)Xmalloc(sizeof(XDGADevice) + size);
-	    
+
 	   if(dev) {
 		_XRead(dpy, (char*)(&info), sz_xXDGAModeInfo);
 
 		dev->mode.num = info.num;
-		dev->mode.verticalRefresh = 
+		dev->mode.verticalRefresh =
 				(float)info.vsync_num / (float)info.vsync_den;
 		dev->mode.flags = info.flags;
 		dev->mode.imageWidth = info.image_width;
@@ -413,7 +413,7 @@ XDGASetMode(
 		dev->mode.reserved1 = info.reserved1;
 		dev->mode.reserved2 = info.reserved2;
 
-		dev->mode.name = (char*)(&dev[1]);	
+		dev->mode.name = (char*)(&dev[1]);
 		_XRead(dpy, dev->mode.name, info.name_size);
 
 		dev->pixmap = (rep.flags & XDGAPixmap) ? pid : 0;
@@ -421,7 +421,7 @@ XDGASetMode(
 
 		if(dev->data)
 		    dev->data += rep.offset;
-	   } 
+	   }
 	   /* not sure what to do if the allocation fails */
 	}
     }
@@ -591,7 +591,7 @@ void XDGACopyTransparentArea(
 
 int XDGAGetViewportStatus(
     Display *dpy,
-    int screen 
+    int screen
 ){
     XExtDisplayInfo *info = xdga_find_display (dpy);
     xXDGAGetViewportStatusReply rep;
@@ -614,7 +614,7 @@ int XDGAGetViewportStatus(
 
 void XDGASync(
     Display *dpy,
-    int screen 
+    int screen
 ){
     XExtDisplayInfo *info = xdga_find_display (dpy);
     xXDGASyncReply rep;
@@ -638,7 +638,7 @@ void XDGAChangePixmapMode(
     int screen,
     int *x,
     int *y,
-    int mode 
+    int mode
 ){
     XExtDisplayInfo *info = xdga_find_display (dpy);
     xXDGAChangePixmapModeReq *req;
@@ -689,7 +689,7 @@ Colormap XDGACreateColormap(
 
 
 void XDGAKeyEventToXKeyEvent(
-    XDGAKeyEvent* dk, 
+    XDGAKeyEvent* dk,
     XKeyEvent* xk
 ){
     xk->type = dk->type;
@@ -710,7 +710,7 @@ void XDGAKeyEventToXKeyEvent(
 #include <stdlib.h>
 #include <stdio.h>
 #include <fcntl.h>
-#if defined(ISC) 
+#if defined(ISC)
 # define HAS_SVR3_MMAP
 # include <sys/types.h>
 # include <errno.h>
@@ -760,7 +760,7 @@ typedef struct _DGAMapRec{
 } DGAMapRec, *DGAMapPtr;
 
 static Bool
-DGAMapPhysical(int, char*, unsigned char*, CARD32, CARD32, CARD32, DGAMapPtr); 
+DGAMapPhysical(int, char*, unsigned char*, CARD32, CARD32, CARD32, DGAMapPtr);
 static void DGAUnmapPhysical(DGAMapPtr);
 
 static DGAMapPtr _Maps = NULL;
@@ -794,7 +794,7 @@ XDGAMapFramebuffer(
 ){
    DGAMapPtr pMap = _Maps;
    Bool result;
-   
+
    /* is it already mapped ? */
    while(pMap != NULL) {
      if(pMap->screen == screen)
@@ -815,9 +815,9 @@ XDGAMapFramebuffer(
    if(result) {
       pMap->next = _Maps;
       _Maps = pMap;
-   } else 
+   } else
       Xfree(pMap);
-   
+
    return result;
 }
 
@@ -866,7 +866,7 @@ DGAMapPhysical(
     ULONG action;
     HFILE hfd;
 #endif
-  
+
     base += offset;
 
     pMap->screen = screen;
@@ -927,7 +927,7 @@ DGAMapPhysical(
 	    name = DEV_MEM;
     if ((pMap->fd = open(name, O_RDWR)) < 0)
 	return False;
-    pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE, 
+    pMap->virtual = mmap(NULL, size, PROT_READ | PROT_WRITE,
 			MAP_FILE | MAP_SHARED, pMap->fd, (off_t)base);
     if (pMap->virtual == (void *)-1)
 	return False;

commit c85b3c711d96331b4aa564ee4c9168d1aa0c10bc
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Tue May 17 20:54:52 2011 -0700

    XDGA.man: Fix capitalization of ViewportStep to match xf86dgaproto headers
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

diff --git a/man/XDGA.man b/man/XDGA.man
index 5bff838..2121787 100644
--- a/man/XDGA.man
+++ b/man/XDGA.man
@@ -372,9 +372,9 @@ etc.
 The dimensions of the portion of the framebuffer which will be displayed
 on the screen.
 .TP 8
-.I xViewPortStep
+.I xViewportStep
 .TP 8
-.I yViewPortStep
+.I yViewportStep
 The granularity of the x,y viewport positioning possible with the
 .BR XDGASetViewport ()
 function.
@@ -522,9 +522,9 @@ rectangle.
 sets the upper left-hand corner of the rectangle of framebuffer that is
 to be displayed on the screen.  Not all locations may be supported by
 the hardware and requested locations will be adjusted according to the
-.I xViewPortStep
+.I xViewportStep
 and
-.I yViewPortStep
+.I yViewportStep
 fields in the
 .IR XDGAMode .
 .PP

commit 8d4356002f886417c1edb7b41aa1139d984bb861
Author: Gaetan Nadon <memsize@videotron.ca>
Date:   Wed Feb 2 11:43:45 2011 -0500

    config: comment, minor upgrade, quote and layout configure.ac
    
    Group statements per section as per Autoconf standard layout
    Quote statements where appropriate.
    Autoconf recommends not using dnl instead of # for comments
    
    Use AC_CONFIG_FILES to replace the deprecated AC_OUTPUT with parameters.
    Add AC_CONFIG_SRCDIR([Makefile.am])
    
    This helps automated maintenance and release activities.
    Details can be found in http://wiki.x.org/wiki/NewModuleGuidelines

diff --git a/configure.ac b/configure.ac
index 1796d23..7f9b97c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,27 +1,30 @@
-AC_PREREQ([2.60])
 
+# Initialize Autoconf
+AC_PREREQ([2.60])
 AC_INIT([libXxf86dga], [1.1.2],
-        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
-        [libXxf86dga])
+        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXxf86dga])
+AC_CONFIG_SRCDIR([Makefile.am])
+AC_CONFIG_HEADERS(src/config.h)
+
+# Initialize Automake
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
 AM_MAINTAINER_MODE
 
+# Initialize libtool
+AC_PROG_LIBTOOL
+
 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
 m4_ifndef([XORG_MACROS_VERSION],
           [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
 XORG_MACROS_VERSION(1.8)
 XORG_DEFAULT_OPTIONS
-AC_CONFIG_HEADERS(src/config.h)
-
-# Check for progs
-AC_PROG_LIBTOOL
+XORG_CHECK_MALLOC_ZERO
 
-# Checks for pkg-config packages
+# Obtain compiler/linker options for depedencies
 PKG_CHECK_MODULES(XXF86DGA, xproto x11 xextproto xext [xf86dgaproto >= 2.0.99.2])
 
-XORG_CHECK_MALLOC_ZERO
-
-AC_OUTPUT([Makefile
-	   src/Makefile
-	   man/Makefile
-	   xxf86dga.pc])
+AC_CONFIG_FILES([Makefile
+		src/Makefile
+		man/Makefile
+		xxf86dga.pc])
+AC_OUTPUT

commit 1d8387fbb917fb47d27b20b369d3fb7d0947ab6a
Author: Gaetan Nadon <memsize@videotron.ca>
Date:   Fri Jan 28 19:41:38 2011 -0500

    config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
    
    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>

diff --git a/configure.ac b/configure.ac
index 0bb93c4..1796d23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,7 +11,7 @@ m4_ifndef([XORG_MACROS_VERSION],
           [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
 XORG_MACROS_VERSION(1.8)
 XORG_DEFAULT_OPTIONS
-AM_CONFIG_HEADER(src/config.h)
+AC_CONFIG_HEADERS(src/config.h)
 
 # Check for progs
 AC_PROG_LIBTOOL

commit 4aae82f7d0533ba696434b2c8d108e8d8206b8bc
Author: Gaetan Nadon <memsize@videotron.ca>
Date:   Thu Jan 27 18:50:15 2011 -0500

    config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
    
    XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
    AC_PROG_C_C99. This sets gcc with -std=gnu99.
    If AC_PROG_CC macro is called afterwards, it resets CC to gcc.
    
    Signed-off-by: Gaetan Nadon <memsize@videotron.ca>

diff --git a/configure.ac b/configure.ac
index 9ac50b7..0bb93c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,7 +14,6 @@ XORG_DEFAULT_OPTIONS
 AM_CONFIG_HEADER(src/config.h)
 
 # Check for progs
-AC_PROG_CC
 AC_PROG_LIBTOOL
 
 # Checks for pkg-config packages


Reply to: