pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/editors/biew Remove some lvalue casts to make this com...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6e50c542148a
branches:  trunk
changeset: 515331:6e50c542148a
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Jun 30 22:22:58 2006 +0000

description:
Remove some lvalue casts to make this compile with gcc-4.1.

diffstat:

 editors/biew/distinfo         |   7 +++++-
 editors/biew/patches/patch-ab |  50 +++++++++++++++++++++++++++++++++++++++++++
 editors/biew/patches/patch-ac |  13 +++++++++++
 editors/biew/patches/patch-ad |  35 ++++++++++++++++++++++++++++++
 editors/biew/patches/patch-ae |  12 ++++++++++
 editors/biew/patches/patch-af |  16 +++++++++++++
 6 files changed, 132 insertions(+), 1 deletions(-)

diffs (162 lines):

diff -r 2620aa7ebb21 -r 6e50c542148a editors/biew/distinfo
--- a/editors/biew/distinfo     Fri Jun 30 22:14:49 2006 +0000
+++ b/editors/biew/distinfo     Fri Jun 30 22:22:58 2006 +0000
@@ -1,6 +1,11 @@
-$NetBSD: distinfo,v 1.6 2005/02/23 17:15:10 agc Exp $
+$NetBSD: distinfo,v 1.7 2006/06/30 22:22:58 wiz Exp $
 
 SHA1 (biew562.tar.bz2) = 44435c0815a59d38c9a6c74d09c0f495e71e23fe
 RMD160 (biew562.tar.bz2) = 413f2c72a70056adbebd5e79d541201d6e3b27cb
 Size (biew562.tar.bz2) = 594367 bytes
 SHA1 (patch-aa) = 6a717b0bd36c39dbdc2e50f4536d28e40e876f88
+SHA1 (patch-ab) = 2020874ed19dff5802998e20b5b8595c8d1786f3
+SHA1 (patch-ac) = 2636b520a7ee316551e4d5f33860327d9cc370ea
+SHA1 (patch-ad) = 91ff707e73c496f7c6b125d80a17bf665901f039
+SHA1 (patch-ae) = 96a8b1a4500612db2984878d2e9f3edc3f86d211
+SHA1 (patch-af) = b583dc266959ed7568d3f23bf21fdc0797683998
diff -r 2620aa7ebb21 -r 6e50c542148a editors/biew/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/biew/patches/patch-ab     Fri Jun 30 22:22:58 2006 +0000
@@ -0,0 +1,50 @@
+$NetBSD: patch-ab,v 1.3 2006/06/30 22:22:58 wiz Exp $
+
+--- biewlib/file_ini.c.orig    2004-02-26 15:53:22.000000000 +0000
++++ biewlib/file_ini.c
+@@ -1295,7 +1295,7 @@ static tBool __NEAR__ __FASTCALL__ __add
+   void __HUGE__ *found;
+   ini_cache __HUGE__ *it;
+   ini_cache ic;
+-  (const char *)ic.item = section;
++  ic.item = section;
+   ic.flags = 0;
+   if(!(found =la_Find((linearArray *)opening->cache,&ic,__full_compare_cache)))
+   {
+@@ -1325,7 +1325,7 @@ static tBool __NEAR__ __FASTCALL__ __add
+   {
+     do_subsect:
+       it = (ini_cache __HUGE__ *)found;
+-      (const char *)ic.item = subsection;
++      ic.item = subsection;
+       if(!(found=la_Find(it->v.leaf,&ic,__full_compare_cache)))
+       {
+         ic.item = PMalloc(strlen(subsection)+1);
+@@ -1354,7 +1354,7 @@ static tBool __NEAR__ __FASTCALL__ __add
+       {
+         do_item:
+         it = (ini_cache __HUGE__ *)found;
+-        (const char *)ic.item = item;
++        ic.item = item;
+         ic.flags = IC_STRING;
+         if(!(found=la_Find(it->v.leaf,&ic,__full_compare_cache)))
+         {
+@@ -1589,15 +1589,15 @@ unsigned __FASTCALL__ iniReadProfileStri
+           ini_cache ic;
+           void __HUGE__ *found,__HUGE__ *foundi,__HUGE__ *foundv;
+           ini_cache __HUGE__ *fi;
+-          (const char *)ic.item = section;
++          ic.item = section;
+           ic.flags = 0;
+           if((found=la_Find(ini->cache,&ic,__full_compare_cache))!=NULL)
+           {
+-            (const char *)ic.item=subsection;
++            ic.item=subsection;
+             fi = (ini_cache __HUGE__ *)found;
+             if((foundi=la_Find(fi->v.leaf,&ic,__full_compare_cache))!=NULL)
+             {
+-               (const char *)ic.item = _item;
++               ic.item = _item;
+                ic.flags = IC_STRING;
+                fi = (ini_cache __HUGE__ *)foundi;
+                if((foundv=la_Find(fi->v.leaf,&ic,__full_compare_cache))!=NULL)
diff -r 2620aa7ebb21 -r 6e50c542148a editors/biew/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/biew/patches/patch-ac     Fri Jun 30 22:22:58 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2006/06/30 22:22:58 wiz Exp $
+
+--- biewlib/sysdep/ia16/cmn_ix86.c.orig        2003-03-27 06:19:30.000000000 +0000
++++ biewlib/sysdep/ia16/cmn_ix86.c
+@@ -47,7 +47,7 @@ static unsigned long __NEAR__ __FASTCALL
+   ctrl_arr = c_arr;
+   /* align pointer on 16-byte boundary */
+ 
+-  if((tUInt32)ctrl_arr & 15) ((tUInt32)ctrl_arr) += 16-((tUInt32)ctrl_arr&15);
++  if((tUInt32)ctrl_arr & 15) ctrl_arr = ((tUInt32)ctrl_arr) + 16-((tUInt32)ctrl_arr&15);
+ 
+   memset(ctrl_arr,0,sizeof(ctrl_arr));
+   if(time_interval)
diff -r 2620aa7ebb21 -r 6e50c542148a editors/biew/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/biew/patches/patch-ad     Fri Jun 30 22:22:58 2006 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-ad,v 1.1 2006/06/30 22:22:58 wiz Exp $
+
+--- biewlib/sysdep/ia32/aclib_template.c.orig  2002-12-13 15:31:20.000000000 +0000
++++ biewlib/sysdep/ia32/aclib_template.c
+@@ -209,8 +209,8 @@ static void * RENAME(fast_memcpy)(void *
+               MOVNTQ" %%mm6, 48(%1)\n"
+               MOVNTQ" %%mm7, 56(%1)\n"
+               :: "r" (from), "r" (to) : "memory");
+-              ((const unsigned char *)from)+=64;
+-              ((unsigned char *)to)+=64;
++              from = ((const unsigned char *)from)+64;
++              to = ((unsigned char *)to)+64;
+       }
+ 
+       // Pure Assembly cuz gcc is a bit unpredictable ;)
+@@ -297,8 +297,8 @@ static void * RENAME(fast_memcpy)(void *
+               MOVNTQ" %%mm6, 48(%1)\n"
+               MOVNTQ" %%mm7, 56(%1)\n"
+               :: "r" (from), "r" (to) : "memory");
+-              ((const unsigned char *)from)+=64;
+-              ((unsigned char *)to)+=64;
++              from = ((const unsigned char *)from)+64;
++              to = ((unsigned char *)to)+64;
+       }
+ 
+ #endif /* Have SSE */
+@@ -393,7 +393,7 @@ static void * RENAME(fast_memset)(void *
+               MOVNTQ" %%mm0, 112(%0)\n"
+               MOVNTQ" %%mm0, 120(%0)\n"
+               :: "r" (to) : "memory");
+-              ((unsigned char *)to)+=128;
++              to = ((unsigned char *)to)+128;
+       }
+ #endif /* Have SSE */
+ #ifdef HAVE_MMX2
diff -r 2620aa7ebb21 -r 6e50c542148a editors/biew/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/biew/patches/patch-ae     Fri Jun 30 22:22:58 2006 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ae,v 1.1 2006/06/30 22:22:58 wiz Exp $
+
+--- biewlib/tw_class.c.orig    2001-11-18 17:05:48.000000000 +0000
++++ biewlib/tw_class.c
+@@ -71,6 +71,6 @@ void __FASTCALL__ twcDestroyClassSet(voi
+ TwClass * __FASTCALL__ twcFindClass(const char *name)
+ {
+  TwClass key;
+- (const char *)(key.name) = name;
++ key.name = name;
+  return (TwClass *)la_Find(class_set,&key, comp_class);
+ }
diff -r 2620aa7ebb21 -r 6e50c542148a editors/biew/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/biew/patches/patch-af     Fri Jun 30 22:22:58 2006 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-af,v 1.1 2006/06/30 22:22:58 wiz Exp $
+
+--- biewlib/twin.c.orig        2003-05-28 16:30:26.000000000 +0000
++++ biewlib/twin.c
+@@ -1891,9 +1891,9 @@ int __FASTCALL__ twPutS(const char *str)
+        strcpy(__nls,str);
+        __nls_OemToOsdep((unsigned char *)__nls,len);
+      }
+-     else (const char *)__nls = str;
++     else __nls = str;
+   }
+-  else (const char *)__nls = str;
++  else __nls = str;
+   __nls_ptr = __nls;
+   __oem_ptr = str;
+   vidx = active->cur_x + active->cur_y*active->wwidth;



Home | Main Index | Thread Index | Old Index