From 5fef4d8b29dc5311ce16376790c7041cf5e28d59 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 30 Jun 2006 22:22:58 +0000 Subject: Remove some lvalue casts to make this compile with gcc-4.1. --- 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 deletion(-) create mode 100644 editors/biew/patches/patch-ab create mode 100644 editors/biew/patches/patch-ac create mode 100644 editors/biew/patches/patch-ad create mode 100644 editors/biew/patches/patch-ae create mode 100644 editors/biew/patches/patch-af (limited to 'editors/biew') diff --git a/editors/biew/distinfo b/editors/biew/distinfo index 1f97a5593a9..2317f1db9d5 100644 --- a/editors/biew/distinfo +++ b/editors/biew/distinfo @@ -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 --git a/editors/biew/patches/patch-ab b/editors/biew/patches/patch-ab new file mode 100644 index 00000000000..08b58d64b89 --- /dev/null +++ b/editors/biew/patches/patch-ab @@ -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 --git a/editors/biew/patches/patch-ac b/editors/biew/patches/patch-ac new file mode 100644 index 00000000000..bd988990ace --- /dev/null +++ b/editors/biew/patches/patch-ac @@ -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 --git a/editors/biew/patches/patch-ad b/editors/biew/patches/patch-ad new file mode 100644 index 00000000000..018088b28df --- /dev/null +++ b/editors/biew/patches/patch-ad @@ -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 --git a/editors/biew/patches/patch-ae b/editors/biew/patches/patch-ae new file mode 100644 index 00000000000..df9a939a292 --- /dev/null +++ b/editors/biew/patches/patch-ae @@ -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 --git a/editors/biew/patches/patch-af b/editors/biew/patches/patch-af new file mode 100644 index 00000000000..20f79c074fe --- /dev/null +++ b/editors/biew/patches/patch-af @@ -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; -- cgit v1.2.3