pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/pedisassem Added a patch to avoid type casts on ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1d45eaf7f7ed
branches:  trunk
changeset: 518040:1d45eaf7f7ed
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Aug 29 19:57:09 2006 +0000

description:
Added a patch to avoid type casts on lvalues.

diffstat:

 devel/pedisassem/distinfo         |   3 ++-
 devel/pedisassem/patches/patch-ad |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (43 lines):

diff -r b96e03dd5181 -r 1d45eaf7f7ed devel/pedisassem/distinfo
--- a/devel/pedisassem/distinfo Tue Aug 29 18:07:09 2006 +0000
+++ b/devel/pedisassem/distinfo Tue Aug 29 19:57:09 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2005/12/20 14:22:00 joerg Exp $
+$NetBSD: distinfo,v 1.7 2006/08/29 19:57:09 rillig Exp $
 
 SHA1 (dsasmsrc.zip) = bc50eb6786dd0f5c68e61036587e04919721156c
 RMD160 (dsasmsrc.zip) = fac4e2e37f5b3c6649a32e4ed6004079e2cb60bb
@@ -6,3 +6,4 @@
 SHA1 (patch-aa) = fa289b7dad71b9c732681dd57ffd06a9118dc2d3
 SHA1 (patch-ab) = 5ee866f0bc5faa6658485b0b5a77dd2e84aa781a
 SHA1 (patch-ac) = ad261e1f1b3672021441d7a9a78534a6054a026f
+SHA1 (patch-ad) = 7f9b97c1f17595ec527103405c07fb3fb38edaf3
diff -r b96e03dd5181 -r 1d45eaf7f7ed devel/pedisassem/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pedisassem/patches/patch-ad Tue Aug 29 19:57:09 2006 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-ad,v 1.1 2006/08/29 19:57:09 rillig Exp $
+
+A cast cannot be an lvalue in ISO C99.
+
+--- decoder.c.orig     1998-10-09 11:55:40.000000000 +0200
++++ decoder.c  2006-08-29 21:51:36.000000000 +0200
+@@ -791,14 +791,14 @@ int ReadOneByte()
+ int PeekOneByte()
+ {
+     if (yyfirsttime)
+-        return  (int) c = *(PBYTE)((int)lpFile + vCodeOffset);
++        return  (int) (c = *(PBYTE)((int)lpFile + vCodeOffset));
+     if (GotEof) return EOF;
+     if (yyfp >= yypmax ) return EOF; 
+-    else return (int) c = *(yyfp);
++    else return (int) (c = *(yyfp));
+ }
+ int PeekSecondByte()
+ {
+     if (GotEof) return EOF;
+     if (yyfp+1 >= yypmax ) return EOF; 
+-    else return (int) c = *(yyfp+1);
++    else return (int) (c = *(yyfp+1));
+ }
+\ No newline at end of file



Home | Main Index | Thread Index | Old Index