aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2006-04-27 08:55:56 +0800
committerclsung <clsung@FreeBSD.org>2006-04-27 08:55:56 +0800
commitc33fd31138e546b644ca7dde2809c073a4f67187 (patch)
treea5a3ee4ff8ded402f38c29bd45cf78dd975d6e8b /chinese
parent32c30f289fe57b59128e676932ec9d8ba72041f1 (diff)
downloadfreebsd-ports-gnome-c33fd31138e546b644ca7dde2809c073a4f67187.tar.gz
freebsd-ports-gnome-c33fd31138e546b644ca7dde2809c073a4f67187.tar.zst
freebsd-ports-gnome-c33fd31138e546b644ca7dde2809c073a4f67187.zip
- Fix build on 4.x. Dont use C99 syntax.
PR: 96384 Submitted by: Rong-En Fan <rafan AT infor dot org>
Diffstat (limited to 'chinese')
-rw-r--r--chinese/libchewing/files/patch-src-hanyupinying.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/chinese/libchewing/files/patch-src-hanyupinying.c b/chinese/libchewing/files/patch-src-hanyupinying.c
new file mode 100644
index 000000000000..74903153a394
--- /dev/null
+++ b/chinese/libchewing/files/patch-src-hanyupinying.c
@@ -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;
+ }
+