summaryrefslogtreecommitdiff
path: root/chinese/libchewing
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2006-04-27 00:55:56 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2006-04-27 00:55:56 +0000
commitc9acfa8022e9bc446d1540fdd3d22ca7c520e530 (patch)
treed1c09461351b17f14cab389a05ca98a64a3e867c /chinese/libchewing
parentUpdate to SRC680_m164. (diff)
- Fix build on 4.x. Dont use C99 syntax.
PR: 96384 Submitted by: Rong-En Fan <rafan AT infor dot org>
Notes
Notes: svn path=/head/; revision=160552
Diffstat (limited to 'chinese/libchewing')
-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;
+ }
+