Date: Thu, 27 Apr 2006 06:54:25 +0800 (CST) From: Rong-En Fan <rafan@infor.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: clsung@FreeBSD.org Subject: ports/96384: [PATCH] chinese/libchewing: fix build on 4.x Message-ID: <200604262254.k3QMsP2q078314@svm.csie.ntu.edu.tw> Resent-Message-ID: <200604262300.k3QN0a36089115@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 96384 >Category: ports >Synopsis: [PATCH] chinese/libchewing: fix build on 4.x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 26 23:00:35 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Rong-En Fan >Release: FreeBSD 6.0 >Organization: NTU CSIE >Environment: >Description: Fix build on 4.x. Dont use C99 syntax. Added file(s): - files/patch-src-hanyupinying.c Port maintainer (clsung@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- libchewing-0.2.7_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/chinese/libchewing/files/patch-src-hanyupinying.c /home/rafan/tmp/ports/libchewing/files/patch-src-hanyupinying.c --- /usr/ports/chinese/libchewing/files/patch-src-hanyupinying.c Thu Jan 1 08:00:00 1970 +++ /home/rafan/tmp/ports/libchewing/files/patch-src-hanyupinying.c Thu Apr 27 06:51:55 2006 @@ -0,0 +1,32 @@ +--- src/hanyupinying.c.orig Thu Apr 27 06:42:41 2006 ++++ src/hanyupinying.c Thu Apr 27 06:43:31 2006 +@@ -26,7 +26,6 @@ + + static PinYingZuinMap* InitialsMap() + { +- HANYU_INITIALS = 26; + static PinYingZuinMap map[ 26 ] = { + {"b" , "1"}, {"p" , "q"}, {"m" , "a"}, {"f" ,"z"}, + {"d" , "2"}, {"t" , "w"}, {"n" , "s"}, {"l" ,"x"}, +@@ -36,12 +35,12 @@ + {"shi", "g"}, {"sh", "g"}, {"ri", "b"}, {"r" ,"b"}, + {"z" , "y"}, {"c" , "h"}, {"s" , "n"} + }; ++ HANYU_INITIALS = 26; + return map; + } + + static PinYingZuinMap* FinalsMap() + { +- HANYU_FINALS = 72; + static PinYingZuinMap map[ 72 ] = { + {"uang","j;"}, {"wang","j;"}, + {"wong","j/"}, {"weng","j/"}, +@@ -92,6 +91,7 @@ + {"u","j"}, + {"E",","} + }; ++ HANYU_FINALS = 72; + return map; + } + --- libchewing-0.2.7_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604262254.k3QMsP2q078314>