[csw-devel] SF.net SVN: gar:[15722] csw/mgar/pkg/glib2/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Sep 23 23:30:33 CEST 2011


Revision: 15722
          http://gar.svn.sourceforge.net/gar/?rev=15722&view=rev
Author:   dmichelsen
Date:     2011-09-23 21:30:33 +0000 (Fri, 23 Sep 2011)
Log Message:
-----------
glib2: Add patch for Sun Studio 12

Modified Paths:
--------------
    csw/mgar/pkg/glib2/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/glib2/trunk/files/0015-Do-not-ellipses-in-switch-cases.patch

Modified: csw/mgar/pkg/glib2/trunk/Makefile
===================================================================
--- csw/mgar/pkg/glib2/trunk/Makefile	2011-09-23 17:51:20 UTC (rev 15721)
+++ csw/mgar/pkg/glib2/trunk/Makefile	2011-09-23 21:30:33 UTC (rev 15722)
@@ -33,6 +33,7 @@
 PATCHFILES += 0012-Use-proper-locale-for-collate-tests-2.patch
 PATCHFILES += 0013-Fix-test-shell-script.patch
 PATCHFILES += 0014-Disable-log-tests.patch
+PATCHFILES += 0015-Do-not-ellipses-in-switch-cases.patch
 
 PACKAGING_PLATFORMS += solaris9-sparc solaris9-i386
 # Make special build for Solaris 10 to use dtrace

Added: csw/mgar/pkg/glib2/trunk/files/0015-Do-not-ellipses-in-switch-cases.patch
===================================================================
--- csw/mgar/pkg/glib2/trunk/files/0015-Do-not-ellipses-in-switch-cases.patch	                        (rev 0)
+++ csw/mgar/pkg/glib2/trunk/files/0015-Do-not-ellipses-in-switch-cases.patch	2011-09-23 21:30:33 UTC (rev 15722)
@@ -0,0 +1,42 @@
+From d61f7f5a9c68a1d8d6c05b10d793b933252e8834 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Fri, 23 Sep 2011 23:23:52 +0200
+Subject: [PATCH] Do not ellipses in switch cases
+
+---
+ glib/tests/checksum.c |   18 ++++++++++++++++--
+ 1 files changed, 16 insertions(+), 2 deletions(-)
+
+diff --git a/glib/tests/checksum.c b/glib/tests/checksum.c
+index 0e51736..26469a5 100644
+--- a/glib/tests/checksum.c
++++ b/glib/tests/checksum.c
+@@ -615,9 +615,23 @@ hexval (const gchar c)
+ {
+   switch (c)
+     {
+-     case '0' ... '9':
++     case '0':
++     case '1':
++     case '2':
++     case '3':
++     case '4':
++     case '5':
++     case '6':
++     case '7':
++     case '8':
++     case '9':
+        return c - '0';
+-     case 'a' ... 'f':
++     case 'a':
++     case 'b':
++     case 'c':
++     case 'd':
++     case 'e':
++     case 'f':
+        return 10 + c - 'a';
+      default:
+        return 0;
+-- 
+1.7.5.4
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list