Merge lp:~cosmos-door/ubuntu/utopic/libkkc/fix-1374949 into lp:ubuntu/utopic/libkkc

Proposed by Mitsuya Shibata
Status: Rejected
Rejected by: Daniel Holbach
Proposed branch: lp:~cosmos-door/ubuntu/utopic/libkkc/fix-1374949
Merge into: lp:ubuntu/utopic/libkkc
Diff against target: 38502 lines (+13373/-11917)
163 files modified
ChangeLog (+220/-0)
Makefile.am (+2/-2)
Makefile.in (+2/-2)
README (+2/-2)
aclocal.m4 (+98/-98)
configure (+22/-22)
configure.ac (+5/-5)
data/Makefile.am (+2/-2)
data/Makefile.in (+2/-2)
data/rules/Makefile.am (+2/-2)
data/rules/Makefile.in (+2/-2)
data/rules/README.rules (+2/-2)
data/rules/default/rom-kana/default.json (+5/-0)
data/templates/Makefile.am (+2/-2)
data/templates/Makefile.in (+2/-2)
data/templates/libkkc-data/Makefile.am (+2/-2)
data/templates/libkkc-data/configure.ac.in (+2/-2)
data/templates/libkkc-data/data/Makefile.am (+2/-2)
data/templates/libkkc-data/data/models/Makefile.sorted2 (+2/-2)
data/templates/libkkc-data/data/models/Makefile.sorted3 (+2/-2)
data/templates/libkkc-data/tools/Makefile.am (+2/-2)
data/templates/libkkc-data/tools/genfilter.py (+2/-2)
data/templates/libkkc-data/tools/sortlm.py (+2/-2)
debian/changelog (+7/-0)
debian/control (+3/-2)
docs/Makefile.am (+1/-1)
docs/Makefile.in (+1/-1)
libkkc/Kkc-1.0.gir (+2/-2)
libkkc/Makefile.am (+3/-3)
libkkc/Makefile.in (+3/-3)
libkkc/bigram-decoder.c (+962/-1005)
libkkc/bigram-decoder.vala (+9/-13)
libkkc/bloom-filter.c (+36/-34)
libkkc/bloom-filter.vala (+2/-2)
libkkc/candidate-list.c (+198/-208)
libkkc/candidate-list.vala (+3/-3)
libkkc/candidate.c (+4/-6)
libkkc/candidate.vala (+2/-2)
libkkc/context.c (+11/-13)
libkkc/context.vala (+2/-2)
libkkc/convert-segment-state-handler.c (+39/-41)
libkkc/convert-segment-state-handler.vala (+2/-2)
libkkc/convert-sentence-state-handler.c (+77/-87)
libkkc/convert-sentence-state-handler.vala (+2/-2)
libkkc/decoder.c (+5/-5)
libkkc/decoder.vala (+2/-2)
libkkc/dictionary-list.c (+23/-27)
libkkc/dictionary-list.vala (+2/-2)
libkkc/dictionary.c (+405/-161)
libkkc/dictionary.vala (+2/-2)
libkkc/encoding.c (+74/-55)
libkkc/encoding.vala (+2/-2)
libkkc/expression.c (+262/-278)
libkkc/expression.vala (+3/-3)
libkkc/initial-state-handler.c (+546/-574)
libkkc/initial-state-handler.vala (+2/-2)
libkkc/key-event-filter.c (+21/-23)
libkkc/key-event-filter.vala (+2/-2)
libkkc/key-event.c (+688/-458)
libkkc/key-event.vala (+2/-2)
libkkc/keymap.c (+136/-154)
libkkc/keymap.vala (+15/-21)
libkkc/keysyms.c (+3/-3)
libkkc/keysyms.vala (+2/-2)
libkkc/kkc-1.0.deps (+1/-2)
libkkc/kkc-1.0.pc.in (+3/-3)
libkkc/kkc-1.0.vapi (+1/-1)
libkkc/kkc-internals-1.0.vapi (+1/-1)
libkkc/kkc.c (+3/-3)
libkkc/kkc.vala (+2/-2)
libkkc/language-model-utils.c (+3/-3)
libkkc/language-model-utils.vala (+2/-2)
libkkc/language-model.c (+30/-18)
libkkc/language-model.vala (+2/-2)
libkkc/libkkc-internals.h (+1/-1)
libkkc/libkkc.h (+1/-1)
libkkc/map-file.c (+34/-38)
libkkc/map-file.vala (+3/-3)
libkkc/metadata-file.c (+7/-7)
libkkc/metadata-file.vala (+2/-2)
libkkc/nicola.c (+306/-325)
libkkc/nicola.vala (+4/-4)
libkkc/numeric-template.c (+202/-204)
libkkc/numeric-template.vala (+2/-2)
libkkc/rom-kana-utils.c (+482/-260)
libkkc/rom-kana-utils.vala (+2/-2)
libkkc/rom-kana.c (+731/-677)
libkkc/rom-kana.vala (+13/-5)
libkkc/rule.c (+386/-416)
libkkc/rule.vala (+21/-25)
libkkc/segment-dictionary.c (+3/-3)
libkkc/segment-dictionary.vala (+2/-2)
libkkc/segment-list.c (+5/-5)
libkkc/segment-list.vala (+2/-2)
libkkc/segment.c (+3/-3)
libkkc/segment.vala (+2/-2)
libkkc/sentence-dictionary.c (+3/-3)
libkkc/sentence-dictionary.vala (+2/-2)
libkkc/sorted-bigram-language-model.c (+191/-173)
libkkc/sorted-bigram-language-model.vala (+2/-2)
libkkc/sorted-trigram-language-model.c (+126/-118)
libkkc/sorted-trigram-language-model.vala (+2/-2)
libkkc/state.c (+1548/-1368)
libkkc/state.vala (+3/-3)
libkkc/system-segment-dictionary.c (+426/-423)
libkkc/system-segment-dictionary.vala (+2/-2)
libkkc/template.c (+23/-27)
libkkc/template.vala (+2/-2)
libkkc/text-bigram-language-model.c (+409/-421)
libkkc/text-bigram-language-model.vala (+2/-2)
libkkc/text-trigram-language-model.c (+4/-4)
libkkc/text-trigram-language-model.vala (+2/-2)
libkkc/trellis-node.c (+10/-9)
libkkc/trellis-node.vala (+2/-2)
libkkc/trigram-decoder.c (+357/-378)
libkkc/trigram-decoder.vala (+4/-5)
libkkc/user-dictionary.c (+31/-22)
libkkc/user-dictionary.vala (+2/-2)
libkkc/user-rule.c (+95/-97)
libkkc/user-segment-dictionary.c (+214/-177)
libkkc/user-segment-dictionary.vala (+4/-4)
libkkc/user-sentence-dictionary.c (+688/-415)
libkkc/user-sentence-dictionary.vala (+4/-4)
libkkc/utils.c (+226/-246)
libkkc/utils.vala (+2/-2)
m4/libtool.m4 (+2/-2)
marisa-glib/Makefile.am (+2/-2)
marisa-glib/Makefile.in (+2/-2)
po/ja.po (+87/-67)
tests/Makefile.am (+2/-2)
tests/Makefile.in (+123/-123)
tests/candidate-list.c (+6/-5)
tests/candidate.c (+5/-4)
tests/context.c (+986/-924)
tests/conversions-initial.json (+3/-1)
tests/decoder.c (+16/-15)
tests/dictionary-list.c (+103/-98)
tests/encoding.c (+27/-19)
tests/expression.c (+5/-4)
tests/key-event.c (+19/-18)
tests/keymap.c (+75/-77)
tests/language-model.c (+13/-12)
tests/lib/kkc-test.vapi (+1/-1)
tests/lib/libkkc-test.h (+1/-1)
tests/lib/test-case.c (+59/-60)
tests/lib/test-utils.c (+157/-138)
tests/lib/test-utils.vala (+3/-0)
tests/metadata-file.c (+29/-21)
tests/rom-kana.c (+10/-9)
tests/rule.c (+13/-12)
tests/segment-list.c (+5/-4)
tests/segment.c (+5/-4)
tests/state.c (+6/-5)
tests/system-dictionary.c (+65/-57)
tests/template.c (+5/-4)
tests/trellis-node.c (+6/-5)
tests/user-dictionary.c (+503/-480)
tests/user-rule.c (+104/-94)
tools/Makefile.am (+2/-2)
tools/Makefile.in (+2/-2)
tools/kkc-package-data.in (+2/-2)
tools/kkc.c (+317/-325)
tools/kkc.vala (+2/-2)
To merge this branch: bzr merge lp:~cosmos-door/ubuntu/utopic/libkkc/fix-1374949
Reviewer Review Type Date Requested Status
Mitsuya Shibata (community) Disapprove
Ubuntu Development Team Pending
Review via email: mp+236732@code.launchpad.net

Description of the change

* New upsteam release
* Change Build-Depends from libgee-dev to libgee-0.8-dev

To post a comment you must log in.
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

Already archived new package in debian. Does not need to merge, just sync.

review: Abstain
Revision history for this message
Mitsuya Shibata (cosmos-door) :
review: Disapprove

Unmerged revisions

5. By Mitsuya Shibata

Change Build-Depends from libgee-dev to libgee-0.8-dev (LP: #1374949)

4. By Mitsuya Shibata

Import upstream version 0.3.4

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2014-06-15 23:27:57 +0000
+++ ChangeLog 2014-10-01 15:12:30 +0000
@@ -1,3 +1,223 @@
1commit 4ffd6c8331d4575678aca7cad7c5e839d7dbd736
2Author: Daiki Ueno <ueno@unixuser.org>
3Date: Mon Jul 7 13:09:45 2014 +0900
4
5 Revert "build: Switch from intltool to gettext"
6
7 This reverts commit 25e166bda1f6308a9b4f26268791d55781112620.
8 The required gettext version 0.19.1 is not yet available on many
9 systems.
10
11 configure.ac | 3 +--
12 po/Makevars | 72
13 ------------------------------------------------------------
14 2 files changed, 1 insertion(+), 74 deletions(-)
15
16commit 784377b6c2aa7e78e193b4c4a7ebde9e1a5aeba3
17Author: Daiki Ueno <ueno@unixuser.org>
18Date: Mon Jul 7 13:06:29 2014 +0900
19
20 Bump version to 0.3.4
21
22 configure.ac | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25commit 3cff841d1fb430fcb30236e20e7ec84214f2d9c1
26Author: Daiki Ueno <ueno@unixuser.org>
27Date: Mon Jul 7 13:05:36 2014 +0900
28
29 Update copyright year
30
31 Makefile.am | 4 ++--
32 README | 4 ++--
33 configure.ac | 4 ++--
34 data/Makefile.am | 4 ++--
35 data/rules/Makefile.am | 4 ++--
36 data/rules/README.rules | 4 ++--
37 data/templates/Makefile.am | 4 ++--
38 data/templates/libkkc-data/Makefile.am | 4 ++--
39 data/templates/libkkc-data/configure.ac.in | 4 ++--
40 data/templates/libkkc-data/data/Makefile.am | 4 ++--
41 data/templates/libkkc-data/data/models/Makefile.sorted2 | 4 ++--
42 data/templates/libkkc-data/data/models/Makefile.sorted3 | 4 ++--
43 data/templates/libkkc-data/tools/Makefile.am | 4 ++--
44 data/templates/libkkc-data/tools/genfilter.py | 4 ++--
45 data/templates/libkkc-data/tools/sortlm.py | 4 ++--
46 libkkc/Makefile.am | 4 ++--
47 libkkc/bigram-decoder.vala | 4 ++--
48 libkkc/bloom-filter.vala | 4 ++--
49 libkkc/candidate-list.vala | 4 ++--
50 libkkc/candidate.vala | 4 ++--
51 libkkc/context.vala | 4 ++--
52 libkkc/convert-segment-state-handler.vala | 4 ++--
53 libkkc/convert-sentence-state-handler.vala | 4 ++--
54 libkkc/decoder.vala | 4 ++--
55 libkkc/dictionary-list.vala | 4 ++--
56 libkkc/dictionary.vala | 4 ++--
57 libkkc/encoding.vala | 4 ++--
58 libkkc/expression.vala | 4 ++--
59 libkkc/initial-state-handler.vala | 4 ++--
60 libkkc/key-event-filter.vala | 4 ++--
61 libkkc/key-event.vala | 4 ++--
62 libkkc/keymap.vala | 4 ++--
63 libkkc/keysyms.vala | 4 ++--
64 libkkc/kkc-1.0.pc.in | 4 ++--
65 libkkc/kkc.vala | 4 ++--
66 libkkc/language-model-utils.vala | 4 ++--
67 libkkc/language-model.vala | 4 ++--
68 libkkc/map-file.vala | 4 ++--
69 libkkc/metadata-file.vala | 4 ++--
70 libkkc/nicola.vala | 4 ++--
71 libkkc/numeric-template.vala | 4 ++--
72 libkkc/rom-kana-utils.vala | 4 ++--
73 libkkc/rom-kana.vala | 4 ++--
74 libkkc/rule.vala | 4 ++--
75 libkkc/segment-dictionary.vala | 4 ++--
76 libkkc/segment-list.vala | 4 ++--
77 libkkc/segment.vala | 4 ++--
78 libkkc/sentence-dictionary.vala | 4 ++--
79 libkkc/sorted-bigram-language-model.vala | 4 ++--
80 libkkc/sorted-trigram-language-model.vala | 4 ++--
81 libkkc/state.vala | 4 ++--
82 libkkc/system-segment-dictionary.vala | 4 ++--
83 libkkc/template.vala | 4 ++--
84 libkkc/text-bigram-language-model.vala | 4 ++--
85 libkkc/text-trigram-language-model.vala | 4 ++--
86 libkkc/trellis-node.vala | 4 ++--
87 libkkc/trigram-decoder.vala | 4 ++--
88 libkkc/user-dictionary.vala | 4 ++--
89 libkkc/user-segment-dictionary.vala | 4 ++--
90 libkkc/user-sentence-dictionary.vala | 4 ++--
91 libkkc/utils.vala | 4 ++--
92 marisa-glib/Makefile.am | 4 ++--
93 tests/Makefile.am | 4 ++--
94 tools/Makefile.am | 4 ++--
95 tools/kkc-package-data.in | 4 ++--
96 tools/kkc.vala | 4 ++--
97 66 files changed, 132 insertions(+), 132 deletions(-)
98
99commit 025d2fb3bf7e05bd7367d459bbf0557d5e929eab
100Author: Daiki Ueno <ueno@unixuser.org>
101Date: Mon Jun 16 12:18:40 2014 +0900
102
103 Update translations
104
105 po/ja.po | 8 +++++++-
106 1 file changed, 7 insertions(+), 1 deletion(-)
107
108commit 95ecc6d8a21814a093e013c60e370ac49407013a
109Author: Daiki Ueno <ueno@unixuser.org>
110Date: Mon Jun 16 12:13:19 2014 +0900
111
112 Update translations
113
114 po/ja.po | 148
115 ++++++++++++++++++++++++++++++++++-----------------------------
116 1 file changed, 81 insertions(+), 67 deletions(-)
117
118commit 25e166bda1f6308a9b4f26268791d55781112620
119Author: Daiki Ueno <ueno@unixuser.org>
120Date: Mon Jun 16 12:10:51 2014 +0900
121
122 build: Switch from intltool to gettext
123
124 configure.ac | 3 ++-
125 po/Makevars | 72
126 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
127 2 files changed, 74 insertions(+), 1 deletion(-)
128
129commit e5a21c69386a1c6681d63f5201fde2230a51f27a
130Author: Daiki Ueno <ueno@unixuser.org>
131Date: Mon Jun 16 12:00:41 2014 +0900
132
133 Fix dependencies
134
135 Can't make json-glib-1.0 and gee-0.8 optional, since some classes
136 provide
137 API using it for performance reason.
138
139 libkkc/kkc-1.0.deps | 1 +
140 libkkc/kkc-1.0.pc.in | 3 +--
141 2 files changed, 2 insertions(+), 2 deletions(-)
142
143commit 82ab9a22f97852fcc096347a663b3ea3b95626a8
144Author: Daiki Ueno <ueno@unixuser.org>
145Date: Mon Jun 16 11:27:23 2014 +0900
146
147 Fix package dependencies
148
149 libkkc/kkc-1.0.deps | 2 --
150 libkkc/kkc-1.0.pc.in | 4 ++--
151 2 files changed, 2 insertions(+), 4 deletions(-)
152
153commit baf68310e26cd090b6b5d7b4604cb4fcd5e5ca4f
154Author: Daiki Ueno <ueno@unixuser.org>
155Date: Mon Jun 16 11:17:36 2014 +0900
156
157 Fix HashSet name clash between Vala 0.26 glib-2.0.vapi and
158 gee-0.8.vapi
159
160 libkkc/bigram-decoder.vala | 2 +-
161 libkkc/candidate-list.vala | 2 +-
162 libkkc/map-file.vala | 2 +-
163 libkkc/rule.vala | 2 +-
164 libkkc/trigram-decoder.vala | 4 ++--
165 5 files changed, 6 insertions(+), 6 deletions(-)
166
167commit ebc714b954a7798646371eb3fd6fe4e51638f329
168Author: Daiki Ueno <ueno@unixuser.org>
169Date: Mon Jun 16 11:12:50 2014 +0900
170
171 Port to libgee 0.8 API
172
173 configure.ac | 4 ++--
174 libkkc/Makefile.am | 2 +-
175 libkkc/bigram-decoder.vala | 12 ++++-------
176 libkkc/expression.vala | 2 +-
177 libkkc/keymap.vala | 32 ++++++++++++-----------------
178 libkkc/kkc-1.0.pc.in | 2 +-
179 libkkc/nicola.vala | 4 ++--
180 libkkc/rule.vala | 40
181 ++++++++++++++++--------------------
182 libkkc/state.vala | 2 +-
183 libkkc/trigram-decoder.vala | 3 +--
184 libkkc/user-segment-dictionary.vala | 4 ++--
185 libkkc/user-sentence-dictionary.vala | 4 ++--
186 12 files changed, 48 insertions(+), 63 deletions(-)
187
188commit 8a5366c976b0399a69e6b9f622ad29f987c8a52e
189Author: Daiki Ueno <ueno@unixuser.org>
190Date: Mon Jun 16 10:50:34 2014 +0900
191
192 kkc-1.0.pc: Mark libgee and json-glib as private dependency
193
194 libkkc/kkc-1.0.pc.in | 3 ++-
195 1 file changed, 2 insertions(+), 1 deletion(-)
196
197commit 72a596d438f5ede05c59d733a05ba566a1259bcd
198Author: Daiki Ueno <ueno@unixuser.org>
199Date: Tue May 13 16:30:46 2014 +0900
200
201 rom-kana: Retain partial input when "convert-*" commands are called
202
203 Suggested by Masafumi Miura.
204
205 libkkc/rom-kana.vala | 14 +++++++++++---
206 tests/conversions-initial.json | 4 +++-
207 tests/lib/test-utils.vala | 3 +++
208 3 files changed, 17 insertions(+), 4 deletions(-)
209
210commit 5f38726532b8790e1320e1b35bc326439ef9cdb0
211Author: Daiki Ueno <ueno@unixuser.org>
212Date: Tue May 13 12:04:27 2014 +0900
213
214 rom-kana: Assign "ly<X>" to HIRAGANA SMALL LETTER <X>
215
216 Suggested by Masafumi Miura.
217
218 data/rules/default/rom-kana/default.json | 5 +++++
219 1 file changed, 5 insertions(+)
220
1commit 4859e8ab00b215d1cf6830a31cbb1abe8c0f06b1221commit 4859e8ab00b215d1cf6830a31cbb1abe8c0f06b1
2Author: Daiki Ueno <ueno@unixuser.org>222Author: Daiki Ueno <ueno@unixuser.org>
3Date: Tue Apr 1 18:17:33 2014 +0900223Date: Tue Apr 1 18:17:33 2014 +0900
4224
=== modified file 'Makefile.am'
--- Makefile.am 2014-02-26 22:51:39 +0000
+++ Makefile.am 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2011-2013 Red Hat, Inc.2# Copyright (C) 2011-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'Makefile.in'
--- Makefile.in 2014-02-26 22:51:39 +0000
+++ Makefile.in 2014-10-01 15:12:30 +0000
@@ -14,8 +14,8 @@
1414
15@SET_MAKE@15@SET_MAKE@
1616
17# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>17# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
18# Copyright (C) 2011-2013 Red Hat, Inc.18# Copyright (C) 2011-2014 Red Hat, Inc.
1919
20# This program is free software: you can redistribute it and/or modify20# This program is free software: you can redistribute it and/or modify
21# it under the terms of the GNU General Public License as published by21# it under the terms of the GNU General Public License as published by
2222
=== modified file 'README'
--- README 2014-02-26 22:51:39 +0000
+++ README 2014-10-01 15:12:30 +0000
@@ -46,8 +46,8 @@
4646
47GPLv3+47GPLv3+
4848
49Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>49Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
50Copyright (C) 2011-2013 Red Hat, Inc.50Copyright (C) 2011-2014 Red Hat, Inc.
5151
52This file is free software; as a special exception the author gives52This file is free software; as a special exception the author gives
53unlimited permission to copy and/or distribute it, with or without53unlimited permission to copy and/or distribute it, with or without
5454
=== modified file 'aclocal.m4'
--- aclocal.m4 2014-06-15 23:27:57 +0000
+++ aclocal.m4 2014-10-01 15:12:30 +0000
@@ -20,105 +20,8 @@
20If you have problems, you may need to regenerate the build system entirely.20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])])21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2222
23dnl -*- mode: autoconf -*-
24dnl Copyright 2009 Johan Dahlin
25dnl
26dnl This file is free software; the author(s) gives unlimited
27dnl permission to copy and/or distribute it, with or without
28dnl modifications, as long as this notice is preserved.
29dnl
30
31# serial 1
32
33m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
34[
35 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
36 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
37 AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
38
39 dnl enable/disable introspection
40 m4_if([$2], [require],
41 [dnl
42 enable_introspection=yes
43 ],[dnl
44 AC_ARG_ENABLE(introspection,
45 AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
46 [Enable introspection for this build]),,
47 [enable_introspection=auto])
48 ])dnl
49
50 AC_MSG_CHECKING([for gobject-introspection])
51
52 dnl presence/version checking
53 AS_CASE([$enable_introspection],
54 [no], [dnl
55 found_introspection="no (disabled, use --enable-introspection to enable)"
56 ],dnl
57 [yes],[dnl
58 PKG_CHECK_EXISTS([gobject-introspection-1.0],,
59 AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
60 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
61 found_introspection=yes,
62 AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
63 ],dnl
64 [auto],[dnl
65 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
66 dnl Canonicalize enable_introspection
67 enable_introspection=$found_introspection
68 ],dnl
69 [dnl
70 AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
71 ])dnl
72
73 AC_MSG_RESULT([$found_introspection])
74
75 INTROSPECTION_SCANNER=
76 INTROSPECTION_COMPILER=
77 INTROSPECTION_GENERATE=
78 INTROSPECTION_GIRDIR=
79 INTROSPECTION_TYPELIBDIR=
80 if test "x$found_introspection" = "xyes"; then
81 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
82 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
83 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
84 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
85 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
86 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
87 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
88 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
89 fi
90 AC_SUBST(INTROSPECTION_SCANNER)
91 AC_SUBST(INTROSPECTION_COMPILER)
92 AC_SUBST(INTROSPECTION_GENERATE)
93 AC_SUBST(INTROSPECTION_GIRDIR)
94 AC_SUBST(INTROSPECTION_TYPELIBDIR)
95 AC_SUBST(INTROSPECTION_CFLAGS)
96 AC_SUBST(INTROSPECTION_LIBS)
97 AC_SUBST(INTROSPECTION_MAKEFILE)
98
99 AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
100])
101
102
103dnl Usage:
104dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
105
106AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
107[
108 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
109])
110
111dnl Usage:
112dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
113
114
115AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
116[
117 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
118])
119
120# nls.m4 serial 5 (gettext-0.18)23# nls.m4 serial 5 (gettext-0.18)
121dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,24dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014 Free Software Foundation,
122dnl Inc.25dnl Inc.
123dnl This file is free software; the Free Software Foundation26dnl This file is free software; the Free Software Foundation
124dnl gives unlimited permission to copy and/or distribute it,27dnl gives unlimited permission to copy and/or distribute it,
@@ -365,6 +268,103 @@
365AS_VAR_IF([$1], [""], [$5], [$4])dnl268AS_VAR_IF([$1], [""], [$5], [$4])dnl
366])# PKG_CHECK_VAR269])# PKG_CHECK_VAR
367270
271dnl -*- mode: autoconf -*-
272dnl Copyright 2009 Johan Dahlin
273dnl
274dnl This file is free software; the author(s) gives unlimited
275dnl permission to copy and/or distribute it, with or without
276dnl modifications, as long as this notice is preserved.
277dnl
278
279# serial 1
280
281m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
282[
283 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
284 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
285 AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
286
287 dnl enable/disable introspection
288 m4_if([$2], [require],
289 [dnl
290 enable_introspection=yes
291 ],[dnl
292 AC_ARG_ENABLE(introspection,
293 AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
294 [Enable introspection for this build]),,
295 [enable_introspection=auto])
296 ])dnl
297
298 AC_MSG_CHECKING([for gobject-introspection])
299
300 dnl presence/version checking
301 AS_CASE([$enable_introspection],
302 [no], [dnl
303 found_introspection="no (disabled, use --enable-introspection to enable)"
304 ],dnl
305 [yes],[dnl
306 PKG_CHECK_EXISTS([gobject-introspection-1.0],,
307 AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
308 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
309 found_introspection=yes,
310 AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
311 ],dnl
312 [auto],[dnl
313 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
314 dnl Canonicalize enable_introspection
315 enable_introspection=$found_introspection
316 ],dnl
317 [dnl
318 AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
319 ])dnl
320
321 AC_MSG_RESULT([$found_introspection])
322
323 INTROSPECTION_SCANNER=
324 INTROSPECTION_COMPILER=
325 INTROSPECTION_GENERATE=
326 INTROSPECTION_GIRDIR=
327 INTROSPECTION_TYPELIBDIR=
328 if test "x$found_introspection" = "xyes"; then
329 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
330 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
331 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
332 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
333 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
334 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
335 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
336 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
337 fi
338 AC_SUBST(INTROSPECTION_SCANNER)
339 AC_SUBST(INTROSPECTION_COMPILER)
340 AC_SUBST(INTROSPECTION_GENERATE)
341 AC_SUBST(INTROSPECTION_GIRDIR)
342 AC_SUBST(INTROSPECTION_TYPELIBDIR)
343 AC_SUBST(INTROSPECTION_CFLAGS)
344 AC_SUBST(INTROSPECTION_LIBS)
345 AC_SUBST(INTROSPECTION_MAKEFILE)
346
347 AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
348])
349
350
351dnl Usage:
352dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
353
354AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
355[
356 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
357])
358
359dnl Usage:
360dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
361
362
363AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
364[
365 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
366])
367
368dnl vapigen.m4368dnl vapigen.m4
369dnl369dnl
370dnl Copyright 2012 Evan Nemerson370dnl Copyright 2012 Evan Nemerson
371371
=== modified file 'configure'
--- configure 2014-06-15 23:27:57 +0000
+++ configure 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1#! /bin/sh1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libkkc 0.3.3.3# Generated by GNU Autoconf 2.69 for libkkc 0.3.4.
4#4#
5# Report bugs to <ueno@gnu.org>.5# Report bugs to <ueno@gnu.org>.
6#6#
@@ -649,8 +649,8 @@
649# Identity of this package.649# Identity of this package.
650PACKAGE_NAME='libkkc'650PACKAGE_NAME='libkkc'
651PACKAGE_TARNAME='libkkc'651PACKAGE_TARNAME='libkkc'
652PACKAGE_VERSION='0.3.3'652PACKAGE_VERSION='0.3.4'
653PACKAGE_STRING='libkkc 0.3.3'653PACKAGE_STRING='libkkc 0.3.4'
654PACKAGE_BUGREPORT='ueno@gnu.org'654PACKAGE_BUGREPORT='ueno@gnu.org'
655PACKAGE_URL=''655PACKAGE_URL=''
656656
@@ -1501,7 +1501,7 @@
1501 # Omit some internal or obsolete options to make the list less imposing.1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.1502 # This message is too long to be a string in the A/UX 3.1 sh.
1503 cat <<_ACEOF1503 cat <<_ACEOF
1504\`configure' configures libkkc 0.3.3 to adapt to many kinds of systems.1504\`configure' configures libkkc 0.3.4 to adapt to many kinds of systems.
15051505
1506Usage: $0 [OPTION]... [VAR=VALUE]...1506Usage: $0 [OPTION]... [VAR=VALUE]...
15071507
@@ -1571,7 +1571,7 @@
15711571
1572if test -n "$ac_init_help"; then1572if test -n "$ac_init_help"; then
1573 case $ac_init_help in1573 case $ac_init_help in
1574 short | recursive ) echo "Configuration of libkkc 0.3.3:";;1574 short | recursive ) echo "Configuration of libkkc 0.3.4:";;
1575 esac1575 esac
1576 cat <<\_ACEOF1576 cat <<\_ACEOF
15771577
@@ -1712,7 +1712,7 @@
1712test -n "$ac_init_help" && exit $ac_status1712test -n "$ac_init_help" && exit $ac_status
1713if $ac_init_version; then1713if $ac_init_version; then
1714 cat <<\_ACEOF1714 cat <<\_ACEOF
1715libkkc configure 0.3.31715libkkc configure 0.3.4
1716generated by GNU Autoconf 2.691716generated by GNU Autoconf 2.69
17171717
1718Copyright (C) 2012 Free Software Foundation, Inc.1718Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2202,7 +2202,7 @@
2202This file contains any messages produced by compilers while2202This file contains any messages produced by compilers while
2203running configure, to aid debugging if configure makes a mistake.2203running configure, to aid debugging if configure makes a mistake.
22042204
2205It was created by libkkc $as_me 0.3.3, which was2205It was created by libkkc $as_me 0.3.4, which was
2206generated by GNU Autoconf 2.69. Invocation command line was2206generated by GNU Autoconf 2.69. Invocation command line was
22072207
2208 $ $0 $@2208 $ $0 $@
@@ -3080,7 +3080,7 @@
30803080
3081# Define the identity of the package.3081# Define the identity of the package.
3082 PACKAGE='libkkc'3082 PACKAGE='libkkc'
3083 VERSION='0.3.3'3083 VERSION='0.3.4'
30843084
30853085
3086cat >>confdefs.h <<_ACEOF3086cat >>confdefs.h <<_ACEOF
@@ -9390,10 +9390,10 @@
9390 x86_64-*linux*)9390 x86_64-*linux*)
9391 LD="${LD-ld} -m elf_i386"9391 LD="${LD-ld} -m elf_i386"
9392 ;;9392 ;;
9393 powerpcle-*linux*)9393 powerpc64le-*linux*)
9394 LD="${LD-ld} -m elf32lppclinux"9394 LD="${LD-ld} -m elf32lppclinux"
9395 ;;9395 ;;
9396 powerpc-*linux*)9396 powerpc64-*linux*)
9397 LD="${LD-ld} -m elf32ppclinux"9397 LD="${LD-ld} -m elf32ppclinux"
9398 ;;9398 ;;
9399 s390x-*linux*)9399 s390x-*linux*)
@@ -17679,12 +17679,12 @@
17679 pkg_cv_GEE_CFLAGS="$GEE_CFLAGS"17679 pkg_cv_GEE_CFLAGS="$GEE_CFLAGS"
17680 elif test -n "$PKG_CONFIG"; then17680 elif test -n "$PKG_CONFIG"; then
17681 if test -n "$PKG_CONFIG" && \17681 if test -n "$PKG_CONFIG" && \
17682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0\""; } >&517682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8\""; } >&5
17683 ($PKG_CONFIG --exists --print-errors "gee-1.0") 2>&517683 ($PKG_CONFIG --exists --print-errors "gee-0.8") 2>&5
17684 ac_status=$?17684 ac_status=$?
17685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&517685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17686 test $ac_status = 0; }; then17686 test $ac_status = 0; }; then
17687 pkg_cv_GEE_CFLAGS=`$PKG_CONFIG --cflags "gee-1.0" 2>/dev/null`17687 pkg_cv_GEE_CFLAGS=`$PKG_CONFIG --cflags "gee-0.8" 2>/dev/null`
17688 test "x$?" != "x0" && pkg_failed=yes17688 test "x$?" != "x0" && pkg_failed=yes
17689else17689else
17690 pkg_failed=yes17690 pkg_failed=yes
@@ -17696,12 +17696,12 @@
17696 pkg_cv_GEE_LIBS="$GEE_LIBS"17696 pkg_cv_GEE_LIBS="$GEE_LIBS"
17697 elif test -n "$PKG_CONFIG"; then17697 elif test -n "$PKG_CONFIG"; then
17698 if test -n "$PKG_CONFIG" && \17698 if test -n "$PKG_CONFIG" && \
17699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-1.0\""; } >&517699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gee-0.8\""; } >&5
17700 ($PKG_CONFIG --exists --print-errors "gee-1.0") 2>&517700 ($PKG_CONFIG --exists --print-errors "gee-0.8") 2>&5
17701 ac_status=$?17701 ac_status=$?
17702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&517702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17703 test $ac_status = 0; }; then17703 test $ac_status = 0; }; then
17704 pkg_cv_GEE_LIBS=`$PKG_CONFIG --libs "gee-1.0" 2>/dev/null`17704 pkg_cv_GEE_LIBS=`$PKG_CONFIG --libs "gee-0.8" 2>/dev/null`
17705 test "x$?" != "x0" && pkg_failed=yes17705 test "x$?" != "x0" && pkg_failed=yes
17706else17706else
17707 pkg_failed=yes17707 pkg_failed=yes
@@ -17722,18 +17722,18 @@
17722 _pkg_short_errors_supported=no17722 _pkg_short_errors_supported=no
17723fi17723fi
17724 if test $_pkg_short_errors_supported = yes; then17724 if test $_pkg_short_errors_supported = yes; then
17725 GEE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-1.0" 2>&1`17725 GEE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gee-0.8" 2>&1`
17726 else17726 else
17727 GEE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-1.0" 2>&1`17727 GEE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gee-0.8" 2>&1`
17728 fi17728 fi
17729 # Put the nasty error message in config.log where it belongs17729 # Put the nasty error message in config.log where it belongs
17730 echo "$GEE_PKG_ERRORS" >&517730 echo "$GEE_PKG_ERRORS" >&5
1773117731
17732 as_fn_error $? "can't find gee-1.0" "$LINENO" 517732 as_fn_error $? "can't find gee-0.8" "$LINENO" 5
17733elif test $pkg_failed = untried; then17733elif test $pkg_failed = untried; then
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&517734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17735$as_echo "no" >&6; }17735$as_echo "no" >&6; }
17736 as_fn_error $? "can't find gee-1.0" "$LINENO" 517736 as_fn_error $? "can't find gee-0.8" "$LINENO" 5
17737else17737else
17738 GEE_CFLAGS=$pkg_cv_GEE_CFLAGS17738 GEE_CFLAGS=$pkg_cv_GEE_CFLAGS
17739 GEE_LIBS=$pkg_cv_GEE_LIBS17739 GEE_LIBS=$pkg_cv_GEE_LIBS
@@ -19222,7 +19222,7 @@
19222# report actual input values of CONFIG_FILES etc. instead of their19222# report actual input values of CONFIG_FILES etc. instead of their
19223# values after options handling.19223# values after options handling.
19224ac_log="19224ac_log="
19225This file was extended by libkkc $as_me 0.3.3, which was19225This file was extended by libkkc $as_me 0.3.4, which was
19226generated by GNU Autoconf 2.69. Invocation command line was19226generated by GNU Autoconf 2.69. Invocation command line was
1922719227
19228 CONFIG_FILES = $CONFIG_FILES19228 CONFIG_FILES = $CONFIG_FILES
@@ -19288,7 +19288,7 @@
19288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=119288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19289ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"19289ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19290ac_cs_version="\\19290ac_cs_version="\\
19291libkkc config.status 0.3.319291libkkc config.status 0.3.4
19292configured by $0, generated by GNU Autoconf 2.69,19292configured by $0, generated by GNU Autoconf 2.69,
19293 with options \\"\$ac_cs_config\\"19293 with options \\"\$ac_cs_config\\"
1929419294
1929519295
=== modified file 'configure.ac'
--- configure.ac 2014-06-15 23:27:57 +0000
+++ configure.ac 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2012-2013 Red Hat, Inc.2# Copyright (C) 2012-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
17AC_PREREQ(2.63)17AC_PREREQ(2.63)
18AC_CONFIG_MACRO_DIR([m4])18AC_CONFIG_MACRO_DIR([m4])
1919
20AC_INIT([libkkc], [0.3.3], [ueno@gnu.org])20AC_INIT([libkkc], [0.3.4], [ueno@gnu.org])
2121
22KKC_API_VERSION=1.022KKC_API_VERSION=1.0
23KKC_API_MAJOR_VERSION=123KKC_API_MAJOR_VERSION=1
@@ -75,8 +75,8 @@
75 [AC_MSG_ERROR([can't find gio-2.0])])75 [AC_MSG_ERROR([can't find gio-2.0])])
7676
77# check gee77# check gee
78PKG_CHECK_MODULES([GEE], [gee-1.0], ,78PKG_CHECK_MODULES([GEE], [gee-0.8], ,
79 [AC_MSG_ERROR([can't find gee-1.0])])79 [AC_MSG_ERROR([can't find gee-0.8])])
8080
81# check json-glib81# check json-glib
82PKG_CHECK_MODULES([JSON_GLIB], [json-glib-1.0], ,82PKG_CHECK_MODULES([JSON_GLIB], [json-glib-1.0], ,
8383
=== modified file 'data/Makefile.am'
--- data/Makefile.am 2014-02-26 22:51:39 +0000
+++ data/Makefile.am 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2011-2013 Red Hat, Inc.2# Copyright (C) 2011-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'data/Makefile.in'
--- data/Makefile.in 2014-02-26 22:51:39 +0000
+++ data/Makefile.in 2014-10-01 15:12:30 +0000
@@ -14,8 +14,8 @@
1414
15@SET_MAKE@15@SET_MAKE@
1616
17# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>17# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
18# Copyright (C) 2011-2013 Red Hat, Inc.18# Copyright (C) 2011-2014 Red Hat, Inc.
1919
20# This program is free software: you can redistribute it and/or modify20# This program is free software: you can redistribute it and/or modify
21# it under the terms of the GNU General Public License as published by21# it under the terms of the GNU General Public License as published by
2222
=== modified file 'data/rules/Makefile.am'
--- data/rules/Makefile.am 2014-02-26 22:51:39 +0000
+++ data/rules/Makefile.am 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2011-2013 Red Hat, Inc.2# Copyright (C) 2011-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'data/rules/Makefile.in'
--- data/rules/Makefile.in 2014-02-26 22:51:39 +0000
+++ data/rules/Makefile.in 2014-10-01 15:12:30 +0000
@@ -14,8 +14,8 @@
1414
15@SET_MAKE@15@SET_MAKE@
1616
17# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>17# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
18# Copyright (C) 2011-2013 Red Hat, Inc.18# Copyright (C) 2011-2014 Red Hat, Inc.
1919
20# This program is free software: you can redistribute it and/or modify20# This program is free software: you can redistribute it and/or modify
21# it under the terms of the GNU General Public License as published by21# it under the terms of the GNU General Public License as published by
2222
=== modified file 'data/rules/README.rules'
--- data/rules/README.rules 2014-02-26 22:51:39 +0000
+++ data/rules/README.rules 2014-10-01 15:12:30 +0000
@@ -161,8 +161,8 @@
161for "xka" and "b.", and removes a mapping "dha" from the current map161for "xka" and "b.", and removes a mapping "dha" from the current map
162file.162file.
163163
164Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>164Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
165Copyright (C) 2011-2013 Red Hat, Inc.165Copyright (C) 2011-2014 Red Hat, Inc.
166166
167This file is free software; as a special exception the author gives167This file is free software; as a special exception the author gives
168unlimited permission to copy and/or distribute it, with or without168unlimited permission to copy and/or distribute it, with or without
169169
=== modified file 'data/rules/default/rom-kana/default.json'
--- data/rules/default/rom-kana/default.json 2014-02-26 22:51:39 +0000
+++ data/rules/default/rom-kana/default.json 2014-10-01 15:12:30 +0000
@@ -97,6 +97,11 @@
97 "lu": ["", "ぅ"],97 "lu": ["", "ぅ"],
98 "le": ["", "ぇ"],98 "le": ["", "ぇ"],
99 "lo": ["", "ぉ"],99 "lo": ["", "ぉ"],
100 "lya": ["", "ゃ"],
101 "lyi": ["", "ぃ"],
102 "lyu": ["", "ゅ"],
103 "lye": ["", "ぇ"],
104 "lyo": ["", "ょ"],
100 "kya": ["", "きゃ" ],105 "kya": ["", "きゃ" ],
101 "kye": ["", "きぇ" ],106 "kye": ["", "きぇ" ],
102 "kyi": ["", "きぃ" ],107 "kyi": ["", "きぃ" ],
103108
=== modified file 'data/templates/Makefile.am'
--- data/templates/Makefile.am 2014-02-26 22:51:39 +0000
+++ data/templates/Makefile.am 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2011-2013 Red Hat, Inc.2# Copyright (C) 2011-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'data/templates/Makefile.in'
--- data/templates/Makefile.in 2014-02-26 22:51:39 +0000
+++ data/templates/Makefile.in 2014-10-01 15:12:30 +0000
@@ -14,8 +14,8 @@
1414
15@SET_MAKE@15@SET_MAKE@
1616
17# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>17# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
18# Copyright (C) 2011-2013 Red Hat, Inc.18# Copyright (C) 2011-2014 Red Hat, Inc.
1919
20# This program is free software: you can redistribute it and/or modify20# This program is free software: you can redistribute it and/or modify
21# it under the terms of the GNU General Public License as published by21# it under the terms of the GNU General Public License as published by
2222
=== modified file 'data/templates/libkkc-data/Makefile.am'
--- data/templates/libkkc-data/Makefile.am 2014-02-26 22:51:39 +0000
+++ data/templates/libkkc-data/Makefile.am 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2011-2013 Red Hat, Inc.2# Copyright (C) 2011-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'data/templates/libkkc-data/configure.ac.in'
--- data/templates/libkkc-data/configure.ac.in 2014-02-26 22:51:39 +0000
+++ data/templates/libkkc-data/configure.ac.in 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2012-2013 Red Hat, Inc.2# Copyright (C) 2012-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'data/templates/libkkc-data/data/Makefile.am'
--- data/templates/libkkc-data/data/Makefile.am 2014-02-26 22:51:39 +0000
+++ data/templates/libkkc-data/data/Makefile.am 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2012-2013 Red Hat, Inc.2# Copyright (C) 2012-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'data/templates/libkkc-data/data/models/Makefile.sorted2'
--- data/templates/libkkc-data/data/models/Makefile.sorted2 2014-02-26 22:51:39 +0000
+++ data/templates/libkkc-data/data/models/Makefile.sorted2 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2012-2013 Red Hat, Inc.2# Copyright (C) 2012-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'data/templates/libkkc-data/data/models/Makefile.sorted3'
--- data/templates/libkkc-data/data/models/Makefile.sorted3 2014-02-26 22:51:39 +0000
+++ data/templates/libkkc-data/data/models/Makefile.sorted3 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2012-2013 Red Hat, Inc.2# Copyright (C) 2012-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'data/templates/libkkc-data/tools/Makefile.am'
--- data/templates/libkkc-data/tools/Makefile.am 2014-02-26 22:51:39 +0000
+++ data/templates/libkkc-data/tools/Makefile.am 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2011-2013 Red Hat, Inc.2# Copyright (C) 2011-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
66
=== modified file 'data/templates/libkkc-data/tools/genfilter.py'
--- data/templates/libkkc-data/tools/genfilter.py 2014-02-26 22:51:39 +0000
+++ data/templates/libkkc-data/tools/genfilter.py 2014-10-01 15:12:30 +0000
@@ -1,7 +1,7 @@
1#!/usr/bin/python1#!/usr/bin/python
22
3# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>3# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
4# Copyright (C) 2011-2013 Red Hat, Inc.4# Copyright (C) 2011-2014 Red Hat, Inc.
55
6# This program is free software: you can redistribute it and/or modify6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by7# it under the terms of the GNU General Public License as published by
88
=== modified file 'data/templates/libkkc-data/tools/sortlm.py'
--- data/templates/libkkc-data/tools/sortlm.py 2014-02-26 22:51:39 +0000
+++ data/templates/libkkc-data/tools/sortlm.py 2014-10-01 15:12:30 +0000
@@ -1,7 +1,7 @@
1#!/usr/bin/python1#!/usr/bin/python
22
3# Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>3# Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
4# Copyright (C) 2011-2013 Red Hat, Inc.4# Copyright (C) 2011-2014 Red Hat, Inc.
55
6# This program is free software: you can redistribute it and/or modify6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by7# it under the terms of the GNU General Public License as published by
88
=== modified file 'debian/changelog'
--- debian/changelog 2014-06-15 23:27:57 +0000
+++ debian/changelog 2014-10-01 15:12:30 +0000
@@ -1,3 +1,10 @@
1libkkc (0.3.4-0ubuntu1) utopic; urgency=medium
2
3 * New upstream release.
4 * Change Build-Depends from libgee-dev to libgee-0.8-dev (LP: #1374949)
5
6 -- Mitsuya Shibata <mty.shibata@gmail.com> Wed, 01 Oct 2014 23:33:01 +0900
7
1libkkc (0.3.3-1) unstable; urgency=medium8libkkc (0.3.3-1) unstable; urgency=medium
29
3 * New upstream release.10 * New upstream release.
411
=== modified file 'debian/control'
--- debian/control 2014-06-15 23:27:57 +0000
+++ debian/control 2014-10-01 15:12:30 +0000
@@ -1,13 +1,14 @@
1Source: libkkc1Source: libkkc
2Priority: extra2Priority: extra
3Maintainer: IME Packaging Team <pkg-ime-devel@lists.alioth.debian.org>3Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
4XSBC-Original-Maintainer: IME Packaging Team <pkg-ime-devel@lists.alioth.debian.org>
4Uploaders: Mitsuya Shibata <mty.shibata@gmail.com>,5Uploaders: Mitsuya Shibata <mty.shibata@gmail.com>,
5 Osamu Aoki <osamu@debian.org>6 Osamu Aoki <osamu@debian.org>
6Build-Depends: dh-autoreconf,7Build-Depends: dh-autoreconf,
7 debhelper (>= 9),8 debhelper (>= 9),
8 gobject-introspection,9 gobject-introspection,
9 intltool,10 intltool,
10 libgee-dev,11 libgee-0.8-dev,
11 libgirepository1.0-dev,12 libgirepository1.0-dev,
12 libglib2.0-dev,13 libglib2.0-dev,
13 libjson-glib-dev,14 libjson-glib-dev,
1415
=== modified file 'docs/Makefile.am'
--- docs/Makefile.am 2014-06-15 23:27:57 +0000
+++ docs/Makefile.am 2014-10-01 15:12:30 +0000
@@ -53,7 +53,7 @@
53 config \53 config \
54 glib-2.0 \54 glib-2.0 \
55 gio-2.0 \55 gio-2.0 \
56 gee-1.0 \56 gee-0.8 \
57 posix \57 posix \
58 json-glib-1.0 \58 json-glib-1.0 \
59 marisa-glib \59 marisa-glib \
6060
=== modified file 'docs/Makefile.in'
--- docs/Makefile.in 2014-06-15 23:27:57 +0000
+++ docs/Makefile.in 2014-10-01 15:12:30 +0000
@@ -385,7 +385,7 @@
385 config \385 config \
386 glib-2.0 \386 glib-2.0 \
387 gio-2.0 \387 gio-2.0 \
388 gee-1.0 \388 gee-0.8 \
389 posix \389 posix \
390 json-glib-1.0 \390 json-glib-1.0 \
391 marisa-glib \391 marisa-glib \
392392
=== modified file 'libkkc/Kkc-1.0.gir'
--- libkkc/Kkc-1.0.gir 2014-06-15 23:27:57 +0000
+++ libkkc/Kkc-1.0.gir 2014-10-01 15:12:30 +0000
@@ -3,7 +3,7 @@
3<include name="GObject" version="2.0"/>3<include name="GObject" version="2.0"/>
4<include name="Gio" version="2.0"/>4<include name="Gio" version="2.0"/>
5<include name="Json" version="1.0"/>5<include name="Json" version="1.0"/>
6<include name="Gee" version="1.0"/>6<include name="Gee" version="0.8"/>
7<package name="kkc-1.0"/>7<package name="kkc-1.0"/>
8<c:include name="libkkc/libkkc.h"/>8<c:include name="libkkc/libkkc.h"/>
9<namespace name="Kkc" version="1.0" c:prefix="Kkc">9<namespace name="Kkc" version="1.0" c:prefix="Kkc">
@@ -8592,7 +8592,7 @@
8592 <parameter name="type" transfer-ownership="none" allow-none="1">8592 <parameter name="type" transfer-ownership="none" allow-none="1">
8593 <type name="GObject.Type" c:type="GType*"/>8593 <type name="GObject.Type" c:type="GType*"/>
8594 </parameter>8594 </parameter>
8595 <parameter name="callback" transfer-ownership="none" closure="2">8595 <parameter name="callback" transfer-ownership="none" closure="2" scope="call">
8596 <type name="Kkc.DictionaryListDictionaryCallback" c:type="KkcDictionaryListDictionaryCallback"/>8596 <type name="Kkc.DictionaryListDictionaryCallback" c:type="KkcDictionaryListDictionaryCallback"/>
8597 </parameter>8597 </parameter>
8598 <parameter name="callback_target" transfer-ownership="none" allow-none="1">8598 <parameter name="callback_target" transfer-ownership="none" allow-none="1">
85998599
=== modified file 'libkkc/Makefile.am'
--- libkkc/Makefile.am 2014-06-15 23:27:57 +0000
+++ libkkc/Makefile.am 2014-10-01 15:12:30 +0000
@@ -1,5 +1,5 @@
1# Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>1# Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
2# Copyright (C) 2012-2013 Red Hat, Inc.2# Copyright (C) 2012-2014 Red Hat, Inc.
33
4# This program is free software: you can redistribute it and/or modify4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by5# it under the terms of the GNU General Public License as published by
@@ -31,7 +31,7 @@
31 --pkg keysyms \31 --pkg keysyms \
32 --pkg glib-2.0 \32 --pkg glib-2.0 \
33 --pkg gio-2.0 \33 --pkg gio-2.0 \
34 --pkg gee-1.0 \34 --pkg gee-0.8 \
35 --pkg json-glib-1.0 \35 --pkg json-glib-1.0 \
36 --pkg marisa-glib \36 --pkg marisa-glib \
37 --internal-vapi kkc-internals-@KKC_API_VERSION@.vapi \37 --internal-vapi kkc-internals-@KKC_API_VERSION@.vapi \
3838
=== modified file 'libkkc/Makefile.in'
--- libkkc/Makefile.in 2014-06-15 23:27:57 +0000
+++ libkkc/Makefile.in 2014-10-01 15:12:30 +0000
@@ -14,8 +14,8 @@
1414
15@SET_MAKE@15@SET_MAKE@
1616
17# Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>17# Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
18# Copyright (C) 2012-2013 Red Hat, Inc.18# Copyright (C) 2012-2014 Red Hat, Inc.
1919
20# This program is free software: you can redistribute it and/or modify20# This program is free software: you can redistribute it and/or modify
21# it under the terms of the GNU General Public License as published by21# it under the terms of the GNU General Public License as published by
@@ -485,7 +485,7 @@
485 --pkg keysyms \485 --pkg keysyms \
486 --pkg glib-2.0 \486 --pkg glib-2.0 \
487 --pkg gio-2.0 \487 --pkg gio-2.0 \
488 --pkg gee-1.0 \488 --pkg gee-0.8 \
489 --pkg json-glib-1.0 \489 --pkg json-glib-1.0 \
490 --pkg marisa-glib \490 --pkg marisa-glib \
491 --internal-vapi kkc-internals-@KKC_API_VERSION@.vapi \491 --internal-vapi kkc-internals-@KKC_API_VERSION@.vapi \
492492
=== modified file 'libkkc/bigram-decoder.c'
--- libkkc/bigram-decoder.c 2014-06-15 23:27:57 +0000
+++ libkkc/bigram-decoder.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* bigram-decoder.c generated by valac 0.22.1, the Vala compiler1/* bigram-decoder.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from bigram-decoder.vala, do not modify */2 * generated from bigram-decoder.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2012-2013 Red Hat, Inc.6 * Copyright (C) 2012-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -290,6 +290,7 @@
290KkcSegment* kkc_segment_construct (GType object_type, const gchar* input, const gchar* output);290KkcSegment* kkc_segment_construct (GType object_type, const gchar* input, const gchar* output);
291static gboolean _kkc_language_model_entry_equal (const KkcLanguageModelEntry* s1, const KkcLanguageModelEntry* s2);291static gboolean _kkc_language_model_entry_equal (const KkcLanguageModelEntry* s1, const KkcLanguageModelEntry* s2);
292static gint kkc_bigram_decoder_compare_nbest_node (KkcNbestNode* a, KkcNbestNode* b);292static gint kkc_bigram_decoder_compare_nbest_node (KkcNbestNode* a, KkcNbestNode* b);
293static gint _kkc_bigram_decoder_compare_nbest_node_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self);
293static gchar* kkc_bigram_decoder_concat_nbest_node_outputs (KkcBigramDecoder* self, KkcNbestNode* nbest_node);294static gchar* kkc_bigram_decoder_concat_nbest_node_outputs (KkcBigramDecoder* self, KkcNbestNode* nbest_node);
294guint kkc_trellis_node_get_endpos (KkcTrellisNode* self);295guint kkc_trellis_node_get_endpos (KkcTrellisNode* self);
295const gchar* kkc_trellis_node_get_output (KkcTrellisNode* self);296const gchar* kkc_trellis_node_get_output (KkcTrellisNode* self);
@@ -438,15 +439,13 @@
438439
439static void kkc_nbest_node_class_init (KkcNbestNodeClass * klass) {440static void kkc_nbest_node_class_init (KkcNbestNodeClass * klass) {
440 kkc_nbest_node_parent_class = g_type_class_peek_parent (klass);441 kkc_nbest_node_parent_class = g_type_class_peek_parent (klass);
441 KKC_NBEST_NODE_CLASS (klass)->finalize = kkc_nbest_node_finalize;442 ((KkcNbestNodeClass *) klass)->finalize = kkc_nbest_node_finalize;
442}443}
443444
444445
445static void kkc_nbest_node_instance_init (KkcNbestNode * self) {446static void kkc_nbest_node_instance_init (KkcNbestNode * self) {
446 gdouble _tmp0_ = 0.0;
447 self->gn = 0.0;447 self->gn = 0.0;
448 _tmp0_ = DBL_MAX;448 self->fn = DBL_MAX;
449 self->fn = _tmp0_;
450 self->ref_count = 1;449 self->ref_count = 1;
451}450}
452451
@@ -454,6 +453,7 @@
454static void kkc_nbest_node_finalize (KkcNbestNode* obj) {453static void kkc_nbest_node_finalize (KkcNbestNode* obj) {
455 KkcNbestNode * self;454 KkcNbestNode * self;
456 self = G_TYPE_CHECK_INSTANCE_CAST (obj, KKC_TYPE_NBEST_NODE, KkcNbestNode);455 self = G_TYPE_CHECK_INSTANCE_CAST (obj, KKC_TYPE_NBEST_NODE, KkcNbestNode);
456 g_signal_handlers_destroy (self);
457 _kkc_trellis_node_unref0 (self->node);457 _kkc_trellis_node_unref0 (self->node);
458 _kkc_nbest_node_unref0 (self->next);458 _kkc_nbest_node_unref0 (self->next);
459}459}
@@ -498,27 +498,23 @@
498 gint _tmp1_ = 0;498 gint _tmp1_ = 0;
499 gint* _tmp2_ = NULL;499 gint* _tmp2_ = NULL;
500 gint _tmp2__length1 = 0;500 gint _tmp2__length1 = 0;
501 gdouble _tmp3_ = 0.0;501 gint _tmp3_ = 0;
502 gdouble _tmp4_ = 0.0;502 KkcSegment** _tmp4_ = NULL;
503 gint _tmp5_ = 0;503 KkcSegment** _tmp5_ = NULL;
504 KkcSegment** _tmp6_ = NULL;504 gint _tmp5__length1 = 0;
505 KkcSegment** _tmp7_ = NULL;
506 gint _tmp7__length1 = 0;
507 self = (KkcBigramDecoder*) base;505 self = (KkcBigramDecoder*) base;
508 g_return_val_if_fail (input != NULL, NULL);506 g_return_val_if_fail (input != NULL, NULL);
509 _tmp0_ = input;507 _tmp0_ = input;
510 _tmp1_ = nbest;508 _tmp1_ = nbest;
511 _tmp2_ = constraint;509 _tmp2_ = constraint;
512 _tmp2__length1 = constraint_length1;510 _tmp2__length1 = constraint_length1;
513 _tmp3_ = DBL_MAX;511 _tmp4_ = kkc_decoder_decode_with_costs ((KkcDecoder*) self, _tmp0_, _tmp1_, _tmp2_, _tmp2__length1, DBL_MAX, -DBL_MAX, &_tmp3_);
514 _tmp4_ = DBL_MAX;512 _tmp5_ = _tmp4_;
515 _tmp6_ = kkc_decoder_decode_with_costs ((KkcDecoder*) self, _tmp0_, _tmp1_, _tmp2_, _tmp2__length1, _tmp3_, -_tmp4_, &_tmp5_);513 _tmp5__length1 = _tmp3_;
516 _tmp7_ = _tmp6_;
517 _tmp7__length1 = _tmp5_;
518 if (result_length1) {514 if (result_length1) {
519 *result_length1 = _tmp7__length1;515 *result_length1 = _tmp5__length1;
520 }516 }
521 result = _tmp7_;517 result = _tmp5_;
522 return result;518 return result;
523}519}
524520
@@ -552,8 +548,8 @@
552 KkcSegment** _tmp14_ = NULL;548 KkcSegment** _tmp14_ = NULL;
553 gint segments_length1 = 0;549 gint segments_length1 = 0;
554 gint _segments_size_ = 0;550 gint _segments_size_ = 0;
555 KkcSegment** _tmp23_ = NULL;551 KkcSegment** _tmp22_ = NULL;
556 gint _tmp23__length1 = 0;552 gint _tmp22__length1 = 0;
557 self = (KkcBigramDecoder*) base;553 self = (KkcBigramDecoder*) base;
558 g_return_val_if_fail (input != NULL, NULL);554 g_return_val_if_fail (input != NULL, NULL);
559 _tmp0_ = input;555 _tmp0_ = input;
@@ -589,41 +585,39 @@
589 gboolean _tmp15_ = FALSE;585 gboolean _tmp15_ = FALSE;
590 _tmp15_ = TRUE;586 _tmp15_ = TRUE;
591 while (TRUE) {587 while (TRUE) {
592 gboolean _tmp16_ = FALSE;588 gint _tmp17_ = 0;
593 gint _tmp18_ = 0;589 GeeArrayList** _tmp18_ = NULL;
590 gint _tmp18__length1 = 0;
594 GeeArrayList** _tmp19_ = NULL;591 GeeArrayList** _tmp19_ = NULL;
595 gint _tmp19__length1 = 0;592 gint _tmp19__length1 = 0;
596 GeeArrayList** _tmp20_ = NULL;593 gint _tmp20_ = 0;
597 gint _tmp20__length1 = 0;594 GeeArrayList* _tmp21_ = NULL;
598 gint _tmp21_ = 0;595 if (!_tmp15_) {
599 GeeArrayList* _tmp22_ = NULL;596 gint _tmp16_ = 0;
600 _tmp16_ = _tmp15_;597 _tmp16_ = i;
601 if (!_tmp16_) {598 i = _tmp16_ + 1;
602 gint _tmp17_ = 0;
603 _tmp17_ = i;
604 i = _tmp17_ + 1;
605 }599 }
606 _tmp15_ = FALSE;600 _tmp15_ = FALSE;
607 _tmp18_ = i;601 _tmp17_ = i;
602 _tmp18_ = trellis;
603 _tmp18__length1 = trellis_length1;
604 if (!(_tmp17_ < _tmp18__length1)) {
605 break;
606 }
608 _tmp19_ = trellis;607 _tmp19_ = trellis;
609 _tmp19__length1 = trellis_length1;608 _tmp19__length1 = trellis_length1;
610 if (!(_tmp18_ < _tmp19__length1)) {609 _tmp20_ = i;
611 break;610 _tmp21_ = _tmp19_[_tmp20_];
612 }611 gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp21_);
613 _tmp20_ = trellis;
614 _tmp20__length1 = trellis_length1;
615 _tmp21_ = i;
616 _tmp22_ = _tmp20_[_tmp21_];
617 gee_abstract_collection_clear ((GeeAbstractCollection*) _tmp22_);
618 }612 }
619 }613 }
620 }614 }
621 _tmp23_ = segments;615 _tmp22_ = segments;
622 _tmp23__length1 = segments_length1;616 _tmp22__length1 = segments_length1;
623 if (result_length1) {617 if (result_length1) {
624 *result_length1 = _tmp23__length1;618 *result_length1 = _tmp22__length1;
625 }619 }
626 result = _tmp23_;620 result = _tmp22_;
627 trellis = (_vala_array_free (trellis, trellis_length1, (GDestroyNotify) g_object_unref), NULL);621 trellis = (_vala_array_free (trellis, trellis_length1, (GDestroyNotify) g_object_unref), NULL);
628 return result;622 return result;
629}623}
@@ -674,15 +668,14 @@
674 glong string_length = 0L;668 glong string_length = 0L;
675 gboolean _tmp0_ = FALSE;669 gboolean _tmp0_ = FALSE;
676 glong _tmp1_ = 0L;670 glong _tmp1_ = 0L;
677 gboolean _tmp3_ = FALSE;671 glong _tmp8_ = 0L;
678 glong _tmp9_ = 0L;672 glong _tmp14_ = 0L;
679 glong _tmp15_ = 0L;673 glong _tmp17_ = 0L;
680 glong _tmp18_ = 0L;674 glong _tmp18_ = 0L;
681 glong _tmp19_ = 0L;675 glong _tmp19_ = 0L;
682 glong _tmp20_ = 0L;676 glong _tmp20_ = 0L;
683 glong _tmp21_ = 0L;677 glong _tmp21_ = 0L;
684 glong _tmp22_ = 0L;678 gchar* _tmp22_ = NULL;
685 gchar* _tmp23_ = NULL;
686 g_return_val_if_fail (self != NULL, NULL);679 g_return_val_if_fail (self != NULL, NULL);
687 _tmp1_ = offset;680 _tmp1_ = offset;
688 if (_tmp1_ >= ((glong) 0)) {681 if (_tmp1_ >= ((glong) 0)) {
@@ -692,55 +685,54 @@
692 } else {685 } else {
693 _tmp0_ = FALSE;686 _tmp0_ = FALSE;
694 }687 }
695 _tmp3_ = _tmp0_;688 if (_tmp0_) {
696 if (_tmp3_) {689 glong _tmp3_ = 0L;
697 glong _tmp4_ = 0L;690 glong _tmp4_ = 0L;
698 glong _tmp5_ = 0L;691 glong _tmp5_ = 0L;
699 glong _tmp6_ = 0L;692 _tmp3_ = offset;
700 _tmp4_ = offset;693 _tmp4_ = len;
701 _tmp5_ = len;694 _tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
702 _tmp6_ = string_strnlen ((gchar*) self, _tmp4_ + _tmp5_);695 string_length = _tmp5_;
703 string_length = _tmp6_;
704 } else {696 } else {
697 gint _tmp6_ = 0;
705 gint _tmp7_ = 0;698 gint _tmp7_ = 0;
706 gint _tmp8_ = 0;699 _tmp6_ = strlen (self);
707 _tmp7_ = strlen (self);700 _tmp7_ = _tmp6_;
708 _tmp8_ = _tmp7_;701 string_length = (glong) _tmp7_;
709 string_length = (glong) _tmp8_;
710 }702 }
711 _tmp9_ = offset;703 _tmp8_ = offset;
712 if (_tmp9_ < ((glong) 0)) {704 if (_tmp8_ < ((glong) 0)) {
705 glong _tmp9_ = 0L;
713 glong _tmp10_ = 0L;706 glong _tmp10_ = 0L;
714 glong _tmp11_ = 0L;707 glong _tmp11_ = 0L;
708 _tmp9_ = string_length;
709 _tmp10_ = offset;
710 offset = _tmp9_ + _tmp10_;
711 _tmp11_ = offset;
712 g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
713 } else {
715 glong _tmp12_ = 0L;714 glong _tmp12_ = 0L;
716 _tmp10_ = string_length;715 glong _tmp13_ = 0L;
717 _tmp11_ = offset;
718 offset = _tmp10_ + _tmp11_;
719 _tmp12_ = offset;716 _tmp12_ = offset;
720 g_return_val_if_fail (_tmp12_ >= ((glong) 0), NULL);717 _tmp13_ = string_length;
721 } else {718 g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
722 glong _tmp13_ = 0L;
723 glong _tmp14_ = 0L;
724 _tmp13_ = offset;
725 _tmp14_ = string_length;
726 g_return_val_if_fail (_tmp13_ <= _tmp14_, NULL);
727 }719 }
728 _tmp15_ = len;720 _tmp14_ = len;
729 if (_tmp15_ < ((glong) 0)) {721 if (_tmp14_ < ((glong) 0)) {
722 glong _tmp15_ = 0L;
730 glong _tmp16_ = 0L;723 glong _tmp16_ = 0L;
731 glong _tmp17_ = 0L;724 _tmp15_ = string_length;
732 _tmp16_ = string_length;725 _tmp16_ = offset;
733 _tmp17_ = offset;726 len = _tmp15_ - _tmp16_;
734 len = _tmp16_ - _tmp17_;
735 }727 }
736 _tmp18_ = offset;728 _tmp17_ = offset;
737 _tmp19_ = len;729 _tmp18_ = len;
738 _tmp20_ = string_length;730 _tmp19_ = string_length;
739 g_return_val_if_fail ((_tmp18_ + _tmp19_) <= _tmp20_, NULL);731 g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
740 _tmp21_ = offset;732 _tmp20_ = offset;
741 _tmp22_ = len;733 _tmp21_ = len;
742 _tmp23_ = g_strndup (((gchar*) self) + _tmp21_, (gsize) _tmp22_);734 _tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
743 result = _tmp23_;735 result = _tmp22_;
744 return result;736 return result;
745}737}
746738
@@ -755,145 +747,139 @@
755 gboolean _tmp0_ = FALSE;747 gboolean _tmp0_ = FALSE;
756 _tmp0_ = TRUE;748 _tmp0_ = TRUE;
757 while (TRUE) {749 while (TRUE) {
758 gboolean _tmp1_ = FALSE;750 gint _tmp2_ = 0;
759 gint _tmp3_ = 0;751 GeeArrayList** _tmp3_ = NULL;
760 GeeArrayList** _tmp4_ = NULL;752 gint _tmp3__length1 = 0;
761 gint _tmp4__length1 = 0;753 if (!_tmp0_) {
762 _tmp1_ = _tmp0_;754 gint _tmp1_ = 0;
763 if (!_tmp1_) {755 _tmp1_ = i;
764 gint _tmp2_ = 0;756 i = _tmp1_ + 1;
765 _tmp2_ = i;
766 i = _tmp2_ + 1;
767 }757 }
768 _tmp0_ = FALSE;758 _tmp0_ = FALSE;
769 _tmp3_ = i;759 _tmp2_ = i;
770 _tmp4_ = trellis;760 _tmp3_ = trellis;
771 _tmp4__length1 = trellis_length1;761 _tmp3__length1 = trellis_length1;
772 if (!(_tmp3_ < _tmp4__length1)) {762 if (!(_tmp2_ < _tmp3__length1)) {
773 break;763 break;
774 }764 }
775 {765 {
776 gint j = 0;766 gint j = 0;
777 gint _tmp5_ = 0;767 gint _tmp4_ = 0;
778 _tmp5_ = i;768 _tmp4_ = i;
779 j = _tmp5_;769 j = _tmp4_;
780 {770 {
781 gboolean _tmp6_ = FALSE;771 gboolean _tmp5_ = FALSE;
782 _tmp6_ = TRUE;772 _tmp5_ = TRUE;
783 while (TRUE) {773 while (TRUE) {
784 gboolean _tmp7_ = FALSE;774 gboolean _tmp7_ = FALSE;
785 gboolean _tmp9_ = FALSE;775 gint _tmp8_ = 0;
786 gint _tmp10_ = 0;776 GeeArrayList** _tmp9_ = NULL;
787 GeeArrayList** _tmp11_ = NULL;777 gint _tmp9__length1 = 0;
788 gint _tmp11__length1 = 0;778 gint* _tmp15_ = NULL;
789 gboolean _tmp17_ = FALSE;779 gint _tmp15__length1 = 0;
790 gint* _tmp18_ = NULL;780 gint _tmp16_ = 0;
791 gint _tmp18__length1 = 0;781 gint _tmp17_ = 0;
792 gint _tmp19_ = 0;782 gboolean _tmp18_ = FALSE;
783 glong offset = 0L;
784 const gchar* _tmp19_ = NULL;
793 gint _tmp20_ = 0;785 gint _tmp20_ = 0;
794 gboolean _tmp21_ = FALSE;786 gint _tmp21_ = 0;
795 glong offset = 0L;787 glong length = 0L;
796 const gchar* _tmp22_ = NULL;788 const gchar* _tmp22_ = NULL;
797 gint _tmp23_ = 0;789 gint _tmp23_ = 0;
798 gint _tmp24_ = 0;790 gint _tmp24_ = 0;
799 glong length = 0L;791 glong _tmp25_ = 0L;
800 const gchar* _tmp25_ = NULL;792 gchar* _input = NULL;
801 gint _tmp26_ = 0;793 const gchar* _tmp26_ = NULL;
802 gint _tmp27_ = 0;794 glong _tmp27_ = 0L;
803 glong _tmp28_ = 0L;795 glong _tmp28_ = 0L;
804 gchar* _input = NULL;796 gchar* _tmp29_ = NULL;
805 const gchar* _tmp29_ = NULL;
806 glong _tmp30_ = 0L;
807 glong _tmp31_ = 0L;
808 gchar* _tmp32_ = NULL;
809 KkcLanguageModelEntry entry = {0};797 KkcLanguageModelEntry entry = {0};
810 const gchar* _tmp33_ = NULL;798 const gchar* _tmp30_ = NULL;
811 gchar* _tmp34_ = NULL;799 gchar* _tmp31_ = NULL;
812 const gchar* _tmp35_ = NULL;800 const gchar* _tmp32_ = NULL;
813 gchar* _tmp36_ = NULL;801 gchar* _tmp33_ = NULL;
814 KkcLanguageModelEntry _tmp37_ = {0};802 KkcLanguageModelEntry _tmp34_ = {0};
815 KkcUnigramTrellisNode* node = NULL;803 KkcUnigramTrellisNode* node = NULL;
816 KkcLanguageModelEntry _tmp38_ = {0};804 KkcLanguageModelEntry _tmp35_ = {0};
805 gint _tmp36_ = 0;
806 KkcUnigramTrellisNode* _tmp37_ = NULL;
807 GeeArrayList** _tmp38_ = NULL;
808 gint _tmp38__length1 = 0;
817 gint _tmp39_ = 0;809 gint _tmp39_ = 0;
818 KkcUnigramTrellisNode* _tmp40_ = NULL;810 GeeArrayList* _tmp40_ = NULL;
819 GeeArrayList** _tmp41_ = NULL;811 KkcUnigramTrellisNode* _tmp41_ = NULL;
820 gint _tmp41__length1 = 0;812 if (!_tmp5_) {
821 gint _tmp42_ = 0;813 gint _tmp6_ = 0;
822 GeeArrayList* _tmp43_ = NULL;814 _tmp6_ = j;
823 KkcUnigramTrellisNode* _tmp44_ = NULL;815 j = _tmp6_ + 1;
824 _tmp7_ = _tmp6_;816 }
817 _tmp5_ = FALSE;
818 _tmp8_ = j;
819 _tmp9_ = trellis;
820 _tmp9__length1 = trellis_length1;
821 if (_tmp8_ < _tmp9__length1) {
822 GeeArrayList** _tmp10_ = NULL;
823 gint _tmp10__length1 = 0;
824 gint _tmp11_ = 0;
825 GeeArrayList* _tmp12_ = NULL;
826 gboolean _tmp13_ = FALSE;
827 gboolean _tmp14_ = FALSE;
828 _tmp10_ = trellis;
829 _tmp10__length1 = trellis_length1;
830 _tmp11_ = j;
831 _tmp12_ = _tmp10_[_tmp11_];
832 _tmp13_ = gee_collection_get_is_empty ((GeeCollection*) _tmp12_);
833 _tmp14_ = _tmp13_;
834 _tmp7_ = _tmp14_;
835 } else {
836 _tmp7_ = FALSE;
837 }
825 if (!_tmp7_) {838 if (!_tmp7_) {
826 gint _tmp8_ = 0;
827 _tmp8_ = j;
828 j = _tmp8_ + 1;
829 }
830 _tmp6_ = FALSE;
831 _tmp10_ = j;
832 _tmp11_ = trellis;
833 _tmp11__length1 = trellis_length1;
834 if (_tmp10_ < _tmp11__length1) {
835 GeeArrayList** _tmp12_ = NULL;
836 gint _tmp12__length1 = 0;
837 gint _tmp13_ = 0;
838 GeeArrayList* _tmp14_ = NULL;
839 gboolean _tmp15_ = FALSE;
840 gboolean _tmp16_ = FALSE;
841 _tmp12_ = trellis;
842 _tmp12__length1 = trellis_length1;
843 _tmp13_ = j;
844 _tmp14_ = _tmp12_[_tmp13_];
845 _tmp15_ = gee_abstract_collection_get_is_empty ((GeeAbstractCollection*) _tmp14_);
846 _tmp16_ = _tmp15_;
847 _tmp9_ = _tmp16_;
848 } else {
849 _tmp9_ = FALSE;
850 }
851 _tmp17_ = _tmp9_;
852 if (!_tmp17_) {
853 break;839 break;
854 }840 }
855 _tmp18_ = constraint;841 _tmp15_ = constraint;
856 _tmp18__length1 = constraint_length1;842 _tmp15__length1 = constraint_length1;
857 _tmp19_ = i;843 _tmp16_ = i;
858 _tmp20_ = j;844 _tmp17_ = j;
859 _tmp21_ = kkc_bigram_decoder_check_overlaps (self, _tmp18_, _tmp18__length1, _tmp19_, _tmp20_);845 _tmp18_ = kkc_bigram_decoder_check_overlaps (self, _tmp15_, _tmp15__length1, _tmp16_, _tmp17_);
860 if (!_tmp21_) {846 if (!_tmp18_) {
861 continue;847 continue;
862 }848 }
849 _tmp19_ = input;
850 _tmp20_ = i;
851 _tmp21_ = string_index_of_nth_char (_tmp19_, (glong) (_tmp20_ - 1));
852 offset = (glong) _tmp21_;
863 _tmp22_ = input;853 _tmp22_ = input;
864 _tmp23_ = i;854 _tmp23_ = j;
865 _tmp24_ = string_index_of_nth_char (_tmp22_, (glong) (_tmp23_ - 1));855 _tmp24_ = string_index_of_nth_char (_tmp22_, (glong) _tmp23_);
866 offset = (glong) _tmp24_;856 _tmp25_ = offset;
867 _tmp25_ = input;857 length = _tmp24_ - _tmp25_;
868 _tmp26_ = j;858 _tmp26_ = input;
869 _tmp27_ = string_index_of_nth_char (_tmp25_, (glong) _tmp26_);859 _tmp27_ = offset;
870 _tmp28_ = offset;860 _tmp28_ = length;
871 length = _tmp27_ - _tmp28_;861 _tmp29_ = string_substring (_tmp26_, _tmp27_, _tmp28_);
872 _tmp29_ = input;862 _input = _tmp29_;
873 _tmp30_ = offset;863 _tmp30_ = _input;
874 _tmp31_ = length;864 _tmp31_ = g_strdup (_tmp30_);
875 _tmp32_ = string_substring (_tmp29_, _tmp30_, _tmp31_);865 _tmp32_ = _input;
876 _input = _tmp32_;866 _tmp33_ = g_strdup (_tmp32_);
877 _tmp33_ = _input;867 _g_free0 (_tmp34_.input);
878 _tmp34_ = g_strdup (_tmp33_);868 _tmp34_.input = _tmp31_;
879 _tmp35_ = _input;869 _g_free0 (_tmp34_.output);
880 _tmp36_ = g_strdup (_tmp35_);870 _tmp34_.output = _tmp33_;
881 _g_free0 (_tmp37_.input);871 _tmp34_.id = (guint) 2;
882 _tmp37_.input = _tmp34_;872 entry = _tmp34_;
883 _g_free0 (_tmp37_.output);873 _tmp35_ = entry;
884 _tmp37_.output = _tmp36_;874 _tmp36_ = j;
885 _tmp37_.id = (guint) 2;875 _tmp37_ = kkc_unigram_trellis_node_new (&_tmp35_, (guint) _tmp36_);
886 entry = _tmp37_;876 node = _tmp37_;
887 _tmp38_ = entry;877 _tmp38_ = trellis;
878 _tmp38__length1 = trellis_length1;
888 _tmp39_ = j;879 _tmp39_ = j;
889 _tmp40_ = kkc_unigram_trellis_node_new (&_tmp38_, (guint) _tmp39_);880 _tmp40_ = _tmp38_[_tmp39_];
890 node = _tmp40_;881 _tmp41_ = node;
891 _tmp41_ = trellis;882 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp40_, (KkcTrellisNode*) _tmp41_);
892 _tmp41__length1 = trellis_length1;
893 _tmp42_ = j;
894 _tmp43_ = _tmp41_[_tmp42_];
895 _tmp44_ = node;
896 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp43_, (KkcTrellisNode*) _tmp44_);
897 _kkc_trellis_node_unref0 (node);883 _kkc_trellis_node_unref0 (node);
898 kkc_language_model_entry_destroy (&entry);884 kkc_language_model_entry_destroy (&entry);
899 _g_free0 (_input);885 _g_free0 (_input);
@@ -917,29 +903,29 @@
917 gint trellis_length1 = 0;903 gint trellis_length1 = 0;
918 gint _trellis_size_ = 0;904 gint _trellis_size_ = 0;
919 KkcUnigramTrellisNode* bos_node = NULL;905 KkcUnigramTrellisNode* bos_node = NULL;
906 KkcBigramLanguageModel* _tmp12_ = NULL;
920 KkcBigramLanguageModel* _tmp13_ = NULL;907 KkcBigramLanguageModel* _tmp13_ = NULL;
921 KkcBigramLanguageModel* _tmp14_ = NULL;908 KkcLanguageModelEntry _tmp14_ = {0};
922 KkcLanguageModelEntry _tmp15_ = {0};909 KkcLanguageModelEntry _tmp15_ = {0};
923 KkcLanguageModelEntry _tmp16_ = {0};910 KkcUnigramTrellisNode* _tmp16_ = NULL;
924 KkcUnigramTrellisNode* _tmp17_ = NULL;911 GeeArrayList** _tmp17_ = NULL;
925 GeeArrayList** _tmp18_ = NULL;912 gint _tmp17__length1 = 0;
926 gint _tmp18__length1 = 0;913 GeeArrayList* _tmp18_ = NULL;
927 GeeArrayList* _tmp19_ = NULL;914 KkcUnigramTrellisNode* _tmp19_ = NULL;
928 KkcUnigramTrellisNode* _tmp20_ = NULL;
929 KkcUnigramTrellisNode* eos_node = NULL;915 KkcUnigramTrellisNode* eos_node = NULL;
916 KkcBigramLanguageModel* _tmp20_ = NULL;
930 KkcBigramLanguageModel* _tmp21_ = NULL;917 KkcBigramLanguageModel* _tmp21_ = NULL;
931 KkcBigramLanguageModel* _tmp22_ = NULL;918 KkcLanguageModelEntry _tmp22_ = {0};
932 KkcLanguageModelEntry _tmp23_ = {0};919 KkcLanguageModelEntry _tmp23_ = {0};
933 KkcLanguageModelEntry _tmp24_ = {0};920 gint _tmp24_ = 0;
934 gint _tmp25_ = 0;921 KkcUnigramTrellisNode* _tmp25_ = NULL;
935 KkcUnigramTrellisNode* _tmp26_ = NULL;922 GeeArrayList** _tmp26_ = NULL;
936 GeeArrayList** _tmp27_ = NULL;923 gint _tmp26__length1 = 0;
937 gint _tmp27__length1 = 0;924 gint _tmp27_ = 0;
938 gint _tmp28_ = 0;925 GeeArrayList* _tmp28_ = NULL;
939 GeeArrayList* _tmp29_ = NULL;926 KkcUnigramTrellisNode* _tmp29_ = NULL;
940 KkcUnigramTrellisNode* _tmp30_ = NULL;927 GeeArrayList** _tmp66_ = NULL;
941 GeeArrayList** _tmp68_ = NULL;928 gint _tmp66__length1 = 0;
942 gint _tmp68__length1 = 0;
943 g_return_val_if_fail (self != NULL, NULL);929 g_return_val_if_fail (self != NULL, NULL);
944 g_return_val_if_fail (input != NULL, NULL);930 g_return_val_if_fail (input != NULL, NULL);
945 _tmp0_ = input;931 _tmp0_ = input;
@@ -957,176 +943,172 @@
957 gboolean _tmp4_ = FALSE;943 gboolean _tmp4_ = FALSE;
958 _tmp4_ = TRUE;944 _tmp4_ = TRUE;
959 while (TRUE) {945 while (TRUE) {
960 gboolean _tmp5_ = FALSE;946 gint _tmp6_ = 0;
961 gint _tmp7_ = 0;947 GeeArrayList** _tmp7_ = NULL;
948 gint _tmp7__length1 = 0;
962 GeeArrayList** _tmp8_ = NULL;949 GeeArrayList** _tmp8_ = NULL;
963 gint _tmp8__length1 = 0;950 gint _tmp8__length1 = 0;
964 GeeArrayList** _tmp9_ = NULL;951 gint _tmp9_ = 0;
965 gint _tmp9__length1 = 0;952 GeeArrayList* _tmp10_ = NULL;
966 gint _tmp10_ = 0;
967 GeeArrayList* _tmp11_ = NULL;953 GeeArrayList* _tmp11_ = NULL;
968 GeeArrayList* _tmp12_ = NULL;954 if (!_tmp4_) {
969 _tmp5_ = _tmp4_;955 gint _tmp5_ = 0;
970 if (!_tmp5_) {956 _tmp5_ = i;
971 gint _tmp6_ = 0;957 i = _tmp5_ + 1;
972 _tmp6_ = i;
973 i = _tmp6_ + 1;
974 }958 }
975 _tmp4_ = FALSE;959 _tmp4_ = FALSE;
976 _tmp7_ = i;960 _tmp6_ = i;
961 _tmp7_ = trellis;
962 _tmp7__length1 = trellis_length1;
963 if (!(_tmp6_ < _tmp7__length1)) {
964 break;
965 }
977 _tmp8_ = trellis;966 _tmp8_ = trellis;
978 _tmp8__length1 = trellis_length1;967 _tmp8__length1 = trellis_length1;
979 if (!(_tmp7_ < _tmp8__length1)) {968 _tmp9_ = i;
980 break;969 _tmp10_ = gee_array_list_new (KKC_TYPE_TRELLIS_NODE, (GBoxedCopyFunc) kkc_trellis_node_ref, kkc_trellis_node_unref, NULL, NULL, NULL);
981 }970 _g_object_unref0 (_tmp8_[_tmp9_]);
982 _tmp9_ = trellis;971 _tmp8_[_tmp9_] = _tmp10_;
983 _tmp9__length1 = trellis_length1;972 _tmp11_ = _tmp8_[_tmp9_];
984 _tmp10_ = i;
985 _tmp11_ = gee_array_list_new (KKC_TYPE_TRELLIS_NODE, (GBoxedCopyFunc) kkc_trellis_node_ref, kkc_trellis_node_unref, NULL);
986 _g_object_unref0 (_tmp9_[_tmp10_]);
987 _tmp9_[_tmp10_] = _tmp11_;
988 _tmp12_ = _tmp9_[_tmp10_];
989 }973 }
990 }974 }
991 }975 }
992 _tmp13_ = kkc_bigram_decoder_get_model (self);976 _tmp12_ = kkc_bigram_decoder_get_model (self);
993 _tmp14_ = _tmp13_;977 _tmp13_ = _tmp12_;
994 kkc_language_model_get_bos ((KkcLanguageModel*) _tmp14_, &_tmp15_);978 kkc_language_model_get_bos ((KkcLanguageModel*) _tmp13_, &_tmp14_);
995 _tmp16_ = _tmp15_;979 _tmp15_ = _tmp14_;
996 _tmp17_ = kkc_unigram_trellis_node_new (&_tmp16_, (guint) 1);980 _tmp16_ = kkc_unigram_trellis_node_new (&_tmp15_, (guint) 1);
997 bos_node = _tmp17_;981 bos_node = _tmp16_;
998 _tmp18_ = trellis;982 _tmp17_ = trellis;
999 _tmp18__length1 = trellis_length1;983 _tmp17__length1 = trellis_length1;
1000 _tmp19_ = _tmp18_[0];984 _tmp18_ = _tmp17_[0];
1001 _tmp20_ = bos_node;985 _tmp19_ = bos_node;
1002 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp19_, (KkcTrellisNode*) _tmp20_);986 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp18_, (KkcTrellisNode*) _tmp19_);
1003 _tmp21_ = kkc_bigram_decoder_get_model (self);987 _tmp20_ = kkc_bigram_decoder_get_model (self);
1004 _tmp22_ = _tmp21_;988 _tmp21_ = _tmp20_;
1005 kkc_language_model_get_eos ((KkcLanguageModel*) _tmp22_, &_tmp23_);989 kkc_language_model_get_eos ((KkcLanguageModel*) _tmp21_, &_tmp22_);
1006 _tmp24_ = _tmp23_;990 _tmp23_ = _tmp22_;
1007 _tmp25_ = length;991 _tmp24_ = length;
1008 _tmp26_ = kkc_unigram_trellis_node_new (&_tmp24_, (guint) (_tmp25_ + 1));992 _tmp25_ = kkc_unigram_trellis_node_new (&_tmp23_, (guint) (_tmp24_ + 1));
1009 eos_node = _tmp26_;993 eos_node = _tmp25_;
1010 _tmp27_ = trellis;994 _tmp26_ = trellis;
1011 _tmp27__length1 = trellis_length1;995 _tmp26__length1 = trellis_length1;
1012 _tmp28_ = length;996 _tmp27_ = length;
1013 _tmp29_ = _tmp27_[_tmp28_ + 1];997 _tmp28_ = _tmp26_[_tmp27_ + 1];
1014 _tmp30_ = eos_node;998 _tmp29_ = eos_node;
1015 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp29_, (KkcTrellisNode*) _tmp30_);999 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp28_, (KkcTrellisNode*) _tmp29_);
1016 {1000 {
1017 gint i = 0;1001 gint i = 0;
1018 i = 0;1002 i = 0;
1019 {1003 {
1020 gboolean _tmp31_ = FALSE;1004 gboolean _tmp30_ = FALSE;
1021 _tmp31_ = TRUE;1005 _tmp30_ = TRUE;
1022 while (TRUE) {1006 while (TRUE) {
1023 gboolean _tmp32_ = FALSE;1007 gint _tmp32_ = 0;
1024 gint _tmp34_ = 0;1008 gint _tmp33_ = 0;
1009 glong byte_offset = 0L;
1010 const gchar* _tmp34_ = NULL;
1025 gint _tmp35_ = 0;1011 gint _tmp35_ = 0;
1026 glong byte_offset = 0L;1012 gint _tmp36_ = 0;
1027 const gchar* _tmp36_ = NULL;
1028 gint _tmp37_ = 0;
1029 gint _tmp38_ = 0;
1030 gchar* _input = NULL;1013 gchar* _input = NULL;
1031 const gchar* _tmp39_ = NULL;1014 const gchar* _tmp37_ = NULL;
1032 glong _tmp40_ = 0L;1015 glong _tmp38_ = 0L;
1033 gchar* _tmp41_ = NULL;1016 gchar* _tmp39_ = NULL;
1034 GeeCollection* entries = NULL;1017 GeeCollection* entries = NULL;
1035 KkcBigramLanguageModel* _tmp42_ = NULL;1018 KkcBigramLanguageModel* _tmp40_ = NULL;
1036 KkcBigramLanguageModel* _tmp43_ = NULL;1019 KkcBigramLanguageModel* _tmp41_ = NULL;
1037 const gchar* _tmp44_ = NULL;1020 const gchar* _tmp42_ = NULL;
1038 GeeCollection* _tmp45_ = NULL;1021 GeeCollection* _tmp43_ = NULL;
1039 _tmp32_ = _tmp31_;1022 if (!_tmp30_) {
1040 if (!_tmp32_) {1023 gint _tmp31_ = 0;
1041 gint _tmp33_ = 0;1024 _tmp31_ = i;
1042 _tmp33_ = i;1025 i = _tmp31_ + 1;
1043 i = _tmp33_ + 1;
1044 }1026 }
1045 _tmp31_ = FALSE;1027 _tmp30_ = FALSE;
1046 _tmp34_ = i;1028 _tmp32_ = i;
1047 _tmp35_ = length;1029 _tmp33_ = length;
1048 if (!(_tmp34_ < _tmp35_)) {1030 if (!(_tmp32_ < _tmp33_)) {
1049 break;1031 break;
1050 }1032 }
1051 _tmp36_ = input;1033 _tmp34_ = input;
1052 _tmp37_ = i;1034 _tmp35_ = i;
1053 _tmp38_ = string_index_of_nth_char (_tmp36_, (glong) _tmp37_);1035 _tmp36_ = string_index_of_nth_char (_tmp34_, (glong) _tmp35_);
1054 byte_offset = (glong) _tmp38_;1036 byte_offset = (glong) _tmp36_;
1055 _tmp39_ = input;1037 _tmp37_ = input;
1056 _tmp40_ = byte_offset;1038 _tmp38_ = byte_offset;
1057 _tmp41_ = string_substring (_tmp39_, _tmp40_, (glong) (-1));1039 _tmp39_ = string_substring (_tmp37_, _tmp38_, (glong) (-1));
1058 _input = _tmp41_;1040 _input = _tmp39_;
1059 _tmp42_ = kkc_bigram_decoder_get_model (self);1041 _tmp40_ = kkc_bigram_decoder_get_model (self);
1060 _tmp43_ = _tmp42_;1042 _tmp41_ = _tmp40_;
1061 _tmp44_ = _input;1043 _tmp42_ = _input;
1062 _tmp45_ = kkc_language_model_entries ((KkcLanguageModel*) _tmp43_, _tmp44_);1044 _tmp43_ = kkc_language_model_entries ((KkcLanguageModel*) _tmp41_, _tmp42_);
1063 entries = _tmp45_;1045 entries = _tmp43_;
1064 {1046 {
1065 GeeIterator* _entry_it = NULL;1047 GeeIterator* _entry_it = NULL;
1066 GeeCollection* _tmp46_ = NULL;1048 GeeCollection* _tmp44_ = NULL;
1067 GeeIterator* _tmp47_ = NULL;1049 GeeIterator* _tmp45_ = NULL;
1068 _tmp46_ = entries;1050 _tmp44_ = entries;
1069 _tmp47_ = gee_iterable_iterator ((GeeIterable*) _tmp46_);1051 _tmp45_ = gee_iterable_iterator ((GeeIterable*) _tmp44_);
1070 _entry_it = _tmp47_;1052 _entry_it = _tmp45_;
1071 while (TRUE) {1053 while (TRUE) {
1054 GeeIterator* _tmp46_ = NULL;
1055 gboolean _tmp47_ = FALSE;
1056 KkcLanguageModelEntry* entry = NULL;
1072 GeeIterator* _tmp48_ = NULL;1057 GeeIterator* _tmp48_ = NULL;
1073 gboolean _tmp49_ = FALSE;1058 gpointer _tmp49_ = NULL;
1074 KkcLanguageModelEntry* entry = NULL;
1075 GeeIterator* _tmp50_ = NULL;
1076 gpointer _tmp51_ = NULL;
1077 gint j = 0;1059 gint j = 0;
1078 gint _tmp52_ = 0;1060 gint _tmp50_ = 0;
1079 KkcLanguageModelEntry* _tmp53_ = NULL;1061 KkcLanguageModelEntry* _tmp51_ = NULL;
1080 const gchar* _tmp54_ = NULL;1062 const gchar* _tmp52_ = NULL;
1063 gint _tmp53_ = 0;
1064 gint* _tmp54_ = NULL;
1065 gint _tmp54__length1 = 0;
1081 gint _tmp55_ = 0;1066 gint _tmp55_ = 0;
1082 gint* _tmp56_ = NULL;1067 gint _tmp56_ = 0;
1083 gint _tmp56__length1 = 0;1068 gboolean _tmp57_ = FALSE;
1084 gint _tmp57_ = 0;
1085 gint _tmp58_ = 0;
1086 gboolean _tmp59_ = FALSE;
1087 KkcUnigramTrellisNode* node = NULL;1069 KkcUnigramTrellisNode* node = NULL;
1088 KkcLanguageModelEntry* _tmp60_ = NULL;1070 KkcLanguageModelEntry* _tmp58_ = NULL;
1089 gint _tmp61_ = 0;1071 gint _tmp59_ = 0;
1090 KkcLanguageModelEntry _tmp62_ = {0};1072 KkcLanguageModelEntry _tmp60_ = {0};
1091 KkcUnigramTrellisNode* _tmp63_ = NULL;1073 KkcUnigramTrellisNode* _tmp61_ = NULL;
1092 GeeArrayList** _tmp64_ = NULL;1074 GeeArrayList** _tmp62_ = NULL;
1093 gint _tmp64__length1 = 0;1075 gint _tmp62__length1 = 0;
1094 gint _tmp65_ = 0;1076 gint _tmp63_ = 0;
1095 GeeArrayList* _tmp66_ = NULL;1077 GeeArrayList* _tmp64_ = NULL;
1096 KkcUnigramTrellisNode* _tmp67_ = NULL;1078 KkcUnigramTrellisNode* _tmp65_ = NULL;
1079 _tmp46_ = _entry_it;
1080 _tmp47_ = gee_iterator_next (_tmp46_);
1081 if (!_tmp47_) {
1082 break;
1083 }
1097 _tmp48_ = _entry_it;1084 _tmp48_ = _entry_it;
1098 _tmp49_ = gee_iterator_next (_tmp48_);1085 _tmp49_ = gee_iterator_get (_tmp48_);
1099 if (!_tmp49_) {1086 entry = (KkcLanguageModelEntry*) _tmp49_;
1100 break;1087 _tmp50_ = i;
1101 }1088 _tmp51_ = entry;
1102 _tmp50_ = _entry_it;1089 _tmp52_ = (*_tmp51_).input;
1103 _tmp51_ = gee_iterator_get (_tmp50_);1090 _tmp53_ = g_utf8_strlen (_tmp52_, (gssize) (-1));
1104 entry = (KkcLanguageModelEntry*) _tmp51_;1091 j = _tmp50_ + _tmp53_;
1105 _tmp52_ = i;1092 _tmp54_ = constraint;
1106 _tmp53_ = entry;1093 _tmp54__length1 = constraint_length1;
1107 _tmp54_ = (*_tmp53_).input;1094 _tmp55_ = i;
1108 _tmp55_ = g_utf8_strlen (_tmp54_, (gssize) (-1));1095 _tmp56_ = j;
1109 j = _tmp52_ + _tmp55_;1096 _tmp57_ = kkc_bigram_decoder_check_constraint (self, _tmp54_, _tmp54__length1, _tmp55_, _tmp56_);
1110 _tmp56_ = constraint;1097 if (!_tmp57_) {
1111 _tmp56__length1 = constraint_length1;
1112 _tmp57_ = i;
1113 _tmp58_ = j;
1114 _tmp59_ = kkc_bigram_decoder_check_constraint (self, _tmp56_, _tmp56__length1, _tmp57_, _tmp58_);
1115 if (!_tmp59_) {
1116 _kkc_language_model_entry_free0 (entry);1098 _kkc_language_model_entry_free0 (entry);
1117 continue;1099 continue;
1118 }1100 }
1119 _tmp60_ = entry;1101 _tmp58_ = entry;
1120 _tmp61_ = j;1102 _tmp59_ = j;
1121 _tmp62_ = *_tmp60_;1103 _tmp60_ = *_tmp58_;
1122 _tmp63_ = kkc_unigram_trellis_node_new (&_tmp62_, (guint) _tmp61_);1104 _tmp61_ = kkc_unigram_trellis_node_new (&_tmp60_, (guint) _tmp59_);
1123 node = _tmp63_;1105 node = _tmp61_;
1124 _tmp64_ = trellis;1106 _tmp62_ = trellis;
1125 _tmp64__length1 = trellis_length1;1107 _tmp62__length1 = trellis_length1;
1126 _tmp65_ = j;1108 _tmp63_ = j;
1127 _tmp66_ = _tmp64_[_tmp65_];1109 _tmp64_ = _tmp62_[_tmp63_];
1128 _tmp67_ = node;1110 _tmp65_ = node;
1129 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp66_, (KkcTrellisNode*) _tmp67_);1111 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp64_, (KkcTrellisNode*) _tmp65_);
1130 _kkc_trellis_node_unref0 (node);1112 _kkc_trellis_node_unref0 (node);
1131 _kkc_language_model_entry_free0 (entry);1113 _kkc_language_model_entry_free0 (entry);
1132 }1114 }
@@ -1137,12 +1119,12 @@
1137 }1119 }
1138 }1120 }
1139 }1121 }
1140 _tmp68_ = trellis;1122 _tmp66_ = trellis;
1141 _tmp68__length1 = trellis_length1;1123 _tmp66__length1 = trellis_length1;
1142 if (result_length1) {1124 if (result_length1) {
1143 *result_length1 = _tmp68__length1;1125 *result_length1 = _tmp66__length1;
1144 }1126 }
1145 result = _tmp68_;1127 result = _tmp66_;
1146 _kkc_trellis_node_unref0 (eos_node);1128 _kkc_trellis_node_unref0 (eos_node);
1147 _kkc_trellis_node_unref0 (bos_node);1129 _kkc_trellis_node_unref0 (bos_node);
1148 return result;1130 return result;
@@ -1154,8 +1136,8 @@
1154 gint last_c = 0;1136 gint last_c = 0;
1155 gint* _tmp0_ = NULL;1137 gint* _tmp0_ = NULL;
1156 gint _tmp0__length1 = 0;1138 gint _tmp0__length1 = 0;
1139 gint _tmp7_ = 0;
1157 gint _tmp8_ = 0;1140 gint _tmp8_ = 0;
1158 gint _tmp9_ = 0;
1159 g_return_val_if_fail (self != NULL, FALSE);1141 g_return_val_if_fail (self != NULL, FALSE);
1160 last_c = 0;1142 last_c = 0;
1161 _tmp0_ = constraint;1143 _tmp0_ = constraint;
@@ -1174,8 +1156,7 @@
1174 gboolean _tmp1_ = FALSE;1156 gboolean _tmp1_ = FALSE;
1175 gint _tmp2_ = 0;1157 gint _tmp2_ = 0;
1176 gint _tmp3_ = 0;1158 gint _tmp3_ = 0;
1177 gboolean _tmp6_ = FALSE;1159 gint _tmp6_ = 0;
1178 gint _tmp7_ = 0;
1179 _tmp2_ = i;1160 _tmp2_ = i;
1180 _tmp3_ = last_c;1161 _tmp3_ = last_c;
1181 if (_tmp2_ == _tmp3_) {1162 if (_tmp2_ == _tmp3_) {
@@ -1187,19 +1168,18 @@
1187 } else {1168 } else {
1188 _tmp1_ = FALSE;1169 _tmp1_ = FALSE;
1189 }1170 }
1190 _tmp6_ = _tmp1_;1171 if (_tmp1_) {
1191 if (_tmp6_) {
1192 result = TRUE;1172 result = TRUE;
1193 return result;1173 return result;
1194 }1174 }
1195 _tmp7_ = c;1175 _tmp6_ = c;
1196 last_c = _tmp7_;1176 last_c = _tmp6_;
1197 }1177 }
1198 }1178 }
1199 }1179 }
1200 _tmp8_ = i;1180 _tmp7_ = i;
1201 _tmp9_ = last_c;1181 _tmp8_ = last_c;
1202 result = _tmp8_ >= _tmp9_;1182 result = _tmp7_ >= _tmp8_;
1203 return result;1183 return result;
1204}1184}
12051185
@@ -1209,8 +1189,8 @@
1209 gint last_c = 0;1189 gint last_c = 0;
1210 gint* _tmp0_ = NULL;1190 gint* _tmp0_ = NULL;
1211 gint _tmp0__length1 = 0;1191 gint _tmp0__length1 = 0;
1212 gint _tmp16_ = 0;1192 gint _tmp13_ = 0;
1213 gint _tmp17_ = 0;1193 gint _tmp14_ = 0;
1214 g_return_val_if_fail (self != NULL, FALSE);1194 g_return_val_if_fail (self != NULL, FALSE);
1215 last_c = 0;1195 last_c = 0;
1216 _tmp0_ = constraint;1196 _tmp0_ = constraint;
@@ -1230,9 +1210,7 @@
1230 gboolean _tmp2_ = FALSE;1210 gboolean _tmp2_ = FALSE;
1231 gint _tmp3_ = 0;1211 gint _tmp3_ = 0;
1232 gint _tmp4_ = 0;1212 gint _tmp4_ = 0;
1233 gboolean _tmp7_ = FALSE;1213 gint _tmp12_ = 0;
1234 gboolean _tmp14_ = FALSE;
1235 gint _tmp15_ = 0;
1236 _tmp3_ = last_c;1214 _tmp3_ = last_c;
1237 _tmp4_ = i;1215 _tmp4_ = i;
1238 if (_tmp3_ <= _tmp4_) {1216 if (_tmp3_ <= _tmp4_) {
@@ -1244,41 +1222,37 @@
1244 } else {1222 } else {
1245 _tmp2_ = FALSE;1223 _tmp2_ = FALSE;
1246 }1224 }
1247 _tmp7_ = _tmp2_;1225 if (_tmp2_) {
1248 if (_tmp7_) {1226 gboolean _tmp7_ = FALSE;
1249 gboolean _tmp8_ = FALSE;1227 gint _tmp8_ = 0;
1250 gint _tmp9_ = 0;1228 gint _tmp9_ = 0;
1251 gint _tmp10_ = 0;1229 _tmp8_ = last_c;
1252 gboolean _tmp13_ = FALSE;1230 _tmp9_ = j;
1253 _tmp9_ = last_c;1231 if (_tmp8_ <= _tmp9_) {
1254 _tmp10_ = j;1232 gint _tmp10_ = 0;
1255 if (_tmp9_ <= _tmp10_) {
1256 gint _tmp11_ = 0;1233 gint _tmp11_ = 0;
1257 gint _tmp12_ = 0;1234 _tmp10_ = j;
1258 _tmp11_ = j;1235 _tmp11_ = c;
1259 _tmp12_ = c;1236 _tmp7_ = _tmp10_ <= _tmp11_;
1260 _tmp8_ = _tmp11_ <= _tmp12_;
1261 } else {1237 } else {
1262 _tmp8_ = FALSE;1238 _tmp7_ = FALSE;
1263 }1239 }
1264 _tmp13_ = _tmp8_;1240 _tmp1_ = _tmp7_;
1265 _tmp1_ = _tmp13_;
1266 } else {1241 } else {
1267 _tmp1_ = FALSE;1242 _tmp1_ = FALSE;
1268 }1243 }
1269 _tmp14_ = _tmp1_;1244 if (_tmp1_) {
1270 if (_tmp14_) {
1271 result = TRUE;1245 result = TRUE;
1272 return result;1246 return result;
1273 }1247 }
1274 _tmp15_ = c;1248 _tmp12_ = c;
1275 last_c = _tmp15_;1249 last_c = _tmp12_;
1276 }1250 }
1277 }1251 }
1278 }1252 }
1279 _tmp16_ = i;1253 _tmp13_ = i;
1280 _tmp17_ = last_c;1254 _tmp14_ = last_c;
1281 result = _tmp16_ >= _tmp17_;1255 result = _tmp13_ >= _tmp14_;
1282 return result;1256 return result;
1283}1257}
12841258
@@ -1298,191 +1272,187 @@
1298 gboolean _tmp0_ = FALSE;1272 gboolean _tmp0_ = FALSE;
1299 _tmp0_ = TRUE;1273 _tmp0_ = TRUE;
1300 while (TRUE) {1274 while (TRUE) {
1301 gboolean _tmp1_ = FALSE;1275 gint _tmp2_ = 0;
1302 gint _tmp3_ = 0;1276 GeeArrayList** _tmp3_ = NULL;
1303 GeeArrayList** _tmp4_ = NULL;1277 gint _tmp3__length1 = 0;
1304 gint _tmp4__length1 = 0;1278 if (!_tmp0_) {
1305 _tmp1_ = _tmp0_;1279 gint _tmp1_ = 0;
1306 if (!_tmp1_) {1280 _tmp1_ = i;
1307 gint _tmp2_ = 0;1281 i = _tmp1_ + 1;
1308 _tmp2_ = i;
1309 i = _tmp2_ + 1;
1310 }1282 }
1311 _tmp0_ = FALSE;1283 _tmp0_ = FALSE;
1312 _tmp3_ = i;1284 _tmp2_ = i;
1313 _tmp4_ = trellis;1285 _tmp3_ = trellis;
1314 _tmp4__length1 = trellis_length1;1286 _tmp3__length1 = trellis_length1;
1315 if (!(_tmp3_ < _tmp4__length1)) {1287 if (!(_tmp2_ < _tmp3__length1)) {
1316 break;1288 break;
1317 }1289 }
1318 {1290 {
1319 GeeArrayList* _node_list = NULL;1291 GeeArrayList* _node_list = NULL;
1320 GeeArrayList** _tmp5_ = NULL;1292 GeeArrayList** _tmp4_ = NULL;
1321 gint _tmp5__length1 = 0;1293 gint _tmp4__length1 = 0;
1322 gint _tmp6_ = 0;1294 gint _tmp5_ = 0;
1295 GeeArrayList* _tmp6_ = NULL;
1323 GeeArrayList* _tmp7_ = NULL;1296 GeeArrayList* _tmp7_ = NULL;
1297 gint _node_size = 0;
1324 GeeArrayList* _tmp8_ = NULL;1298 GeeArrayList* _tmp8_ = NULL;
1325 gint _node_size = 0;1299 gint _tmp9_ = 0;
1326 GeeArrayList* _tmp9_ = NULL;
1327 gint _tmp10_ = 0;1300 gint _tmp10_ = 0;
1328 gint _tmp11_ = 0;
1329 gint _node_index = 0;1301 gint _node_index = 0;
1330 _tmp5_ = trellis;1302 _tmp4_ = trellis;
1331 _tmp5__length1 = trellis_length1;1303 _tmp4__length1 = trellis_length1;
1332 _tmp6_ = i;1304 _tmp5_ = i;
1333 _tmp7_ = _tmp5_[_tmp6_];1305 _tmp6_ = _tmp4_[_tmp5_];
1334 _tmp8_ = _g_object_ref0 (_tmp7_);1306 _tmp7_ = _g_object_ref0 (_tmp6_);
1335 _node_list = _tmp8_;1307 _node_list = _tmp7_;
1336 _tmp9_ = _node_list;1308 _tmp8_ = _node_list;
1337 _tmp10_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp9_);1309 _tmp9_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp8_);
1338 _tmp11_ = _tmp10_;1310 _tmp10_ = _tmp9_;
1339 _node_size = _tmp11_;1311 _node_size = _tmp10_;
1340 _node_index = -1;1312 _node_index = -1;
1341 while (TRUE) {1313 while (TRUE) {
1314 gint _tmp11_ = 0;
1342 gint _tmp12_ = 0;1315 gint _tmp12_ = 0;
1343 gint _tmp13_ = 0;1316 gint _tmp13_ = 0;
1344 gint _tmp14_ = 0;
1345 KkcTrellisNode* node = NULL;1317 KkcTrellisNode* node = NULL;
1346 GeeArrayList* _tmp15_ = NULL;1318 GeeArrayList* _tmp14_ = NULL;
1347 gint _tmp16_ = 0;1319 gint _tmp15_ = 0;
1348 gpointer _tmp17_ = NULL;1320 gpointer _tmp16_ = NULL;
1349 gint j = 0;1321 gint j = 0;
1350 gint _tmp18_ = 0;1322 gint _tmp17_ = 0;
1351 KkcTrellisNode* _tmp19_ = NULL;1323 KkcTrellisNode* _tmp18_ = NULL;
1324 guint _tmp19_ = 0U;
1352 guint _tmp20_ = 0U;1325 guint _tmp20_ = 0U;
1353 guint _tmp21_ = 0U;1326 gint _tmp21_ = 0;
1354 gint _tmp22_ = 0;
1355 gdouble max_cost = 0.0;1327 gdouble max_cost = 0.0;
1356 gdouble _tmp23_ = 0.0;
1357 KkcTrellisNode* max_pnode = NULL;1328 KkcTrellisNode* max_pnode = NULL;
1358 KkcTrellisNode* _tmp48_ = NULL;1329 KkcTrellisNode* _tmp46_ = NULL;
1330 KkcTrellisNode* _tmp51_ = NULL;
1331 gdouble _tmp52_ = 0.0;
1359 KkcTrellisNode* _tmp53_ = NULL;1332 KkcTrellisNode* _tmp53_ = NULL;
1360 gdouble _tmp54_ = 0.0;1333 KkcTrellisNode* _tmp54_ = NULL;
1361 KkcTrellisNode* _tmp55_ = NULL;1334 KkcTrellisNode* _tmp55_ = NULL;
1362 KkcTrellisNode* _tmp56_ = NULL;1335 _tmp11_ = _node_index;
1363 KkcTrellisNode* _tmp57_ = NULL;1336 _node_index = _tmp11_ + 1;
1364 _tmp12_ = _node_index;1337 _tmp12_ = _node_index;
1365 _node_index = _tmp12_ + 1;1338 _tmp13_ = _node_size;
1366 _tmp13_ = _node_index;1339 if (!(_tmp12_ < _tmp13_)) {
1367 _tmp14_ = _node_size;
1368 if (!(_tmp13_ < _tmp14_)) {
1369 break;1340 break;
1370 }1341 }
1371 _tmp15_ = _node_list;1342 _tmp14_ = _node_list;
1372 _tmp16_ = _node_index;1343 _tmp15_ = _node_index;
1373 _tmp17_ = gee_abstract_list_get ((GeeAbstractList*) _tmp15_, _tmp16_);1344 _tmp16_ = gee_abstract_list_get ((GeeAbstractList*) _tmp14_, _tmp15_);
1374 node = (KkcTrellisNode*) _tmp17_;1345 node = (KkcTrellisNode*) _tmp16_;
1375 _tmp18_ = i;1346 _tmp17_ = i;
1376 _tmp19_ = node;1347 _tmp18_ = node;
1377 _tmp20_ = kkc_trellis_node_get_length (_tmp19_);1348 _tmp19_ = kkc_trellis_node_get_length (_tmp18_);
1378 _tmp21_ = _tmp20_;1349 _tmp20_ = _tmp19_;
1379 j = _tmp18_ - ((gint) _tmp21_);1350 j = _tmp17_ - ((gint) _tmp20_);
1380 _tmp22_ = j;1351 _tmp21_ = j;
1381 if (_tmp22_ < 0) {1352 if (_tmp21_ < 0) {
1382 _kkc_trellis_node_unref0 (node);1353 _kkc_trellis_node_unref0 (node);
1383 continue;1354 continue;
1384 }1355 }
1385 _tmp23_ = DBL_MAX;1356 max_cost = -DBL_MAX;
1386 max_cost = -_tmp23_;
1387 max_pnode = NULL;1357 max_pnode = NULL;
1388 {1358 {
1389 GeeArrayList* _pnode_list = NULL;1359 GeeArrayList* _pnode_list = NULL;
1390 GeeArrayList** _tmp24_ = NULL;1360 GeeArrayList** _tmp22_ = NULL;
1391 gint _tmp24__length1 = 0;1361 gint _tmp22__length1 = 0;
1392 gint _tmp25_ = 0;1362 gint _tmp23_ = 0;
1363 GeeArrayList* _tmp24_ = NULL;
1364 GeeArrayList* _tmp25_ = NULL;
1365 gint _pnode_size = 0;
1393 GeeArrayList* _tmp26_ = NULL;1366 GeeArrayList* _tmp26_ = NULL;
1394 GeeArrayList* _tmp27_ = NULL;1367 gint _tmp27_ = 0;
1395 gint _pnode_size = 0;1368 gint _tmp28_ = 0;
1396 GeeArrayList* _tmp28_ = NULL;
1397 gint _tmp29_ = 0;
1398 gint _tmp30_ = 0;
1399 gint _pnode_index = 0;1369 gint _pnode_index = 0;
1400 _tmp24_ = trellis;1370 _tmp22_ = trellis;
1401 _tmp24__length1 = trellis_length1;1371 _tmp22__length1 = trellis_length1;
1402 _tmp25_ = j;1372 _tmp23_ = j;
1403 _tmp26_ = _tmp24_[_tmp25_];1373 _tmp24_ = _tmp22_[_tmp23_];
1404 _tmp27_ = _g_object_ref0 (_tmp26_);1374 _tmp25_ = _g_object_ref0 (_tmp24_);
1405 _pnode_list = _tmp27_;1375 _pnode_list = _tmp25_;
1406 _tmp28_ = _pnode_list;1376 _tmp26_ = _pnode_list;
1407 _tmp29_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp28_);1377 _tmp27_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp26_);
1408 _tmp30_ = _tmp29_;1378 _tmp28_ = _tmp27_;
1409 _pnode_size = _tmp30_;1379 _pnode_size = _tmp28_;
1410 _pnode_index = -1;1380 _pnode_index = -1;
1411 while (TRUE) {1381 while (TRUE) {
1382 gint _tmp29_ = 0;
1383 gint _tmp30_ = 0;
1412 gint _tmp31_ = 0;1384 gint _tmp31_ = 0;
1413 gint _tmp32_ = 0;1385 KkcTrellisNode* pnode = NULL;
1386 GeeArrayList* _tmp32_ = NULL;
1414 gint _tmp33_ = 0;1387 gint _tmp33_ = 0;
1415 KkcTrellisNode* pnode = NULL;1388 gpointer _tmp34_ = NULL;
1416 GeeArrayList* _tmp34_ = NULL;
1417 gint _tmp35_ = 0;
1418 gpointer _tmp36_ = NULL;
1419 gdouble cost = 0.0;1389 gdouble cost = 0.0;
1390 KkcTrellisNode* _tmp35_ = NULL;
1391 gdouble _tmp36_ = 0.0;
1420 KkcTrellisNode* _tmp37_ = NULL;1392 KkcTrellisNode* _tmp37_ = NULL;
1421 gdouble _tmp38_ = 0.0;1393 KkcTrellisNode* _tmp38_ = NULL;
1422 KkcTrellisNode* _tmp39_ = NULL;1394 gint _tmp39_ = 0;
1423 KkcTrellisNode* _tmp40_ = NULL;1395 gdouble _tmp40_ = 0.0;
1424 gint _tmp41_ = 0;1396 gdouble _tmp41_ = 0.0;
1425 gdouble _tmp42_ = 0.0;1397 gdouble _tmp42_ = 0.0;
1426 gdouble _tmp43_ = 0.0;1398 _tmp29_ = _pnode_index;
1427 gdouble _tmp44_ = 0.0;1399 _pnode_index = _tmp29_ + 1;
1428 _tmp31_ = _pnode_index;1400 _tmp30_ = _pnode_index;
1429 _pnode_index = _tmp31_ + 1;1401 _tmp31_ = _pnode_size;
1430 _tmp32_ = _pnode_index;1402 if (!(_tmp30_ < _tmp31_)) {
1431 _tmp33_ = _pnode_size;
1432 if (!(_tmp32_ < _tmp33_)) {
1433 break;1403 break;
1434 }1404 }
1435 _tmp34_ = _pnode_list;1405 _tmp32_ = _pnode_list;
1436 _tmp35_ = _pnode_index;1406 _tmp33_ = _pnode_index;
1437 _tmp36_ = gee_abstract_list_get ((GeeAbstractList*) _tmp34_, _tmp35_);1407 _tmp34_ = gee_abstract_list_get ((GeeAbstractList*) _tmp32_, _tmp33_);
1438 pnode = (KkcTrellisNode*) _tmp36_;1408 pnode = (KkcTrellisNode*) _tmp34_;
1409 _tmp35_ = pnode;
1410 _tmp36_ = _tmp35_->cumulative_cost;
1439 _tmp37_ = pnode;1411 _tmp37_ = pnode;
1440 _tmp38_ = _tmp37_->cumulative_cost;1412 _tmp38_ = node;
1441 _tmp39_ = pnode;1413 _tmp39_ = j;
1442 _tmp40_ = node;1414 _tmp40_ = kkc_bigram_decoder_path_cost (self, _tmp37_, _tmp38_, _tmp39_);
1443 _tmp41_ = j;1415 cost = _tmp36_ + _tmp40_;
1444 _tmp42_ = kkc_bigram_decoder_path_cost (self, _tmp39_, _tmp40_, _tmp41_);1416 _tmp41_ = cost;
1445 cost = _tmp38_ + _tmp42_;1417 _tmp42_ = max_cost;
1446 _tmp43_ = cost;1418 if (_tmp41_ > _tmp42_) {
1447 _tmp44_ = max_cost;1419 KkcTrellisNode* _tmp43_ = NULL;
1448 if (_tmp43_ > _tmp44_) {1420 KkcTrellisNode* _tmp44_ = NULL;
1449 KkcTrellisNode* _tmp45_ = NULL;1421 gdouble _tmp45_ = 0.0;
1450 KkcTrellisNode* _tmp46_ = NULL;1422 _tmp43_ = pnode;
1451 gdouble _tmp47_ = 0.0;1423 _tmp44_ = _kkc_trellis_node_ref0 (_tmp43_);
1452 _tmp45_ = pnode;
1453 _tmp46_ = _kkc_trellis_node_ref0 (_tmp45_);
1454 _kkc_trellis_node_unref0 (max_pnode);1424 _kkc_trellis_node_unref0 (max_pnode);
1455 max_pnode = _tmp46_;1425 max_pnode = _tmp44_;
1456 _tmp47_ = cost;1426 _tmp45_ = cost;
1457 max_cost = _tmp47_;1427 max_cost = _tmp45_;
1458 }1428 }
1459 _kkc_trellis_node_unref0 (pnode);1429 _kkc_trellis_node_unref0 (pnode);
1460 }1430 }
1461 _g_object_unref0 (_pnode_list);1431 _g_object_unref0 (_pnode_list);
1462 }1432 }
1463 _tmp48_ = max_pnode;1433 _tmp46_ = max_pnode;
1464 if (_tmp48_ == NULL) {1434 if (_tmp46_ == NULL) {
1465 GeeArrayList** _tmp49_ = NULL;1435 GeeArrayList** _tmp47_ = NULL;
1466 gint _tmp49__length1 = 0;1436 gint _tmp47__length1 = 0;
1467 gint _tmp50_ = 0;1437 gint _tmp48_ = 0;
1468 GeeArrayList* _tmp51_ = NULL;1438 GeeArrayList* _tmp49_ = NULL;
1469 gpointer _tmp52_ = NULL;1439 gpointer _tmp50_ = NULL;
1470 _tmp49_ = trellis;1440 _tmp47_ = trellis;
1471 _tmp49__length1 = trellis_length1;1441 _tmp47__length1 = trellis_length1;
1472 _tmp50_ = i;1442 _tmp48_ = i;
1473 _tmp51_ = _tmp49_[_tmp50_];1443 _tmp49_ = _tmp47_[_tmp48_];
1474 _tmp52_ = gee_abstract_list_get ((GeeAbstractList*) _tmp51_, 0);1444 _tmp50_ = gee_abstract_list_get ((GeeAbstractList*) _tmp49_, 0);
1475 _kkc_trellis_node_unref0 (max_pnode);1445 _kkc_trellis_node_unref0 (max_pnode);
1476 max_pnode = (KkcTrellisNode*) _tmp52_;1446 max_pnode = (KkcTrellisNode*) _tmp50_;
1477 }1447 }
1448 _tmp51_ = node;
1449 _tmp52_ = max_cost;
1450 _tmp51_->cumulative_cost = _tmp52_;
1478 _tmp53_ = node;1451 _tmp53_ = node;
1479 _tmp54_ = max_cost;1452 _tmp54_ = max_pnode;
1480 _tmp53_->cumulative_cost = _tmp54_;1453 _tmp55_ = _kkc_trellis_node_ref0 (_tmp54_);
1481 _tmp55_ = node;1454 _kkc_trellis_node_unref0 (_tmp53_->previous);
1482 _tmp56_ = max_pnode;1455 _tmp53_->previous = _tmp55_;
1483 _tmp57_ = _kkc_trellis_node_ref0 (_tmp56_);
1484 _kkc_trellis_node_unref0 (_tmp55_->previous);
1485 _tmp55_->previous = _tmp57_;
1486 _kkc_trellis_node_unref0 (max_pnode);1456 _kkc_trellis_node_unref0 (max_pnode);
1487 _kkc_trellis_node_unref0 (node);1457 _kkc_trellis_node_unref0 (node);
1488 }1458 }
@@ -1504,16 +1474,15 @@
1504 KkcUnigramTrellisNode* _tmp3_ = NULL;1474 KkcUnigramTrellisNode* _tmp3_ = NULL;
1505 gboolean _tmp4_ = FALSE;1475 gboolean _tmp4_ = FALSE;
1506 KkcUnigramTrellisNode* _tmp5_ = NULL;1476 KkcUnigramTrellisNode* _tmp5_ = NULL;
1507 gboolean _tmp7_ = FALSE;1477 KkcBigramLanguageModel* _tmp7_ = NULL;
1508 KkcBigramLanguageModel* _tmp8_ = NULL;1478 KkcBigramLanguageModel* _tmp8_ = NULL;
1509 KkcBigramLanguageModel* _tmp9_ = NULL;1479 KkcUnigramTrellisNode* _tmp9_ = NULL;
1510 KkcUnigramTrellisNode* _tmp10_ = NULL;1480 KkcLanguageModelEntry _tmp10_ = {0};
1511 KkcLanguageModelEntry _tmp11_ = {0};1481 KkcLanguageModelEntry _tmp11_ = {0};
1512 KkcLanguageModelEntry _tmp12_ = {0};1482 KkcUnigramTrellisNode* _tmp12_ = NULL;
1513 KkcUnigramTrellisNode* _tmp13_ = NULL;1483 KkcLanguageModelEntry _tmp13_ = {0};
1514 KkcLanguageModelEntry _tmp14_ = {0};1484 KkcLanguageModelEntry _tmp14_ = {0};
1515 KkcLanguageModelEntry _tmp15_ = {0};1485 gdouble _tmp15_ = 0.0;
1516 gdouble _tmp16_ = 0.0;
1517 g_return_val_if_fail (pnode != NULL, 0.0);1486 g_return_val_if_fail (pnode != NULL, 0.0);
1518 g_return_val_if_fail (node != NULL, 0.0);1487 g_return_val_if_fail (node != NULL, 0.0);
1519 _tmp0_ = pnode;1488 _tmp0_ = pnode;
@@ -1530,18 +1499,17 @@
1530 } else {1499 } else {
1531 _tmp4_ = FALSE;1500 _tmp4_ = FALSE;
1532 }1501 }
1533 _tmp7_ = _tmp4_;1502 _vala_assert (_tmp4_, "upnode != null && unode != null");
1534 _vala_assert (_tmp7_, "upnode != null && unode != null");1503 _tmp7_ = kkc_bigram_decoder_get_model (self);
1535 _tmp8_ = kkc_bigram_decoder_get_model (self);1504 _tmp8_ = _tmp7_;
1536 _tmp9_ = _tmp8_;1505 _tmp9_ = upnode;
1537 _tmp10_ = upnode;1506 kkc_unigram_trellis_node_get_entry (_tmp9_, &_tmp10_);
1538 kkc_unigram_trellis_node_get_entry (_tmp10_, &_tmp11_);1507 _tmp11_ = _tmp10_;
1539 _tmp12_ = _tmp11_;1508 _tmp12_ = unode;
1540 _tmp13_ = unode;1509 kkc_unigram_trellis_node_get_entry (_tmp12_, &_tmp13_);
1541 kkc_unigram_trellis_node_get_entry (_tmp13_, &_tmp14_);1510 _tmp14_ = _tmp13_;
1542 _tmp15_ = _tmp14_;1511 _tmp15_ = kkc_bigram_language_model_bigram_backoff_cost (_tmp8_, &_tmp11_, &_tmp14_);
1543 _tmp16_ = kkc_bigram_language_model_bigram_backoff_cost (_tmp9_, &_tmp12_, &_tmp15_);1512 result = _tmp15_;
1544 result = _tmp16_;
1545 _kkc_trellis_node_unref0 (unode);1513 _kkc_trellis_node_unref0 (unode);
1546 _kkc_trellis_node_unref0 (upnode);1514 _kkc_trellis_node_unref0 (upnode);
1547 return result;1515 return result;
@@ -1566,113 +1534,109 @@
1566 gboolean _tmp0_ = FALSE;1534 gboolean _tmp0_ = FALSE;
1567 _tmp0_ = TRUE;1535 _tmp0_ = TRUE;
1568 while (TRUE) {1536 while (TRUE) {
1569 gboolean _tmp1_ = FALSE;1537 KkcNbestNode* _tmp3_ = NULL;
1570 KkcNbestNode* _tmp4_ = NULL;1538 KkcNbestNode* _tmp4_ = NULL;
1571 KkcNbestNode* _tmp5_ = NULL;1539 if (!_tmp0_) {
1572 _tmp1_ = _tmp0_;1540 KkcNbestNode* _tmp1_ = NULL;
1573 if (!_tmp1_) {
1574 KkcNbestNode* _tmp2_ = NULL;1541 KkcNbestNode* _tmp2_ = NULL;
1575 KkcNbestNode* _tmp3_ = NULL;1542 _tmp1_ = nbest_node;
1576 _tmp2_ = nbest_node;1543 _tmp2_ = _tmp1_->next;
1577 _tmp3_ = _tmp2_->next;1544 nbest_node = _tmp2_;
1578 nbest_node = _tmp3_;
1579 }1545 }
1580 _tmp0_ = FALSE;1546 _tmp0_ = FALSE;
1581 _tmp4_ = nbest_node;1547 _tmp3_ = nbest_node;
1582 _tmp5_ = _tmp4_->next;1548 _tmp4_ = _tmp3_->next;
1583 if (!(_tmp5_ != NULL)) {1549 if (!(_tmp4_ != NULL)) {
1584 break;1550 break;
1585 }1551 }
1586 {1552 {
1587 gint i = 0;1553 gint i = 0;
1588 i = 0;1554 i = 0;
1589 {1555 {
1590 gboolean _tmp6_ = FALSE;1556 gboolean _tmp5_ = FALSE;
1591 _tmp6_ = TRUE;1557 _tmp5_ = TRUE;
1592 while (TRUE) {1558 while (TRUE) {
1593 gboolean _tmp7_ = FALSE;1559 gint _tmp7_ = 0;
1594 gint _tmp9_ = 0;1560 KkcNbestNode* _tmp8_ = NULL;
1595 KkcNbestNode* _tmp10_ = NULL;1561 KkcTrellisNode* _tmp9_ = NULL;
1596 KkcTrellisNode* _tmp11_ = NULL;1562 KkcLanguageModelEntry* _tmp10_ = NULL;
1597 KkcLanguageModelEntry* _tmp12_ = NULL;1563 gint _tmp10__length1 = 0;
1598 gint _tmp12__length1 = 0;1564 KkcLanguageModelEntry* _tmp11_ = NULL;
1599 KkcLanguageModelEntry* _tmp13_ = NULL;1565 gint _tmp11__length1 = 0;
1600 gint _tmp13__length1 = 0;
1601 KkcLanguageModelEntry entry = {0};1566 KkcLanguageModelEntry entry = {0};
1602 KkcNbestNode* _tmp14_ = NULL;1567 KkcNbestNode* _tmp12_ = NULL;
1603 KkcTrellisNode* _tmp15_ = NULL;1568 KkcTrellisNode* _tmp13_ = NULL;
1604 KkcLanguageModelEntry* _tmp16_ = NULL;1569 KkcLanguageModelEntry* _tmp14_ = NULL;
1605 gint _tmp16__length1 = 0;1570 gint _tmp14__length1 = 0;
1606 KkcLanguageModelEntry* _tmp17_ = NULL;1571 KkcLanguageModelEntry* _tmp15_ = NULL;
1607 gint _tmp17__length1 = 0;1572 gint _tmp15__length1 = 0;
1608 gint _tmp18_ = 0;1573 gint _tmp16_ = 0;
1574 KkcLanguageModelEntry _tmp17_ = {0};
1575 KkcLanguageModelEntry _tmp18_ = {0};
1576 KkcSegment* segment = NULL;
1609 KkcLanguageModelEntry _tmp19_ = {0};1577 KkcLanguageModelEntry _tmp19_ = {0};
1610 KkcLanguageModelEntry _tmp20_ = {0};1578 const gchar* _tmp20_ = NULL;
1611 KkcSegment* segment = NULL;
1612 KkcLanguageModelEntry _tmp21_ = {0};1579 KkcLanguageModelEntry _tmp21_ = {0};
1613 const gchar* _tmp22_ = NULL;1580 const gchar* _tmp22_ = NULL;
1614 KkcLanguageModelEntry _tmp23_ = {0};1581 KkcSegment* _tmp23_ = NULL;
1615 const gchar* _tmp24_ = NULL;1582 KkcSegment* _tmp24_ = NULL;
1616 KkcSegment* _tmp25_ = NULL;1583 KkcSegment* _tmp27_ = NULL;
1617 KkcSegment* _tmp26_ = NULL;1584 KkcSegment* _tmp31_ = NULL;
1618 KkcSegment* _tmp29_ = NULL;1585 KkcSegment* _tmp32_ = NULL;
1619 KkcSegment* _tmp33_ = NULL;1586 if (!_tmp5_) {
1620 KkcSegment* _tmp34_ = NULL;1587 gint _tmp6_ = 0;
1621 _tmp7_ = _tmp6_;1588 _tmp6_ = i;
1622 if (!_tmp7_) {1589 i = _tmp6_ + 1;
1623 gint _tmp8_ = 0;
1624 _tmp8_ = i;
1625 i = _tmp8_ + 1;
1626 }1590 }
1627 _tmp6_ = FALSE;1591 _tmp5_ = FALSE;
1628 _tmp9_ = i;1592 _tmp7_ = i;
1629 _tmp10_ = nbest_node;1593 _tmp8_ = nbest_node;
1630 _tmp11_ = _tmp10_->node;1594 _tmp9_ = _tmp8_->node;
1631 _tmp12_ = kkc_trellis_node_get_entries (_tmp11_, &_tmp12__length1);1595 _tmp10_ = kkc_trellis_node_get_entries (_tmp9_, &_tmp10__length1);
1632 _tmp13_ = _tmp12_;1596 _tmp11_ = _tmp10_;
1633 _tmp13__length1 = _tmp12__length1;1597 _tmp11__length1 = _tmp10__length1;
1634 if (!(_tmp9_ < _tmp13__length1)) {1598 if (!(_tmp7_ < _tmp11__length1)) {
1635 break;1599 break;
1636 }1600 }
1637 _tmp14_ = nbest_node;1601 _tmp12_ = nbest_node;
1638 _tmp15_ = _tmp14_->node;1602 _tmp13_ = _tmp12_->node;
1639 _tmp16_ = kkc_trellis_node_get_entries (_tmp15_, &_tmp16__length1);1603 _tmp14_ = kkc_trellis_node_get_entries (_tmp13_, &_tmp14__length1);
1640 _tmp17_ = _tmp16_;1604 _tmp15_ = _tmp14_;
1641 _tmp17__length1 = _tmp16__length1;1605 _tmp15__length1 = _tmp14__length1;
1642 _tmp18_ = i;1606 _tmp16_ = i;
1643 _tmp19_ = _tmp17_[_tmp18_];1607 _tmp17_ = _tmp15_[_tmp16_];
1644 kkc_language_model_entry_copy (&_tmp19_, &_tmp20_);1608 kkc_language_model_entry_copy (&_tmp17_, &_tmp18_);
1645 entry = _tmp20_;1609 entry = _tmp18_;
1610 _tmp19_ = entry;
1611 _tmp20_ = _tmp19_.input;
1646 _tmp21_ = entry;1612 _tmp21_ = entry;
1647 _tmp22_ = _tmp21_.input;1613 _tmp22_ = _tmp21_.output;
1648 _tmp23_ = entry;1614 _tmp23_ = kkc_segment_new (_tmp20_, _tmp22_);
1649 _tmp24_ = _tmp23_.output;1615 segment = _tmp23_;
1650 _tmp25_ = kkc_segment_new (_tmp22_, _tmp24_);1616 _tmp24_ = start_segment;
1651 segment = _tmp25_;1617 if (_tmp24_ == NULL) {
1652 _tmp26_ = start_segment;1618 KkcSegment* _tmp25_ = NULL;
1653 if (_tmp26_ == NULL) {1619 KkcSegment* _tmp26_ = NULL;
1654 KkcSegment* _tmp27_ = NULL;1620 _tmp25_ = segment;
1621 _tmp26_ = _g_object_ref0 (_tmp25_);
1622 _g_object_unref0 (start_segment);
1623 start_segment = _tmp26_;
1624 }
1625 _tmp27_ = previous_segment;
1626 if (_tmp27_ != NULL) {
1655 KkcSegment* _tmp28_ = NULL;1627 KkcSegment* _tmp28_ = NULL;
1656 _tmp27_ = segment;1628 KkcSegment* _tmp29_ = NULL;
1657 _tmp28_ = _g_object_ref0 (_tmp27_);
1658 _g_object_unref0 (start_segment);
1659 start_segment = _tmp28_;
1660 }
1661 _tmp29_ = previous_segment;
1662 if (_tmp29_ != NULL) {
1663 KkcSegment* _tmp30_ = NULL;1629 KkcSegment* _tmp30_ = NULL;
1664 KkcSegment* _tmp31_ = NULL;1630 _tmp28_ = previous_segment;
1665 KkcSegment* _tmp32_ = NULL;1631 _tmp29_ = segment;
1666 _tmp30_ = previous_segment;1632 _tmp30_ = _g_object_ref0 (_tmp29_);
1667 _tmp31_ = segment;1633 _g_object_unref0 (_tmp28_->next);
1668 _tmp32_ = _g_object_ref0 (_tmp31_);1634 _tmp28_->next = _tmp30_;
1669 _g_object_unref0 (_tmp30_->next);
1670 _tmp30_->next = _tmp32_;
1671 }1635 }
1672 _tmp33_ = segment;1636 _tmp31_ = segment;
1673 _tmp34_ = _g_object_ref0 (_tmp33_);1637 _tmp32_ = _g_object_ref0 (_tmp31_);
1674 _g_object_unref0 (previous_segment);1638 _g_object_unref0 (previous_segment);
1675 previous_segment = _tmp34_;1639 previous_segment = _tmp32_;
1676 _g_object_unref0 (segment);1640 _g_object_unref0 (segment);
1677 kkc_language_model_entry_destroy (&entry);1641 kkc_language_model_entry_destroy (&entry);
1678 }1642 }
@@ -1709,6 +1673,13 @@
1709}1673}
17101674
17111675
1676static gint _kkc_bigram_decoder_compare_nbest_node_gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self) {
1677 gint result;
1678 result = kkc_bigram_decoder_compare_nbest_node ((KkcNbestNode*) a, (KkcNbestNode*) b);
1679 return result;
1680}
1681
1682
1712static gpointer _kkc_nbest_node_ref0 (gpointer self) {1683static gpointer _kkc_nbest_node_ref0 (gpointer self) {
1713 return self ? kkc_nbest_node_ref (self) : NULL;1684 return self ? kkc_nbest_node_ref (self) : NULL;
1714}1685}
@@ -1730,32 +1701,28 @@
1730 gpointer _tmp6_ = NULL;1701 gpointer _tmp6_ = NULL;
1731 gint _tmp7_ = 0;1702 gint _tmp7_ = 0;
1732 GeeHashMap* trellis_nbest_map = NULL;1703 GeeHashMap* trellis_nbest_map = NULL;
1733 GHashFunc _tmp49_ = NULL;1704 GeeHashMap* _tmp47_ = NULL;
1734 GEqualFunc _tmp50_ = NULL;
1735 GeeHashMap* _tmp51_ = NULL;
1736 GeePriorityQueue* open_list = NULL;1705 GeePriorityQueue* open_list = NULL;
1737 GeePriorityQueue* _tmp52_ = NULL;1706 GeePriorityQueue* _tmp48_ = NULL;
1738 GeePriorityQueue* close_list = NULL;1707 GeePriorityQueue* close_list = NULL;
1739 GeePriorityQueue* _tmp53_ = NULL;1708 GeePriorityQueue* _tmp49_ = NULL;
1740 GeeHashSet* duplicates = NULL;1709 GeeHashSet* duplicates = NULL;
1741 GHashFunc _tmp54_ = NULL;1710 GeeHashSet* _tmp50_ = NULL;
1742 GEqualFunc _tmp55_ = NULL;
1743 GeeHashSet* _tmp56_ = NULL;
1744 KkcNbestNode* eos_nbest_node = NULL;1711 KkcNbestNode* eos_nbest_node = NULL;
1745 KkcTrellisNode* _tmp57_ = NULL;1712 KkcTrellisNode* _tmp51_ = NULL;
1746 KkcNbestNode* _tmp58_ = NULL;1713 KkcNbestNode* _tmp52_ = NULL;
1747 GeeHashMap* _tmp59_ = NULL;1714 GeeHashMap* _tmp53_ = NULL;
1748 KkcTrellisNode* _tmp60_ = NULL;1715 KkcTrellisNode* _tmp54_ = NULL;
1749 KkcNbestNode* _tmp61_ = NULL;1716 KkcNbestNode* _tmp55_ = NULL;
1750 GeePriorityQueue* _tmp62_ = NULL;1717 GeePriorityQueue* _tmp56_ = NULL;
1751 KkcNbestNode* _tmp63_ = NULL;1718 KkcNbestNode* _tmp57_ = NULL;
1752 GeeArrayList* segments = NULL;1719 GeeArrayList* segments = NULL;
1753 GeeArrayList* _tmp151_ = NULL;1720 GeeArrayList* _tmp144_ = NULL;
1754 GeeArrayList* _tmp163_ = NULL;1721 GeeArrayList* _tmp156_ = NULL;
1755 gint _tmp164_ = 0;1722 gint _tmp157_ = 0;
1756 gpointer* _tmp165_ = NULL;1723 gpointer* _tmp158_ = NULL;
1757 KkcSegment** _tmp166_ = NULL;1724 KkcSegment** _tmp159_ = NULL;
1758 gint _tmp166__length1 = 0;1725 gint _tmp159__length1 = 0;
1759 g_return_val_if_fail (self != NULL, NULL);1726 g_return_val_if_fail (self != NULL, NULL);
1760 _tmp0_ = trellis;1727 _tmp0_ = trellis;
1761 _tmp0__length1 = trellis_length1;1728 _tmp0__length1 = trellis_length1;
@@ -1773,11 +1740,11 @@
1773 if (_tmp7_ == 1) {1740 if (_tmp7_ == 1) {
1774 KkcSegment* segment = NULL;1741 KkcSegment* segment = NULL;
1775 KkcSegment* next_segment = NULL;1742 KkcSegment* next_segment = NULL;
1776 KkcSegment* _tmp45_ = NULL;1743 KkcSegment* _tmp43_ = NULL;
1777 KkcSegment* _tmp46_ = NULL;1744 KkcSegment* _tmp44_ = NULL;
1778 KkcSegment** _tmp47_ = NULL;1745 KkcSegment** _tmp45_ = NULL;
1779 KkcSegment** _tmp48_ = NULL;1746 KkcSegment** _tmp46_ = NULL;
1780 gint _tmp48__length1 = 0;1747 gint _tmp46__length1 = 0;
1781 segment = NULL;1748 segment = NULL;
1782 next_segment = NULL;1749 next_segment = NULL;
1783 {1750 {
@@ -1793,110 +1760,106 @@
1793 gboolean _tmp11_ = FALSE;1760 gboolean _tmp11_ = FALSE;
1794 _tmp11_ = TRUE;1761 _tmp11_ = TRUE;
1795 while (TRUE) {1762 while (TRUE) {
1796 gboolean _tmp12_ = FALSE;1763 KkcTrellisNode* _tmp15_ = NULL;
1797 KkcTrellisNode* _tmp16_ = NULL;1764 if (!_tmp11_) {
1798 _tmp12_ = _tmp11_;1765 KkcTrellisNode* _tmp12_ = NULL;
1799 if (!_tmp12_) {
1800 KkcTrellisNode* _tmp13_ = NULL;1766 KkcTrellisNode* _tmp13_ = NULL;
1801 KkcTrellisNode* _tmp14_ = NULL;1767 KkcTrellisNode* _tmp14_ = NULL;
1802 KkcTrellisNode* _tmp15_ = NULL;1768 _tmp12_ = node;
1803 _tmp13_ = node;1769 _tmp13_ = _tmp12_->previous;
1804 _tmp14_ = _tmp13_->previous;1770 _tmp14_ = _kkc_trellis_node_ref0 (_tmp13_);
1805 _tmp15_ = _kkc_trellis_node_ref0 (_tmp14_);
1806 _kkc_trellis_node_unref0 (node);1771 _kkc_trellis_node_unref0 (node);
1807 node = _tmp15_;1772 node = _tmp14_;
1808 }1773 }
1809 _tmp11_ = FALSE;1774 _tmp11_ = FALSE;
1810 _tmp16_ = node;1775 _tmp15_ = node;
1811 if (!(_tmp16_ != NULL)) {1776 if (!(_tmp15_ != NULL)) {
1812 break;1777 break;
1813 }1778 }
1814 {1779 {
1815 gint i = 0;1780 gint i = 0;
1816 KkcTrellisNode* _tmp17_ = NULL;1781 KkcTrellisNode* _tmp16_ = NULL;
1782 KkcLanguageModelEntry* _tmp17_ = NULL;
1783 gint _tmp17__length1 = 0;
1817 KkcLanguageModelEntry* _tmp18_ = NULL;1784 KkcLanguageModelEntry* _tmp18_ = NULL;
1818 gint _tmp18__length1 = 0;1785 gint _tmp18__length1 = 0;
1819 KkcLanguageModelEntry* _tmp19_ = NULL;1786 _tmp16_ = node;
1820 gint _tmp19__length1 = 0;1787 _tmp17_ = kkc_trellis_node_get_entries (_tmp16_, &_tmp17__length1);
1821 _tmp17_ = node;1788 _tmp18_ = _tmp17_;
1822 _tmp18_ = kkc_trellis_node_get_entries (_tmp17_, &_tmp18__length1);1789 _tmp18__length1 = _tmp17__length1;
1823 _tmp19_ = _tmp18_;1790 i = _tmp18__length1 - 1;
1824 _tmp19__length1 = _tmp18__length1;
1825 i = _tmp19__length1 - 1;
1826 {1791 {
1827 gboolean _tmp20_ = FALSE;1792 gboolean _tmp19_ = FALSE;
1828 _tmp20_ = TRUE;1793 _tmp19_ = TRUE;
1829 while (TRUE) {1794 while (TRUE) {
1830 gboolean _tmp21_ = FALSE;1795 gint _tmp21_ = 0;
1831 gint _tmp23_ = 0;
1832 KkcLanguageModelEntry entry = {0};1796 KkcLanguageModelEntry entry = {0};
1833 KkcTrellisNode* _tmp24_ = NULL;1797 KkcTrellisNode* _tmp22_ = NULL;
1834 KkcLanguageModelEntry* _tmp25_ = NULL;1798 KkcLanguageModelEntry* _tmp23_ = NULL;
1835 gint _tmp25__length1 = 0;1799 gint _tmp23__length1 = 0;
1836 KkcLanguageModelEntry* _tmp26_ = NULL;1800 KkcLanguageModelEntry* _tmp24_ = NULL;
1837 gint _tmp26__length1 = 0;1801 gint _tmp24__length1 = 0;
1838 gint _tmp27_ = 0;1802 gint _tmp25_ = 0;
1803 KkcLanguageModelEntry _tmp26_ = {0};
1804 KkcLanguageModelEntry _tmp27_ = {0};
1839 KkcLanguageModelEntry _tmp28_ = {0};1805 KkcLanguageModelEntry _tmp28_ = {0};
1840 KkcLanguageModelEntry _tmp29_ = {0};1806 KkcBigramLanguageModel* _tmp29_ = NULL;
1841 KkcLanguageModelEntry _tmp30_ = {0};1807 KkcBigramLanguageModel* _tmp30_ = NULL;
1842 KkcBigramLanguageModel* _tmp31_ = NULL;1808 KkcLanguageModelEntry _tmp31_ = {0};
1843 KkcBigramLanguageModel* _tmp32_ = NULL;1809 KkcLanguageModelEntry _tmp32_ = {0};
1844 KkcLanguageModelEntry _tmp33_ = {0};1810 KkcLanguageModelEntry _tmp33_ = {0};
1845 KkcLanguageModelEntry _tmp34_ = {0};1811 const gchar* _tmp34_ = NULL;
1846 KkcLanguageModelEntry _tmp35_ = {0};1812 KkcLanguageModelEntry _tmp35_ = {0};
1847 const gchar* _tmp36_ = NULL;1813 const gchar* _tmp36_ = NULL;
1848 KkcLanguageModelEntry _tmp37_ = {0};1814 KkcSegment* _tmp37_ = NULL;
1849 const gchar* _tmp38_ = NULL;1815 KkcSegment* _tmp38_ = NULL;
1850 KkcSegment* _tmp39_ = NULL;1816 KkcSegment* _tmp39_ = NULL;
1851 KkcSegment* _tmp40_ = NULL;1817 KkcSegment* _tmp40_ = NULL;
1852 KkcSegment* _tmp41_ = NULL;1818 KkcSegment* _tmp41_ = NULL;
1853 KkcSegment* _tmp42_ = NULL;1819 KkcSegment* _tmp42_ = NULL;
1854 KkcSegment* _tmp43_ = NULL;1820 if (!_tmp19_) {
1855 KkcSegment* _tmp44_ = NULL;1821 gint _tmp20_ = 0;
1856 _tmp21_ = _tmp20_;1822 _tmp20_ = i;
1857 if (!_tmp21_) {1823 i = _tmp20_ - 1;
1858 gint _tmp22_ = 0;
1859 _tmp22_ = i;
1860 i = _tmp22_ - 1;
1861 }1824 }
1862 _tmp20_ = FALSE;1825 _tmp19_ = FALSE;
1863 _tmp23_ = i;1826 _tmp21_ = i;
1864 if (!(_tmp23_ >= 0)) {1827 if (!(_tmp21_ >= 0)) {
1865 break;1828 break;
1866 }1829 }
1867 _tmp24_ = node;1830 _tmp22_ = node;
1868 _tmp25_ = kkc_trellis_node_get_entries (_tmp24_, &_tmp25__length1);1831 _tmp23_ = kkc_trellis_node_get_entries (_tmp22_, &_tmp23__length1);
1869 _tmp26_ = _tmp25_;1832 _tmp24_ = _tmp23_;
1870 _tmp26__length1 = _tmp25__length1;1833 _tmp24__length1 = _tmp23__length1;
1871 _tmp27_ = i;1834 _tmp25_ = i;
1872 _tmp28_ = _tmp26_[_tmp27_];1835 _tmp26_ = _tmp24_[_tmp25_];
1873 kkc_language_model_entry_copy (&_tmp28_, &_tmp29_);1836 kkc_language_model_entry_copy (&_tmp26_, &_tmp27_);
1874 entry = _tmp29_;1837 entry = _tmp27_;
1875 _tmp30_ = entry;1838 _tmp28_ = entry;
1876 _tmp31_ = kkc_bigram_decoder_get_model (self);1839 _tmp29_ = kkc_bigram_decoder_get_model (self);
1840 _tmp30_ = _tmp29_;
1841 kkc_language_model_get_bos ((KkcLanguageModel*) _tmp30_, &_tmp31_);
1877 _tmp32_ = _tmp31_;1842 _tmp32_ = _tmp31_;
1878 kkc_language_model_get_bos ((KkcLanguageModel*) _tmp32_, &_tmp33_);1843 if (_kkc_language_model_entry_equal (&_tmp28_, &_tmp32_) == TRUE) {
1879 _tmp34_ = _tmp33_;
1880 if (_kkc_language_model_entry_equal (&_tmp30_, &_tmp34_) == TRUE) {
1881 kkc_language_model_entry_destroy (&entry);1844 kkc_language_model_entry_destroy (&entry);
1882 break;1845 break;
1883 }1846 }
1847 _tmp33_ = entry;
1848 _tmp34_ = _tmp33_.input;
1884 _tmp35_ = entry;1849 _tmp35_ = entry;
1885 _tmp36_ = _tmp35_.input;1850 _tmp36_ = _tmp35_.output;
1886 _tmp37_ = entry;1851 _tmp37_ = kkc_segment_new (_tmp34_, _tmp36_);
1887 _tmp38_ = _tmp37_.output;
1888 _tmp39_ = kkc_segment_new (_tmp36_, _tmp38_);
1889 _g_object_unref0 (segment);1852 _g_object_unref0 (segment);
1890 segment = _tmp39_;1853 segment = _tmp37_;
1891 _tmp40_ = segment;1854 _tmp38_ = segment;
1892 _tmp41_ = next_segment;1855 _tmp39_ = next_segment;
1856 _tmp40_ = _g_object_ref0 (_tmp39_);
1857 _g_object_unref0 (_tmp38_->next);
1858 _tmp38_->next = _tmp40_;
1859 _tmp41_ = segment;
1893 _tmp42_ = _g_object_ref0 (_tmp41_);1860 _tmp42_ = _g_object_ref0 (_tmp41_);
1894 _g_object_unref0 (_tmp40_->next);
1895 _tmp40_->next = _tmp42_;
1896 _tmp43_ = segment;
1897 _tmp44_ = _g_object_ref0 (_tmp43_);
1898 _g_object_unref0 (next_segment);1861 _g_object_unref0 (next_segment);
1899 next_segment = _tmp44_;1862 next_segment = _tmp42_;
1900 kkc_language_model_entry_destroy (&entry);1863 kkc_language_model_entry_destroy (&entry);
1901 }1864 }
1902 }1865 }
@@ -1905,281 +1868,275 @@
1905 }1868 }
1906 _kkc_trellis_node_unref0 (node);1869 _kkc_trellis_node_unref0 (node);
1907 }1870 }
1908 _tmp45_ = segment;1871 _tmp43_ = segment;
1909 _tmp46_ = _g_object_ref0 (_tmp45_);1872 _tmp44_ = _g_object_ref0 (_tmp43_);
1910 _tmp47_ = g_new0 (KkcSegment*, 1 + 1);1873 _tmp45_ = g_new0 (KkcSegment*, 1 + 1);
1911 _tmp47_[0] = _tmp46_;1874 _tmp45_[0] = _tmp44_;
1912 _tmp48_ = _tmp47_;1875 _tmp46_ = _tmp45_;
1913 _tmp48__length1 = 1;1876 _tmp46__length1 = 1;
1914 if (result_length1) {1877 if (result_length1) {
1915 *result_length1 = _tmp48__length1;1878 *result_length1 = _tmp46__length1;
1916 }1879 }
1917 result = _tmp48_;1880 result = _tmp46_;
1918 _g_object_unref0 (next_segment);1881 _g_object_unref0 (next_segment);
1919 _g_object_unref0 (segment);1882 _g_object_unref0 (segment);
1920 _kkc_trellis_node_unref0 (eos_trellis_node);1883 _kkc_trellis_node_unref0 (eos_trellis_node);
1921 _kkc_trellis_node_unref0 (bos_trellis_node);1884 _kkc_trellis_node_unref0 (bos_trellis_node);
1922 return result;1885 return result;
1923 }1886 }
1924 _tmp49_ = g_direct_hash;1887 _tmp47_ = gee_hash_map_new (KKC_TYPE_TRELLIS_NODE, (GBoxedCopyFunc) kkc_trellis_node_ref, kkc_trellis_node_unref, KKC_TYPE_NBEST_NODE, (GBoxedCopyFunc) kkc_nbest_node_ref, kkc_nbest_node_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1925 _tmp50_ = g_direct_equal;1888 trellis_nbest_map = _tmp47_;
1926 _tmp51_ = gee_hash_map_new (KKC_TYPE_TRELLIS_NODE, (GBoxedCopyFunc) kkc_trellis_node_ref, kkc_trellis_node_unref, KKC_TYPE_NBEST_NODE, (GBoxedCopyFunc) kkc_nbest_node_ref, kkc_nbest_node_unref, _tmp49_, _tmp50_, NULL);1889 _tmp48_ = gee_priority_queue_new (KKC_TYPE_NBEST_NODE, (GBoxedCopyFunc) kkc_nbest_node_ref, kkc_nbest_node_unref, _kkc_bigram_decoder_compare_nbest_node_gcompare_data_func, NULL, NULL);
1927 trellis_nbest_map = _tmp51_;1890 open_list = _tmp48_;
1928 _tmp52_ = gee_priority_queue_new (KKC_TYPE_NBEST_NODE, (GBoxedCopyFunc) kkc_nbest_node_ref, kkc_nbest_node_unref, (GCompareFunc) kkc_bigram_decoder_compare_nbest_node);1891 _tmp49_ = gee_priority_queue_new (KKC_TYPE_NBEST_NODE, (GBoxedCopyFunc) kkc_nbest_node_ref, kkc_nbest_node_unref, _kkc_bigram_decoder_compare_nbest_node_gcompare_data_func, NULL, NULL);
1929 open_list = _tmp52_;1892 close_list = _tmp49_;
1930 _tmp53_ = gee_priority_queue_new (KKC_TYPE_NBEST_NODE, (GBoxedCopyFunc) kkc_nbest_node_ref, kkc_nbest_node_unref, (GCompareFunc) kkc_bigram_decoder_compare_nbest_node);1893 _tmp50_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL);
1931 close_list = _tmp53_;1894 duplicates = _tmp50_;
1932 _tmp54_ = g_str_hash;1895 _tmp51_ = eos_trellis_node;
1933 _tmp55_ = g_str_equal;1896 _tmp52_ = kkc_nbest_node_new (_tmp51_);
1934 _tmp56_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, _tmp54_, _tmp55_);1897 eos_nbest_node = _tmp52_;
1935 duplicates = _tmp56_;1898 _tmp53_ = trellis_nbest_map;
1936 _tmp57_ = eos_trellis_node;1899 _tmp54_ = eos_trellis_node;
1937 _tmp58_ = kkc_nbest_node_new (_tmp57_);1900 _tmp55_ = eos_nbest_node;
1938 eos_nbest_node = _tmp58_;1901 gee_abstract_map_set ((GeeAbstractMap*) _tmp53_, _tmp54_, _tmp55_);
1939 _tmp59_ = trellis_nbest_map;1902 _tmp56_ = open_list;
1940 _tmp60_ = eos_trellis_node;1903 _tmp57_ = eos_nbest_node;
1941 _tmp61_ = eos_nbest_node;1904 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp56_, _tmp57_);
1942 gee_abstract_map_set ((GeeAbstractMap*) _tmp59_, _tmp60_, _tmp61_);
1943 _tmp62_ = open_list;
1944 _tmp63_ = eos_nbest_node;
1945 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp62_, _tmp63_);
1946 while (TRUE) {1905 while (TRUE) {
1947 GeePriorityQueue* _tmp64_ = NULL;1906 GeePriorityQueue* _tmp58_ = NULL;
1948 gboolean _tmp65_ = FALSE;1907 gboolean _tmp59_ = FALSE;
1949 gboolean _tmp66_ = FALSE;1908 gboolean _tmp60_ = FALSE;
1950 KkcNbestNode* current_nbest_node = NULL;1909 KkcNbestNode* current_nbest_node = NULL;
1951 GeePriorityQueue* _tmp67_ = NULL;1910 GeePriorityQueue* _tmp61_ = NULL;
1952 gpointer _tmp68_ = NULL;1911 gpointer _tmp62_ = NULL;
1953 KkcNbestNode* _tmp69_ = NULL;1912 KkcNbestNode* _tmp63_ = NULL;
1954 KkcTrellisNode* _tmp70_ = NULL;1913 KkcTrellisNode* _tmp64_ = NULL;
1955 KkcTrellisNode* _tmp71_ = NULL;1914 KkcTrellisNode* _tmp65_ = NULL;
1956 _tmp64_ = open_list;1915 _tmp58_ = open_list;
1957 _tmp65_ = gee_abstract_collection_get_is_empty ((GeeAbstractCollection*) _tmp64_);1916 _tmp59_ = gee_collection_get_is_empty ((GeeCollection*) _tmp58_);
1958 _tmp66_ = _tmp65_;1917 _tmp60_ = _tmp59_;
1959 if (!(!_tmp66_)) {1918 if (!(!_tmp60_)) {
1960 break;1919 break;
1961 }1920 }
1962 _tmp67_ = open_list;1921 _tmp61_ = open_list;
1963 _tmp68_ = gee_abstract_queue_poll ((GeeAbstractQueue*) _tmp67_);1922 _tmp62_ = gee_abstract_queue_poll ((GeeAbstractQueue*) _tmp61_);
1964 current_nbest_node = (KkcNbestNode*) _tmp68_;1923 current_nbest_node = (KkcNbestNode*) _tmp62_;
1965 _tmp69_ = current_nbest_node;1924 _tmp63_ = current_nbest_node;
1966 _tmp70_ = _tmp69_->node;1925 _tmp64_ = _tmp63_->node;
1967 _tmp71_ = bos_trellis_node;1926 _tmp65_ = bos_trellis_node;
1968 if (_tmp70_ == _tmp71_) {1927 if (_tmp64_ == _tmp65_) {
1969 gchar* output = NULL;1928 gchar* output = NULL;
1970 KkcNbestNode* _tmp72_ = NULL;1929 KkcNbestNode* _tmp66_ = NULL;
1971 gchar* _tmp73_ = NULL;1930 gchar* _tmp67_ = NULL;
1972 GeeHashSet* _tmp74_ = NULL;1931 GeeHashSet* _tmp68_ = NULL;
1973 const gchar* _tmp75_ = NULL;1932 const gchar* _tmp69_ = NULL;
1974 gboolean _tmp76_ = FALSE;1933 gboolean _tmp70_ = FALSE;
1975 _tmp72_ = current_nbest_node;1934 _tmp66_ = current_nbest_node;
1976 _tmp73_ = kkc_bigram_decoder_concat_nbest_node_outputs (self, _tmp72_);1935 _tmp67_ = kkc_bigram_decoder_concat_nbest_node_outputs (self, _tmp66_);
1977 output = _tmp73_;1936 output = _tmp67_;
1978 _tmp74_ = duplicates;1937 _tmp68_ = duplicates;
1979 _tmp75_ = output;1938 _tmp69_ = output;
1980 _tmp76_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _tmp74_, _tmp75_);1939 _tmp70_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _tmp68_, _tmp69_);
1981 if (!_tmp76_) {1940 if (!_tmp70_) {
1982 KkcTrellisNode* _tmp77_ = NULL;1941 KkcTrellisNode* _tmp71_ = NULL;
1983 gdouble _tmp78_ = 0.0;1942 gdouble _tmp72_ = 0.0;
1984 KkcNbestNode* _tmp79_ = NULL;1943 KkcNbestNode* _tmp73_ = NULL;
1985 gdouble _tmp80_ = 0.0;1944 gdouble _tmp74_ = 0.0;
1986 gdouble _tmp81_ = 0.0;1945 gdouble _tmp75_ = 0.0;
1987 GeePriorityQueue* _tmp82_ = NULL;1946 GeePriorityQueue* _tmp76_ = NULL;
1988 KkcNbestNode* _tmp83_ = NULL;1947 KkcNbestNode* _tmp77_ = NULL;
1989 GeePriorityQueue* _tmp84_ = NULL;1948 GeePriorityQueue* _tmp78_ = NULL;
1990 gint _tmp85_ = 0;1949 gint _tmp79_ = 0;
1991 gint _tmp86_ = 0;1950 gint _tmp80_ = 0;
1992 gint _tmp87_ = 0;1951 gint _tmp81_ = 0;
1993 GeeHashSet* _tmp88_ = NULL;1952 GeeHashSet* _tmp82_ = NULL;
1994 const gchar* _tmp89_ = NULL;1953 const gchar* _tmp83_ = NULL;
1995 _tmp77_ = eos_trellis_node;1954 _tmp71_ = eos_trellis_node;
1996 _tmp78_ = _tmp77_->cumulative_cost;1955 _tmp72_ = _tmp71_->cumulative_cost;
1997 _tmp79_ = current_nbest_node;1956 _tmp73_ = current_nbest_node;
1998 _tmp80_ = _tmp79_->fn;1957 _tmp74_ = _tmp73_->fn;
1999 _tmp81_ = max_distance;1958 _tmp75_ = max_distance;
2000 if ((_tmp78_ - _tmp80_) > _tmp81_) {1959 if ((_tmp72_ - _tmp74_) > _tmp75_) {
2001 _g_free0 (output);1960 _g_free0 (output);
2002 _kkc_nbest_node_unref0 (current_nbest_node);1961 _kkc_nbest_node_unref0 (current_nbest_node);
2003 break;1962 break;
2004 }1963 }
2005 _tmp82_ = close_list;1964 _tmp76_ = close_list;
2006 _tmp83_ = current_nbest_node;1965 _tmp77_ = current_nbest_node;
1966 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp76_, _tmp77_);
1967 _tmp78_ = close_list;
1968 _tmp79_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp78_);
1969 _tmp80_ = _tmp79_;
1970 _tmp81_ = nbest;
1971 if (_tmp80_ == _tmp81_) {
1972 _g_free0 (output);
1973 _kkc_nbest_node_unref0 (current_nbest_node);
1974 break;
1975 }
1976 _tmp82_ = duplicates;
1977 _tmp83_ = output;
2007 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp82_, _tmp83_);1978 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp82_, _tmp83_);
2008 _tmp84_ = close_list;
2009 _tmp85_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp84_);
2010 _tmp86_ = _tmp85_;
2011 _tmp87_ = nbest;
2012 if (_tmp86_ == _tmp87_) {
2013 _g_free0 (output);
2014 _kkc_nbest_node_unref0 (current_nbest_node);
2015 break;
2016 }
2017 _tmp88_ = duplicates;
2018 _tmp89_ = output;
2019 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp88_, _tmp89_);
2020 }1979 }
2021 _g_free0 (output);1980 _g_free0 (output);
2022 } else {1981 } else {
2023 KkcNbestNode* _tmp90_ = NULL;1982 KkcNbestNode* _tmp84_ = NULL;
2024 KkcTrellisNode* _tmp91_ = NULL;1983 KkcTrellisNode* _tmp85_ = NULL;
2025 guint _tmp92_ = 0U;1984 guint _tmp86_ = 0U;
2026 guint _tmp93_ = 0U;1985 guint _tmp87_ = 0U;
2027 KkcNbestNode* _tmp94_ = NULL;1986 KkcNbestNode* _tmp88_ = NULL;
2028 KkcTrellisNode* _tmp95_ = NULL;1987 KkcTrellisNode* _tmp89_ = NULL;
2029 guint _tmp96_ = 0U;1988 guint _tmp90_ = 0U;
2030 guint _tmp97_ = 0U;1989 guint _tmp91_ = 0U;
2031 _tmp90_ = current_nbest_node;1990 _tmp84_ = current_nbest_node;
2032 _tmp91_ = _tmp90_->node;1991 _tmp85_ = _tmp84_->node;
2033 _tmp92_ = kkc_trellis_node_get_endpos (_tmp91_);1992 _tmp86_ = kkc_trellis_node_get_endpos (_tmp85_);
2034 _tmp93_ = _tmp92_;1993 _tmp87_ = _tmp86_;
2035 _tmp94_ = current_nbest_node;1994 _tmp88_ = current_nbest_node;
2036 _tmp95_ = _tmp94_->node;1995 _tmp89_ = _tmp88_->node;
2037 _tmp96_ = kkc_trellis_node_get_length (_tmp95_);1996 _tmp90_ = kkc_trellis_node_get_length (_tmp89_);
2038 _tmp97_ = _tmp96_;1997 _tmp91_ = _tmp90_;
2039 if (_tmp93_ >= _tmp97_) {1998 if (_tmp87_ >= _tmp91_) {
2040 guint i = 0U;1999 guint i = 0U;
2041 KkcNbestNode* _tmp98_ = NULL;2000 KkcNbestNode* _tmp92_ = NULL;
2042 KkcTrellisNode* _tmp99_ = NULL;2001 KkcTrellisNode* _tmp93_ = NULL;
2043 guint _tmp100_ = 0U;2002 guint _tmp94_ = 0U;
2044 guint _tmp101_ = 0U;2003 guint _tmp95_ = 0U;
2045 KkcNbestNode* _tmp102_ = NULL;2004 KkcNbestNode* _tmp96_ = NULL;
2046 KkcTrellisNode* _tmp103_ = NULL;2005 KkcTrellisNode* _tmp97_ = NULL;
2047 guint _tmp104_ = 0U;2006 guint _tmp98_ = 0U;
2048 guint _tmp105_ = 0U;2007 guint _tmp99_ = 0U;
2049 _tmp98_ = current_nbest_node;2008 _tmp92_ = current_nbest_node;
2050 _tmp99_ = _tmp98_->node;2009 _tmp93_ = _tmp92_->node;
2051 _tmp100_ = kkc_trellis_node_get_endpos (_tmp99_);2010 _tmp94_ = kkc_trellis_node_get_endpos (_tmp93_);
2052 _tmp101_ = _tmp100_;2011 _tmp95_ = _tmp94_;
2053 _tmp102_ = current_nbest_node;2012 _tmp96_ = current_nbest_node;
2054 _tmp103_ = _tmp102_->node;2013 _tmp97_ = _tmp96_->node;
2055 _tmp104_ = kkc_trellis_node_get_length (_tmp103_);2014 _tmp98_ = kkc_trellis_node_get_length (_tmp97_);
2056 _tmp105_ = _tmp104_;2015 _tmp99_ = _tmp98_;
2057 i = ((gint) _tmp101_) - _tmp105_;2016 i = ((gint) _tmp95_) - _tmp99_;
2058 {2017 {
2059 GeeArrayList* _trellis_node_list = NULL;2018 GeeArrayList* _trellis_node_list = NULL;
2060 GeeArrayList** _tmp106_ = NULL;2019 GeeArrayList** _tmp100_ = NULL;
2061 gint _tmp106__length1 = 0;2020 gint _tmp100__length1 = 0;
2062 guint _tmp107_ = 0U;2021 guint _tmp101_ = 0U;
2063 GeeArrayList* _tmp108_ = NULL;2022 GeeArrayList* _tmp102_ = NULL;
2064 GeeArrayList* _tmp109_ = NULL;2023 GeeArrayList* _tmp103_ = NULL;
2065 gint _trellis_node_size = 0;2024 gint _trellis_node_size = 0;
2066 GeeArrayList* _tmp110_ = NULL;2025 GeeArrayList* _tmp104_ = NULL;
2067 gint _tmp111_ = 0;2026 gint _tmp105_ = 0;
2068 gint _tmp112_ = 0;2027 gint _tmp106_ = 0;
2069 gint _trellis_node_index = 0;2028 gint _trellis_node_index = 0;
2070 _tmp106_ = trellis;2029 _tmp100_ = trellis;
2071 _tmp106__length1 = trellis_length1;2030 _tmp100__length1 = trellis_length1;
2072 _tmp107_ = i;2031 _tmp101_ = i;
2073 _tmp108_ = _tmp106_[_tmp107_];2032 _tmp102_ = _tmp100_[_tmp101_];
2074 _tmp109_ = _g_object_ref0 (_tmp108_);2033 _tmp103_ = _g_object_ref0 (_tmp102_);
2075 _trellis_node_list = _tmp109_;2034 _trellis_node_list = _tmp103_;
2076 _tmp110_ = _trellis_node_list;2035 _tmp104_ = _trellis_node_list;
2077 _tmp111_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp110_);2036 _tmp105_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp104_);
2078 _tmp112_ = _tmp111_;2037 _tmp106_ = _tmp105_;
2079 _trellis_node_size = _tmp112_;2038 _trellis_node_size = _tmp106_;
2080 _trellis_node_index = -1;2039 _trellis_node_index = -1;
2081 while (TRUE) {2040 while (TRUE) {
2082 gint _tmp113_ = 0;2041 gint _tmp107_ = 0;
2083 gint _tmp114_ = 0;2042 gint _tmp108_ = 0;
2084 gint _tmp115_ = 0;2043 gint _tmp109_ = 0;
2085 KkcTrellisNode* trellis_node = NULL;2044 KkcTrellisNode* trellis_node = NULL;
2086 GeeArrayList* _tmp116_ = NULL;2045 GeeArrayList* _tmp110_ = NULL;
2087 gint _tmp117_ = 0;2046 gint _tmp111_ = 0;
2088 gpointer _tmp118_ = NULL;2047 gpointer _tmp112_ = NULL;
2089 KkcNbestNode* nbest_node = NULL;2048 KkcNbestNode* nbest_node = NULL;
2090 KkcTrellisNode* _tmp119_ = NULL;2049 KkcTrellisNode* _tmp113_ = NULL;
2091 KkcNbestNode* _tmp120_ = NULL;2050 KkcNbestNode* _tmp114_ = NULL;
2092 gdouble cost = 0.0;2051 gdouble cost = 0.0;
2093 KkcNbestNode* _tmp121_ = NULL;2052 KkcNbestNode* _tmp115_ = NULL;
2053 KkcTrellisNode* _tmp116_ = NULL;
2054 KkcNbestNode* _tmp117_ = NULL;
2055 KkcTrellisNode* _tmp118_ = NULL;
2056 guint _tmp119_ = 0U;
2057 gdouble _tmp120_ = 0.0;
2058 gboolean _tmp121_ = FALSE;
2094 KkcTrellisNode* _tmp122_ = NULL;2059 KkcTrellisNode* _tmp122_ = NULL;
2095 KkcNbestNode* _tmp123_ = NULL;2060 KkcTrellisNode* _tmp123_ = NULL;
2096 KkcTrellisNode* _tmp124_ = NULL;2061 KkcNbestNode* _tmp126_ = NULL;
2097 guint _tmp125_ = 0U;2062 gdouble _tmp127_ = 0.0;
2098 gdouble _tmp126_ = 0.0;2063 KkcNbestNode* _tmp128_ = NULL;
2099 gboolean _tmp127_ = FALSE;2064 gdouble _tmp129_ = 0.0;
2100 KkcTrellisNode* _tmp128_ = NULL;2065 KkcNbestNode* _tmp130_ = NULL;
2101 KkcTrellisNode* _tmp129_ = NULL;2066 KkcNbestNode* _tmp131_ = NULL;
2102 gboolean _tmp132_ = FALSE;2067 gdouble _tmp132_ = 0.0;
2103 KkcNbestNode* _tmp133_ = NULL;2068 KkcNbestNode* _tmp133_ = NULL;
2104 gdouble _tmp134_ = 0.0;2069 KkcTrellisNode* _tmp134_ = NULL;
2105 KkcNbestNode* _tmp135_ = NULL;2070 gdouble _tmp135_ = 0.0;
2106 gdouble _tmp136_ = 0.0;2071 KkcNbestNode* _tmp136_ = NULL;
2107 KkcNbestNode* _tmp137_ = NULL;2072 KkcNbestNode* _tmp137_ = NULL;
2108 KkcNbestNode* _tmp138_ = NULL;2073 KkcNbestNode* _tmp138_ = NULL;
2109 gdouble _tmp139_ = 0.0;2074 GeeHashMap* _tmp139_ = NULL;
2110 KkcNbestNode* _tmp140_ = NULL;2075 KkcTrellisNode* _tmp140_ = NULL;
2111 KkcTrellisNode* _tmp141_ = NULL;2076 KkcNbestNode* _tmp141_ = NULL;
2112 gdouble _tmp142_ = 0.0;2077 GeePriorityQueue* _tmp142_ = NULL;
2113 KkcNbestNode* _tmp143_ = NULL;2078 KkcNbestNode* _tmp143_ = NULL;
2114 KkcNbestNode* _tmp144_ = NULL;2079 _tmp107_ = _trellis_node_index;
2115 KkcNbestNode* _tmp145_ = NULL;2080 _trellis_node_index = _tmp107_ + 1;
2116 GeeHashMap* _tmp146_ = NULL;2081 _tmp108_ = _trellis_node_index;
2117 KkcTrellisNode* _tmp147_ = NULL;2082 _tmp109_ = _trellis_node_size;
2118 KkcNbestNode* _tmp148_ = NULL;2083 if (!(_tmp108_ < _tmp109_)) {
2119 GeePriorityQueue* _tmp149_ = NULL;
2120 KkcNbestNode* _tmp150_ = NULL;
2121 _tmp113_ = _trellis_node_index;
2122 _trellis_node_index = _tmp113_ + 1;
2123 _tmp114_ = _trellis_node_index;
2124 _tmp115_ = _trellis_node_size;
2125 if (!(_tmp114_ < _tmp115_)) {
2126 break;2084 break;
2127 }2085 }
2128 _tmp116_ = _trellis_node_list;2086 _tmp110_ = _trellis_node_list;
2129 _tmp117_ = _trellis_node_index;2087 _tmp111_ = _trellis_node_index;
2130 _tmp118_ = gee_abstract_list_get ((GeeAbstractList*) _tmp116_, _tmp117_);2088 _tmp112_ = gee_abstract_list_get ((GeeAbstractList*) _tmp110_, _tmp111_);
2131 trellis_node = (KkcTrellisNode*) _tmp118_;2089 trellis_node = (KkcTrellisNode*) _tmp112_;
2132 _tmp119_ = trellis_node;2090 _tmp113_ = trellis_node;
2133 _tmp120_ = kkc_nbest_node_new (_tmp119_);2091 _tmp114_ = kkc_nbest_node_new (_tmp113_);
2134 nbest_node = _tmp120_;2092 nbest_node = _tmp114_;
2135 _tmp121_ = nbest_node;2093 _tmp115_ = nbest_node;
2136 _tmp122_ = _tmp121_->node;2094 _tmp116_ = _tmp115_->node;
2137 _tmp123_ = current_nbest_node;2095 _tmp117_ = current_nbest_node;
2138 _tmp124_ = _tmp123_->node;2096 _tmp118_ = _tmp117_->node;
2139 _tmp125_ = i;2097 _tmp119_ = i;
2140 _tmp126_ = kkc_bigram_decoder_path_cost (self, _tmp122_, _tmp124_, (gint) _tmp125_);2098 _tmp120_ = kkc_bigram_decoder_path_cost (self, _tmp116_, _tmp118_, (gint) _tmp119_);
2141 cost = _tmp126_;2099 cost = _tmp120_;
2142 _tmp128_ = trellis_node;2100 _tmp122_ = trellis_node;
2143 _tmp129_ = bos_trellis_node;2101 _tmp123_ = bos_trellis_node;
2144 if (_tmp128_ != _tmp129_) {2102 if (_tmp122_ != _tmp123_) {
2145 gdouble _tmp130_ = 0.0;2103 gdouble _tmp124_ = 0.0;
2146 gdouble _tmp131_ = 0.0;2104 gdouble _tmp125_ = 0.0;
2147 _tmp130_ = cost;2105 _tmp124_ = cost;
2148 _tmp131_ = min_path_cost;2106 _tmp125_ = min_path_cost;
2149 _tmp127_ = _tmp130_ < _tmp131_;2107 _tmp121_ = _tmp124_ < _tmp125_;
2150 } else {2108 } else {
2151 _tmp127_ = FALSE;2109 _tmp121_ = FALSE;
2152 }2110 }
2153 _tmp132_ = _tmp127_;2111 if (_tmp121_) {
2154 if (_tmp132_) {
2155 _kkc_nbest_node_unref0 (nbest_node);2112 _kkc_nbest_node_unref0 (nbest_node);
2156 _kkc_trellis_node_unref0 (trellis_node);2113 _kkc_trellis_node_unref0 (trellis_node);
2157 continue;2114 continue;
2158 }2115 }
2116 _tmp126_ = nbest_node;
2117 _tmp127_ = cost;
2118 _tmp128_ = current_nbest_node;
2119 _tmp129_ = _tmp128_->gn;
2120 _tmp126_->gn = _tmp127_ + _tmp129_;
2121 _tmp130_ = nbest_node;
2122 _tmp131_ = nbest_node;
2123 _tmp132_ = _tmp131_->gn;
2159 _tmp133_ = nbest_node;2124 _tmp133_ = nbest_node;
2160 _tmp134_ = cost;2125 _tmp134_ = _tmp133_->node;
2161 _tmp135_ = current_nbest_node;2126 _tmp135_ = _tmp134_->cumulative_cost;
2162 _tmp136_ = _tmp135_->gn;2127 _tmp130_->fn = _tmp132_ + _tmp135_;
2163 _tmp133_->gn = _tmp134_ + _tmp136_;2128 _tmp136_ = nbest_node;
2164 _tmp137_ = nbest_node;2129 _tmp137_ = current_nbest_node;
2165 _tmp138_ = nbest_node;2130 _tmp138_ = _kkc_nbest_node_ref0 (_tmp137_);
2166 _tmp139_ = _tmp138_->gn;2131 _kkc_nbest_node_unref0 (_tmp136_->next);
2167 _tmp140_ = nbest_node;2132 _tmp136_->next = _tmp138_;
2168 _tmp141_ = _tmp140_->node;2133 _tmp139_ = trellis_nbest_map;
2169 _tmp142_ = _tmp141_->cumulative_cost;2134 _tmp140_ = trellis_node;
2170 _tmp137_->fn = _tmp139_ + _tmp142_;2135 _tmp141_ = nbest_node;
2136 gee_abstract_map_set ((GeeAbstractMap*) _tmp139_, _tmp140_, _tmp141_);
2137 _tmp142_ = open_list;
2171 _tmp143_ = nbest_node;2138 _tmp143_ = nbest_node;
2172 _tmp144_ = current_nbest_node;2139 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp142_, _tmp143_);
2173 _tmp145_ = _kkc_nbest_node_ref0 (_tmp144_);
2174 _kkc_nbest_node_unref0 (_tmp143_->next);
2175 _tmp143_->next = _tmp145_;
2176 _tmp146_ = trellis_nbest_map;
2177 _tmp147_ = trellis_node;
2178 _tmp148_ = nbest_node;
2179 gee_abstract_map_set ((GeeAbstractMap*) _tmp146_, _tmp147_, _tmp148_);
2180 _tmp149_ = open_list;
2181 _tmp150_ = nbest_node;
2182 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp149_, _tmp150_);
2183 _kkc_nbest_node_unref0 (nbest_node);2140 _kkc_nbest_node_unref0 (nbest_node);
2184 _kkc_trellis_node_unref0 (trellis_node);2141 _kkc_trellis_node_unref0 (trellis_node);
2185 }2142 }
@@ -2189,53 +2146,53 @@
2189 }2146 }
2190 _kkc_nbest_node_unref0 (current_nbest_node);2147 _kkc_nbest_node_unref0 (current_nbest_node);
2191 }2148 }
2192 _tmp151_ = gee_array_list_new (KKC_TYPE_SEGMENT, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);2149 _tmp144_ = gee_array_list_new (KKC_TYPE_SEGMENT, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
2193 segments = _tmp151_;2150 segments = _tmp144_;
2194 {2151 {
2195 GeeIterator* _nbest_node_it = NULL;2152 GeeIterator* _nbest_node_it = NULL;
2196 GeePriorityQueue* _tmp152_ = NULL;2153 GeePriorityQueue* _tmp145_ = NULL;
2197 GeeIterator* _tmp153_ = NULL;2154 GeeIterator* _tmp146_ = NULL;
2198 _tmp152_ = close_list;2155 _tmp145_ = close_list;
2199 _tmp153_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp152_);2156 _tmp146_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp145_);
2200 _nbest_node_it = _tmp153_;2157 _nbest_node_it = _tmp146_;
2201 while (TRUE) {2158 while (TRUE) {
2202 GeeIterator* _tmp154_ = NULL;2159 GeeIterator* _tmp147_ = NULL;
2203 gboolean _tmp155_ = FALSE;2160 gboolean _tmp148_ = FALSE;
2204 KkcNbestNode* nbest_node = NULL;2161 KkcNbestNode* nbest_node = NULL;
2205 GeeIterator* _tmp156_ = NULL;2162 GeeIterator* _tmp149_ = NULL;
2206 gpointer _tmp157_ = NULL;2163 gpointer _tmp150_ = NULL;
2207 GeeArrayList* _tmp158_ = NULL;2164 GeeArrayList* _tmp151_ = NULL;
2208 KkcNbestNode* _tmp159_ = NULL;2165 KkcNbestNode* _tmp152_ = NULL;
2209 KkcNbestNode* _tmp160_ = NULL;2166 KkcNbestNode* _tmp153_ = NULL;
2210 KkcSegment* _tmp161_ = NULL;2167 KkcSegment* _tmp154_ = NULL;
2211 KkcSegment* _tmp162_ = NULL;2168 KkcSegment* _tmp155_ = NULL;
2212 _tmp154_ = _nbest_node_it;2169 _tmp147_ = _nbest_node_it;
2213 _tmp155_ = gee_iterator_next (_tmp154_);2170 _tmp148_ = gee_iterator_next (_tmp147_);
2214 if (!_tmp155_) {2171 if (!_tmp148_) {
2215 break;2172 break;
2216 }2173 }
2217 _tmp156_ = _nbest_node_it;2174 _tmp149_ = _nbest_node_it;
2218 _tmp157_ = gee_iterator_get (_tmp156_);2175 _tmp150_ = gee_iterator_get (_tmp149_);
2219 nbest_node = (KkcNbestNode*) _tmp157_;2176 nbest_node = (KkcNbestNode*) _tmp150_;
2220 _tmp158_ = segments;2177 _tmp151_ = segments;
2221 _tmp159_ = nbest_node;2178 _tmp152_ = nbest_node;
2222 _tmp160_ = _tmp159_->next;2179 _tmp153_ = _tmp152_->next;
2223 _tmp161_ = kkc_bigram_decoder_nbest_node_to_segment (self, _tmp160_);2180 _tmp154_ = kkc_bigram_decoder_nbest_node_to_segment (self, _tmp153_);
2224 _tmp162_ = _tmp161_;2181 _tmp155_ = _tmp154_;
2225 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp158_, _tmp162_);2182 gee_abstract_collection_add ((GeeAbstractCollection*) _tmp151_, _tmp155_);
2226 _g_object_unref0 (_tmp162_);2183 _g_object_unref0 (_tmp155_);
2227 _kkc_nbest_node_unref0 (nbest_node);2184 _kkc_nbest_node_unref0 (nbest_node);
2228 }2185 }
2229 _g_object_unref0 (_nbest_node_it);2186 _g_object_unref0 (_nbest_node_it);
2230 }2187 }
2231 _tmp163_ = segments;2188 _tmp156_ = segments;
2232 _tmp165_ = gee_abstract_collection_to_array ((GeeAbstractCollection*) _tmp163_, &_tmp164_);2189 _tmp158_ = gee_collection_to_array ((GeeCollection*) _tmp156_, &_tmp157_);
2233 _tmp166_ = _tmp165_;2190 _tmp159_ = _tmp158_;
2234 _tmp166__length1 = _tmp164_;2191 _tmp159__length1 = _tmp157_;
2235 if (result_length1) {2192 if (result_length1) {
2236 *result_length1 = _tmp166__length1;2193 *result_length1 = _tmp159__length1;
2237 }2194 }
2238 result = _tmp166_;2195 result = _tmp159_;
2239 _g_object_unref0 (segments);2196 _g_object_unref0 (segments);
2240 _kkc_nbest_node_unref0 (eos_nbest_node);2197 _kkc_nbest_node_unref0 (eos_nbest_node);
2241 _g_object_unref0 (duplicates);2198 _g_object_unref0 (duplicates);
@@ -2358,9 +2315,9 @@
2358static void kkc_bigram_decoder_class_init (KkcBigramDecoderClass * klass) {2315static void kkc_bigram_decoder_class_init (KkcBigramDecoderClass * klass) {
2359 kkc_bigram_decoder_parent_class = g_type_class_peek_parent (klass);2316 kkc_bigram_decoder_parent_class = g_type_class_peek_parent (klass);
2360 g_type_class_add_private (klass, sizeof (KkcBigramDecoderPrivate));2317 g_type_class_add_private (klass, sizeof (KkcBigramDecoderPrivate));
2361 KKC_DECODER_CLASS (klass)->decode = kkc_bigram_decoder_real_decode;2318 ((KkcDecoderClass *) klass)->decode = kkc_bigram_decoder_real_decode;
2362 KKC_DECODER_CLASS (klass)->decode_with_costs = kkc_bigram_decoder_real_decode_with_costs;2319 ((KkcDecoderClass *) klass)->decode_with_costs = kkc_bigram_decoder_real_decode_with_costs;
2363 KKC_BIGRAM_DECODER_CLASS (klass)->path_cost = kkc_bigram_decoder_real_path_cost;2320 ((KkcBigramDecoderClass *) klass)->path_cost = kkc_bigram_decoder_real_path_cost;
2364 G_OBJECT_CLASS (klass)->get_property = _vala_kkc_bigram_decoder_get_property;2321 G_OBJECT_CLASS (klass)->get_property = _vala_kkc_bigram_decoder_get_property;
2365 G_OBJECT_CLASS (klass)->finalize = kkc_bigram_decoder_finalize;2322 G_OBJECT_CLASS (klass)->finalize = kkc_bigram_decoder_finalize;
2366 g_object_class_install_property (G_OBJECT_CLASS (klass), KKC_BIGRAM_DECODER_MODEL, g_param_spec_object ("model", "model", "model", KKC_TYPE_BIGRAM_LANGUAGE_MODEL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));2323 g_object_class_install_property (G_OBJECT_CLASS (klass), KKC_BIGRAM_DECODER_MODEL, g_param_spec_object ("model", "model", "model", KKC_TYPE_BIGRAM_LANGUAGE_MODEL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
23672324
=== modified file 'libkkc/bigram-decoder.vala'
--- libkkc/bigram-decoder.vala 2014-02-26 22:51:39 +0000
+++ libkkc/bigram-decoder.vala 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>2 * Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
3 * Copyright (C) 2012-2013 Red Hat, Inc.3 * Copyright (C) 2012-2014 Red Hat, Inc.
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by6 * it under the terms of the GNU General Public License as published by
@@ -228,17 +228,13 @@
228 return new Segment[] { segment };228 return new Segment[] { segment };
229 }229 }
230230
231 var trellis_nbest_map = new HashMap<TrellisNode,NbestNode> (231 var trellis_nbest_map = new HashMap<TrellisNode,NbestNode> ();
232 direct_hash,232
233 direct_equal);233 var open_list = new PriorityQueue<NbestNode> (compare_nbest_node);
234234
235 var open_list = new PriorityQueue<NbestNode> (235 var close_list = new PriorityQueue<NbestNode> (compare_nbest_node);
236 (CompareFunc)compare_nbest_node);236
237237 var duplicates = new Gee.HashSet<string> ();
238 var close_list = new PriorityQueue<NbestNode> (
239 (CompareFunc)compare_nbest_node);
240
241 var duplicates = new HashSet<string> (str_hash, str_equal);
242238
243 var eos_nbest_node = new NbestNode (eos_trellis_node);239 var eos_nbest_node = new NbestNode (eos_trellis_node);
244 trellis_nbest_map.set (eos_trellis_node, eos_nbest_node);240 trellis_nbest_map.set (eos_trellis_node, eos_nbest_node);
245241
=== modified file 'libkkc/bloom-filter.c'
--- libkkc/bloom-filter.c 2014-06-15 23:27:57 +0000
+++ libkkc/bloom-filter.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* bloom-filter.c generated by valac 0.22.1, the Vala compiler1/* bloom-filter.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from bloom-filter.vala, do not modify */2 * generated from bloom-filter.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2012-2013 Red Hat, Inc.6 * Copyright (C) 2012-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -160,19 +160,23 @@
160 GMappedFile* _tmp0_ = NULL;160 GMappedFile* _tmp0_ = NULL;
161 const gchar* _tmp1_ = NULL;161 const gchar* _tmp1_ = NULL;
162 GMappedFile* _tmp2_ = NULL;162 GMappedFile* _tmp2_ = NULL;
163 GMappedFile* _tmp3_ = NULL;
163 GError * _inner_error_ = NULL;164 GError * _inner_error_ = NULL;
164 g_return_val_if_fail (filename != NULL, NULL);165 g_return_val_if_fail (filename != NULL, NULL);
165 self = (KkcBloomFilter*) g_object_new (object_type, NULL);166 self = (KkcBloomFilter*) g_object_new (object_type, NULL);
166 _tmp1_ = filename;167 _tmp1_ = filename;
167 _tmp2_ = g_mapped_file_new (_tmp1_, FALSE, &_inner_error_);168 _tmp2_ = g_mapped_file_new (_tmp1_, FALSE, &_inner_error_);
168 _tmp0_ = _tmp2_;169 _tmp0_ = _tmp2_;
169 if (_inner_error_ != NULL) {170 if (G_UNLIKELY (_inner_error_ != NULL)) {
170 g_propagate_error (error, _inner_error_);171 g_propagate_error (error, _inner_error_);
171 _g_object_unref0 (self);172 _g_object_unref0 (self);
172 return NULL;173 return NULL;
173 }174 }
175 _tmp3_ = _tmp0_;
176 _tmp0_ = NULL;
174 _g_mapped_file_unref0 (self->priv->mmap);177 _g_mapped_file_unref0 (self->priv->mmap);
175 self->priv->mmap = _tmp0_;178 self->priv->mmap = _tmp3_;
179 _g_mapped_file_unref0 (_tmp0_);
176 return self;180 return self;
177}181}
178182
@@ -217,42 +221,40 @@
217 gboolean _tmp0_ = FALSE;221 gboolean _tmp0_ = FALSE;
218 _tmp0_ = TRUE;222 _tmp0_ = TRUE;
219 while (TRUE) {223 while (TRUE) {
220 gboolean _tmp1_ = FALSE;224 gint _tmp2_ = 0;
221 gint _tmp3_ = 0;
222 guint32 h = 0U;225 guint32 h = 0U;
226 guint32 _tmp3_ = 0U;
223 guint32 _tmp4_ = 0U;227 guint32 _tmp4_ = 0U;
224 guint32 _tmp5_ = 0U;228 gint _tmp5_ = 0;
225 gint _tmp6_ = 0;229 guint32 _tmp6_ = 0U;
230 guint32 i = 0U;
226 guint32 _tmp7_ = 0U;231 guint32 _tmp7_ = 0U;
227 guint32 i = 0U;232 GMappedFile* _tmp8_ = NULL;
228 guint32 _tmp8_ = 0U;233 gsize _tmp9_ = 0UL;
229 GMappedFile* _tmp9_ = NULL;234 guint32 _tmp10_ = 0U;
230 gsize _tmp10_ = 0UL;235 gboolean _tmp11_ = FALSE;
231 guint32 _tmp11_ = 0U;236 if (!_tmp0_) {
232 gboolean _tmp12_ = FALSE;237 gint _tmp1_ = 0;
233 _tmp1_ = _tmp0_;238 _tmp1_ = k;
234 if (!_tmp1_) {239 k = _tmp1_ + 1;
235 gint _tmp2_ = 0;
236 _tmp2_ = k;
237 k = _tmp2_ + 1;
238 }240 }
239 _tmp0_ = FALSE;241 _tmp0_ = FALSE;
240 _tmp3_ = k;242 _tmp2_ = k;
241 if (!(_tmp3_ < 4)) {243 if (!(_tmp2_ < 4)) {
242 break;244 break;
243 }245 }
244 _tmp4_ = b0;246 _tmp3_ = b0;
245 _tmp5_ = b1;247 _tmp4_ = b1;
246 _tmp6_ = k;248 _tmp5_ = k;
247 _tmp7_ = kkc_murmur_hash3_32 (_tmp4_, _tmp5_, (guint32) _tmp6_);249 _tmp6_ = kkc_murmur_hash3_32 (_tmp3_, _tmp4_, (guint32) _tmp5_);
248 h = _tmp7_;250 h = _tmp6_;
249 _tmp8_ = h;251 _tmp7_ = h;
250 _tmp9_ = self->priv->mmap;252 _tmp8_ = self->priv->mmap;
251 _tmp10_ = g_mapped_file_get_length (_tmp9_);253 _tmp9_ = g_mapped_file_get_length (_tmp8_);
252 i = (guint32) (_tmp8_ * ((_tmp10_ * 8) / ((gdouble) 0xFFFFFFFFLL)));254 i = (guint32) (_tmp7_ * ((_tmp9_ * 8) / ((gdouble) 0xFFFFFFFFLL)));
253 _tmp11_ = i;255 _tmp10_ = i;
254 _tmp12_ = kkc_bloom_filter_is_bit_set (self, _tmp11_);256 _tmp11_ = kkc_bloom_filter_is_bit_set (self, _tmp10_);
255 if (!_tmp12_) {257 if (!_tmp11_) {
256 result = FALSE;258 result = FALSE;
257 return result;259 return result;
258 }260 }
259261
=== modified file 'libkkc/bloom-filter.vala'
--- libkkc/bloom-filter.vala 2014-02-26 22:51:39 +0000
+++ libkkc/bloom-filter.vala 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>2 * Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
3 * Copyright (C) 2012-2013 Red Hat, Inc.3 * Copyright (C) 2012-2014 Red Hat, Inc.
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by6 * it under the terms of the GNU General Public License as published by
77
=== modified file 'libkkc/candidate-list.c'
--- libkkc/candidate-list.c 2014-06-15 23:27:57 +0000
+++ libkkc/candidate-list.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* candidate-list.c generated by valac 0.22.1, the Vala compiler1/* candidate-list.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from candidate-list.vala, do not modify */2 * generated from candidate-list.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2011-2013 Red Hat, Inc.6 * Copyright (C) 2011-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -134,10 +134,9 @@
134 gint _tmp0_ = 0;134 gint _tmp0_ = 0;
135 gboolean _tmp2_ = FALSE;135 gboolean _tmp2_ = FALSE;
136 gint _tmp3_ = 0;136 gint _tmp3_ = 0;
137 gboolean _tmp7_ = FALSE;137 GeeArrayList* _tmp7_ = NULL;
138 GeeArrayList* _tmp8_ = NULL;138 gint _tmp8_ = 0;
139 gint _tmp9_ = 0;139 gpointer _tmp9_ = NULL;
140 gpointer _tmp10_ = NULL;
141 g_return_val_if_fail (self != NULL, NULL);140 g_return_val_if_fail (self != NULL, NULL);
142 _tmp0_ = index;141 _tmp0_ = index;
143 if (_tmp0_ < 0) {142 if (_tmp0_ < 0) {
@@ -157,12 +156,11 @@
157 } else {156 } else {
158 _tmp2_ = FALSE;157 _tmp2_ = FALSE;
159 }158 }
160 _tmp7_ = _tmp2_;159 _vala_assert (_tmp2_, "0 <= index && index < size");
161 _vala_assert (_tmp7_, "0 <= index && index < size");160 _tmp7_ = self->priv->_candidates;
162 _tmp8_ = self->priv->_candidates;161 _tmp8_ = index;
163 _tmp9_ = index;162 _tmp9_ = gee_abstract_list_get ((GeeAbstractList*) _tmp7_, _tmp8_);
164 _tmp10_ = gee_abstract_list_get ((GeeAbstractList*) _tmp8_, _tmp9_);163 result = (KkcCandidate*) _tmp9_;
165 result = (KkcCandidate*) _tmp10_;
166 return result;164 return result;
167}165}
168166
@@ -337,7 +335,7 @@
337 gint _tmp3__length1 = 0;335 gint _tmp3__length1 = 0;
338 g_return_val_if_fail (self != NULL, NULL);336 g_return_val_if_fail (self != NULL, NULL);
339 _tmp0_ = self->priv->_candidates;337 _tmp0_ = self->priv->_candidates;
340 _tmp2_ = gee_abstract_collection_to_array ((GeeAbstractCollection*) _tmp0_, &_tmp1_);338 _tmp2_ = gee_collection_to_array ((GeeCollection*) _tmp0_, &_tmp1_);
341 _tmp3_ = _tmp2_;339 _tmp3_ = _tmp2_;
342 _tmp3__length1 = _tmp1_;340 _tmp3__length1 = _tmp1_;
343 if (result_length1) {341 if (result_length1) {
@@ -551,10 +549,9 @@
551 gboolean _tmp2_ = FALSE;549 gboolean _tmp2_ = FALSE;
552 gboolean _tmp3_ = FALSE;550 gboolean _tmp3_ = FALSE;
553 gboolean _tmp5_ = FALSE;551 gboolean _tmp5_ = FALSE;
554 gboolean _tmp6_ = FALSE;
555 g_return_val_if_fail (self != NULL, FALSE);552 g_return_val_if_fail (self != NULL, FALSE);
556 _tmp1_ = self->priv->_candidates;553 _tmp1_ = self->priv->_candidates;
557 _tmp2_ = gee_abstract_collection_get_is_empty ((GeeAbstractCollection*) _tmp1_);554 _tmp2_ = gee_collection_get_is_empty ((GeeCollection*) _tmp1_);
558 _tmp3_ = _tmp2_;555 _tmp3_ = _tmp2_;
559 if (_tmp3_) {556 if (_tmp3_) {
560 _tmp0_ = TRUE;557 _tmp0_ = TRUE;
@@ -563,30 +560,156 @@
563 _tmp4_ = step;560 _tmp4_ = step;
564 _tmp0_ = _tmp4_ == 0;561 _tmp0_ = _tmp4_ == 0;
565 }562 }
566 _tmp5_ = _tmp0_;563 if (_tmp0_) {
567 if (_tmp5_) {
568 result = FALSE;564 result = FALSE;
569 return result;565 return result;
570 }566 }
571 _tmp6_ = self->priv->_round;567 _tmp5_ = self->priv->_round;
572 if (_tmp6_) {568 if (_tmp5_) {
573 gint pos = 0;569 gint pos = 0;
570 gint _tmp6_ = 0;
574 gint _tmp7_ = 0;571 gint _tmp7_ = 0;
572 GeeArrayList* _tmp8_ = NULL;
573 gint _tmp9_ = 0;
574 gint _tmp10_ = 0;
575 gint _tmp11_ = 0;
576 gint _tmp16_ = 0;
577 _tmp6_ = self->priv->_cursor_pos;
578 _tmp7_ = step;
579 _tmp8_ = self->priv->_candidates;
580 _tmp9_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp8_);
581 _tmp10_ = _tmp9_;
582 pos = (_tmp6_ + _tmp7_) % _tmp10_;
583 _tmp11_ = pos;
584 if (_tmp11_ < 0) {
585 gint _tmp12_ = 0;
586 GeeArrayList* _tmp13_ = NULL;
587 gint _tmp14_ = 0;
588 gint _tmp15_ = 0;
589 _tmp12_ = pos;
590 _tmp13_ = self->priv->_candidates;
591 _tmp14_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp13_);
592 _tmp15_ = _tmp14_;
593 pos = _tmp12_ + _tmp15_;
594 }
595 _tmp16_ = pos;
596 self->priv->_cursor_pos = _tmp16_;
597 g_object_notify ((GObject*) self, "cursor-pos");
598 result = TRUE;
599 return result;
600 } else {
601 gint pos = 0;
602 gint _tmp17_ = 0;
603 gint _tmp18_ = 0;
604 gboolean _tmp19_ = FALSE;
605 gint _tmp20_ = 0;
606 _tmp17_ = self->priv->_cursor_pos;
607 _tmp18_ = step;
608 pos = _tmp17_ + _tmp18_;
609 _tmp20_ = pos;
610 if (0 <= _tmp20_) {
611 gint _tmp21_ = 0;
612 GeeArrayList* _tmp22_ = NULL;
613 gint _tmp23_ = 0;
614 gint _tmp24_ = 0;
615 _tmp21_ = pos;
616 _tmp22_ = self->priv->_candidates;
617 _tmp23_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp22_);
618 _tmp24_ = _tmp23_;
619 _tmp19_ = _tmp21_ < _tmp24_;
620 } else {
621 _tmp19_ = FALSE;
622 }
623 if (_tmp19_) {
624 gint _tmp25_ = 0;
625 _tmp25_ = pos;
626 self->priv->_cursor_pos = _tmp25_;
627 g_object_notify ((GObject*) self, "cursor-pos");
628 result = TRUE;
629 return result;
630 }
631 }
632 result = FALSE;
633 return result;
634}
635
636
637/**
638 * Move cursor to the previous candidate.
639 *
640 * @return `true` if cursor position has changed, `false` otherwise.
641 */
642gboolean kkc_candidate_list_cursor_up (KkcCandidateList* self) {
643 gboolean result = FALSE;
644 gboolean _tmp0_ = FALSE;
645 g_return_val_if_fail (self != NULL, FALSE);
646 _tmp0_ = kkc_candidate_list_cursor_move (self, -1);
647 result = _tmp0_;
648 return result;
649}
650
651
652/**
653 * Move cursor to the next candidate.
654 *
655 * @return `true` if cursor position has changed, `false` otherwise
656 */
657gboolean kkc_candidate_list_cursor_down (KkcCandidateList* self) {
658 gboolean result = FALSE;
659 gboolean _tmp0_ = FALSE;
660 g_return_val_if_fail (self != NULL, FALSE);
661 _tmp0_ = kkc_candidate_list_cursor_move (self, 1);
662 result = _tmp0_;
663 return result;
664}
665
666
667static gboolean kkc_candidate_list_page_move (KkcCandidateList* self, gint step) {
668 gboolean result = FALSE;
669 gboolean _tmp0_ = FALSE;
670 GeeArrayList* _tmp1_ = NULL;
671 gboolean _tmp2_ = FALSE;
672 gboolean _tmp3_ = FALSE;
673 gboolean _tmp5_ = FALSE;
674 g_return_val_if_fail (self != NULL, FALSE);
675 _tmp1_ = self->priv->_candidates;
676 _tmp2_ = gee_collection_get_is_empty ((GeeCollection*) _tmp1_);
677 _tmp3_ = _tmp2_;
678 if (_tmp3_) {
679 _tmp0_ = TRUE;
680 } else {
681 gint _tmp4_ = 0;
682 _tmp4_ = step;
683 _tmp0_ = _tmp4_ == 0;
684 }
685 if (_tmp0_) {
686 result = FALSE;
687 return result;
688 }
689 _tmp5_ = self->priv->_round;
690 if (_tmp5_) {
691 guint pos = 0U;
692 gint _tmp6_ = 0;
693 guint _tmp7_ = 0U;
575 gint _tmp8_ = 0;694 gint _tmp8_ = 0;
576 GeeArrayList* _tmp9_ = NULL;695 GeeArrayList* _tmp9_ = NULL;
577 gint _tmp10_ = 0;696 gint _tmp10_ = 0;
578 gint _tmp11_ = 0;697 gint _tmp11_ = 0;
579 gint _tmp12_ = 0;698 guint _tmp12_ = 0U;
580 gint _tmp17_ = 0;699 guint _tmp17_ = 0U;
581 _tmp7_ = self->priv->_cursor_pos;700 guint _tmp18_ = 0U;
701 guint _tmp19_ = 0U;
702 gint _tmp20_ = 0;
703 _tmp6_ = self->priv->_cursor_pos;
704 _tmp7_ = self->priv->_page_size;
582 _tmp8_ = step;705 _tmp8_ = step;
583 _tmp9_ = self->priv->_candidates;706 _tmp9_ = self->priv->_candidates;
584 _tmp10_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp9_);707 _tmp10_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp9_);
585 _tmp11_ = _tmp10_;708 _tmp11_ = _tmp10_;
586 pos = (_tmp7_ + _tmp8_) % _tmp11_;709 pos = (_tmp6_ + (_tmp7_ * _tmp8_)) % _tmp11_;
587 _tmp12_ = pos;710 _tmp12_ = pos;
588 if (_tmp12_ < 0) {711 if (_tmp12_ < ((guint) 0)) {
589 gint _tmp13_ = 0;712 guint _tmp13_ = 0U;
590 GeeArrayList* _tmp14_ = NULL;713 GeeArrayList* _tmp14_ = NULL;
591 gint _tmp15_ = 0;714 gint _tmp15_ = 0;
592 gint _tmp16_ = 0;715 gint _tmp16_ = 0;
@@ -597,190 +720,57 @@
597 pos = _tmp13_ + _tmp16_;720 pos = _tmp13_ + _tmp16_;
598 }721 }
599 _tmp17_ = pos;722 _tmp17_ = pos;
600 self->priv->_cursor_pos = _tmp17_;723 _tmp18_ = kkc_candidate_list_get_page_start_cursor_pos (self, _tmp17_);
601 g_object_notify ((GObject*) self, "cursor-pos");724 pos = _tmp18_;
602 result = TRUE;725 _tmp19_ = pos;
603 return result;726 _tmp20_ = self->priv->_cursor_pos;
727 if (_tmp19_ != ((guint) _tmp20_)) {
728 guint _tmp21_ = 0U;
729 _tmp21_ = pos;
730 self->priv->_cursor_pos = (gint) _tmp21_;
731 g_object_notify ((GObject*) self, "cursor-pos");
732 result = TRUE;
733 return result;
734 }
604 } else {735 } else {
605 gint pos = 0;736 guint pos = 0U;
606 gint _tmp18_ = 0;737 gint _tmp22_ = 0;
607 gint _tmp19_ = 0;738 guint _tmp23_ = 0U;
608 gboolean _tmp20_ = FALSE;739 gint _tmp24_ = 0;
609 gint _tmp21_ = 0;740 gboolean _tmp25_ = FALSE;
610 gboolean _tmp26_ = FALSE;741 guint _tmp26_ = 0U;
611 _tmp18_ = self->priv->_cursor_pos;742 _tmp22_ = self->priv->_cursor_pos;
612 _tmp19_ = step;743 _tmp23_ = self->priv->_page_size;
613 pos = _tmp18_ + _tmp19_;744 _tmp24_ = step;
614 _tmp21_ = pos;745 pos = _tmp22_ + (_tmp23_ * _tmp24_);
615 if (0 <= _tmp21_) {746 _tmp26_ = pos;
616 gint _tmp22_ = 0;747 if (((guint) 0) <= _tmp26_) {
617 GeeArrayList* _tmp23_ = NULL;748 guint _tmp27_ = 0U;
618 gint _tmp24_ = 0;749 GeeArrayList* _tmp28_ = NULL;
619 gint _tmp25_ = 0;750 gint _tmp29_ = 0;
620 _tmp22_ = pos;751 gint _tmp30_ = 0;
621 _tmp23_ = self->priv->_candidates;
622 _tmp24_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp23_);
623 _tmp25_ = _tmp24_;
624 _tmp20_ = _tmp22_ < _tmp25_;
625 } else {
626 _tmp20_ = FALSE;
627 }
628 _tmp26_ = _tmp20_;
629 if (_tmp26_) {
630 gint _tmp27_ = 0;
631 _tmp27_ = pos;752 _tmp27_ = pos;
632 self->priv->_cursor_pos = _tmp27_;753 _tmp28_ = self->priv->_candidates;
633 g_object_notify ((GObject*) self, "cursor-pos");754 _tmp29_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp28_);
634 result = TRUE;755 _tmp30_ = _tmp29_;
635 return result;756 _tmp25_ = _tmp27_ < ((guint) _tmp30_);
636 }
637 }
638 result = FALSE;
639 return result;
640}
641
642
643/**
644 * Move cursor to the previous candidate.
645 *
646 * @return `true` if cursor position has changed, `false` otherwise.
647 */
648gboolean kkc_candidate_list_cursor_up (KkcCandidateList* self) {
649 gboolean result = FALSE;
650 gboolean _tmp0_ = FALSE;
651 g_return_val_if_fail (self != NULL, FALSE);
652 _tmp0_ = kkc_candidate_list_cursor_move (self, -1);
653 result = _tmp0_;
654 return result;
655}
656
657
658/**
659 * Move cursor to the next candidate.
660 *
661 * @return `true` if cursor position has changed, `false` otherwise
662 */
663gboolean kkc_candidate_list_cursor_down (KkcCandidateList* self) {
664 gboolean result = FALSE;
665 gboolean _tmp0_ = FALSE;
666 g_return_val_if_fail (self != NULL, FALSE);
667 _tmp0_ = kkc_candidate_list_cursor_move (self, 1);
668 result = _tmp0_;
669 return result;
670}
671
672
673static gboolean kkc_candidate_list_page_move (KkcCandidateList* self, gint step) {
674 gboolean result = FALSE;
675 gboolean _tmp0_ = FALSE;
676 GeeArrayList* _tmp1_ = NULL;
677 gboolean _tmp2_ = FALSE;
678 gboolean _tmp3_ = FALSE;
679 gboolean _tmp5_ = FALSE;
680 gboolean _tmp6_ = FALSE;
681 g_return_val_if_fail (self != NULL, FALSE);
682 _tmp1_ = self->priv->_candidates;
683 _tmp2_ = gee_abstract_collection_get_is_empty ((GeeAbstractCollection*) _tmp1_);
684 _tmp3_ = _tmp2_;
685 if (_tmp3_) {
686 _tmp0_ = TRUE;
687 } else {
688 gint _tmp4_ = 0;
689 _tmp4_ = step;
690 _tmp0_ = _tmp4_ == 0;
691 }
692 _tmp5_ = _tmp0_;
693 if (_tmp5_) {
694 result = FALSE;
695 return result;
696 }
697 _tmp6_ = self->priv->_round;
698 if (_tmp6_) {
699 guint pos = 0U;
700 gint _tmp7_ = 0;
701 guint _tmp8_ = 0U;
702 gint _tmp9_ = 0;
703 GeeArrayList* _tmp10_ = NULL;
704 gint _tmp11_ = 0;
705 gint _tmp12_ = 0;
706 guint _tmp13_ = 0U;
707 guint _tmp18_ = 0U;
708 guint _tmp19_ = 0U;
709 guint _tmp20_ = 0U;
710 gint _tmp21_ = 0;
711 _tmp7_ = self->priv->_cursor_pos;
712 _tmp8_ = self->priv->_page_size;
713 _tmp9_ = step;
714 _tmp10_ = self->priv->_candidates;
715 _tmp11_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp10_);
716 _tmp12_ = _tmp11_;
717 pos = (_tmp7_ + (_tmp8_ * _tmp9_)) % _tmp12_;
718 _tmp13_ = pos;
719 if (_tmp13_ < ((guint) 0)) {
720 guint _tmp14_ = 0U;
721 GeeArrayList* _tmp15_ = NULL;
722 gint _tmp16_ = 0;
723 gint _tmp17_ = 0;
724 _tmp14_ = pos;
725 _tmp15_ = self->priv->_candidates;
726 _tmp16_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp15_);
727 _tmp17_ = _tmp16_;
728 pos = _tmp14_ + _tmp17_;
729 }
730 _tmp18_ = pos;
731 _tmp19_ = kkc_candidate_list_get_page_start_cursor_pos (self, _tmp18_);
732 pos = _tmp19_;
733 _tmp20_ = pos;
734 _tmp21_ = self->priv->_cursor_pos;
735 if (_tmp20_ != ((guint) _tmp21_)) {
736 guint _tmp22_ = 0U;
737 _tmp22_ = pos;
738 self->priv->_cursor_pos = (gint) _tmp22_;
739 g_object_notify ((GObject*) self, "cursor-pos");
740 result = TRUE;
741 return result;
742 }
743 } else {
744 guint pos = 0U;
745 gint _tmp23_ = 0;
746 guint _tmp24_ = 0U;
747 gint _tmp25_ = 0;
748 gboolean _tmp26_ = FALSE;
749 guint _tmp27_ = 0U;
750 gboolean _tmp32_ = FALSE;
751 _tmp23_ = self->priv->_cursor_pos;
752 _tmp24_ = self->priv->_page_size;
753 _tmp25_ = step;
754 pos = _tmp23_ + (_tmp24_ * _tmp25_);
755 _tmp27_ = pos;
756 if (((guint) 0) <= _tmp27_) {
757 guint _tmp28_ = 0U;
758 GeeArrayList* _tmp29_ = NULL;
759 gint _tmp30_ = 0;
760 gint _tmp31_ = 0;
761 _tmp28_ = pos;
762 _tmp29_ = self->priv->_candidates;
763 _tmp30_ = gee_abstract_collection_get_size ((GeeCollection*) _tmp29_);
764 _tmp31_ = _tmp30_;
765 _tmp26_ = _tmp28_ < ((guint) _tmp31_);
766 } else {757 } else {
767 _tmp26_ = FALSE;758 _tmp25_ = FALSE;
768 }759 }
769 _tmp32_ = _tmp26_;760 if (_tmp25_) {
770 if (_tmp32_) {761 guint _tmp31_ = 0U;
762 guint _tmp32_ = 0U;
771 guint _tmp33_ = 0U;763 guint _tmp33_ = 0U;
772 guint _tmp34_ = 0U;764 gint _tmp34_ = 0;
773 guint _tmp35_ = 0U;765 _tmp31_ = pos;
774 gint _tmp36_ = 0;766 _tmp32_ = kkc_candidate_list_get_page_start_cursor_pos (self, _tmp31_);
767 pos = _tmp32_;
775 _tmp33_ = pos;768 _tmp33_ = pos;
776 _tmp34_ = kkc_candidate_list_get_page_start_cursor_pos (self, _tmp33_);769 _tmp34_ = self->priv->_cursor_pos;
777 pos = _tmp34_;770 if (_tmp33_ != ((guint) _tmp34_)) {
778 _tmp35_ = pos;771 guint _tmp35_ = 0U;
779 _tmp36_ = self->priv->_cursor_pos;772 _tmp35_ = pos;
780 if (_tmp35_ != ((guint) _tmp36_)) {773 self->priv->_cursor_pos = (gint) _tmp35_;
781 guint _tmp37_ = 0U;
782 _tmp37_ = pos;
783 self->priv->_cursor_pos = (gint) _tmp37_;
784 g_object_notify ((GObject*) self, "cursor-pos");774 g_object_notify ((GObject*) self, "cursor-pos");
785 result = TRUE;775 result = TRUE;
786 return result;776 return result;
@@ -927,8 +917,8 @@
927static void kkc_candidate_list_class_init (KkcCandidateListClass * klass) {917static void kkc_candidate_list_class_init (KkcCandidateListClass * klass) {
928 kkc_candidate_list_parent_class = g_type_class_peek_parent (klass);918 kkc_candidate_list_parent_class = g_type_class_peek_parent (klass);
929 g_type_class_add_private (klass, sizeof (KkcCandidateListPrivate));919 g_type_class_add_private (klass, sizeof (KkcCandidateListPrivate));
930 KKC_CANDIDATE_LIST_CLASS (klass)->next = kkc_candidate_list_real_next;920 ((KkcCandidateListClass *) klass)->next = kkc_candidate_list_real_next;
931 KKC_CANDIDATE_LIST_CLASS (klass)->previous = kkc_candidate_list_real_previous;921 ((KkcCandidateListClass *) klass)->previous = kkc_candidate_list_real_previous;
932 G_OBJECT_CLASS (klass)->get_property = _vala_kkc_candidate_list_get_property;922 G_OBJECT_CLASS (klass)->get_property = _vala_kkc_candidate_list_get_property;
933 G_OBJECT_CLASS (klass)->set_property = _vala_kkc_candidate_list_set_property;923 G_OBJECT_CLASS (klass)->set_property = _vala_kkc_candidate_list_set_property;
934 G_OBJECT_CLASS (klass)->finalize = kkc_candidate_list_finalize;924 G_OBJECT_CLASS (klass)->finalize = kkc_candidate_list_finalize;
@@ -973,9 +963,9 @@
973 GeeArrayList* _tmp0_ = NULL;963 GeeArrayList* _tmp0_ = NULL;
974 GeeHashSet* _tmp1_ = NULL;964 GeeHashSet* _tmp1_ = NULL;
975 self->priv = KKC_CANDIDATE_LIST_GET_PRIVATE (self);965 self->priv = KKC_CANDIDATE_LIST_GET_PRIVATE (self);
976 _tmp0_ = gee_array_list_new (KKC_TYPE_CANDIDATE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);966 _tmp0_ = gee_array_list_new (KKC_TYPE_CANDIDATE, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
977 self->priv->_candidates = _tmp0_;967 self->priv->_candidates = _tmp0_;
978 _tmp1_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);968 _tmp1_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL, NULL, NULL, NULL);
979 self->priv->seen = (GeeSet*) _tmp1_;969 self->priv->seen = (GeeSet*) _tmp1_;
980}970}
981971
982972
=== modified file 'libkkc/candidate-list.vala'
--- libkkc/candidate-list.vala 2014-02-26 22:51:39 +0000
+++ libkkc/candidate-list.vala 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>2 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
3 * Copyright (C) 2011-2013 Red Hat, Inc.3 * Copyright (C) 2011-2014 Red Hat, Inc.
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by6 * it under the terms of the GNU General Public License as published by
@@ -63,7 +63,7 @@
63 }63 }
64 }64 }
6565
66 Set<string> seen = new HashSet<string> ();66 Set<string> seen = new Gee.HashSet<string> ();
6767
68 internal void clear () {68 internal void clear () {
69 bool is_populated = false;69 bool is_populated = false;
7070
=== modified file 'libkkc/candidate.c'
--- libkkc/candidate.c 2014-06-15 23:27:57 +0000
+++ libkkc/candidate.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* candidate.c generated by valac 0.22.1, the Vala compiler1/* candidate.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from candidate.vala, do not modify */2 * generated from candidate.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2011-2013 Red Hat, Inc.6 * Copyright (C) 2011-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -140,7 +140,6 @@
140 const gchar* _tmp3_ = NULL;140 const gchar* _tmp3_ = NULL;
141 const gchar* _tmp4_ = NULL;141 const gchar* _tmp4_ = NULL;
142 const gchar* _tmp5_ = NULL;142 const gchar* _tmp5_ = NULL;
143 const gchar* _tmp8_ = NULL;
144 g_return_val_if_fail (midasi != NULL, NULL);143 g_return_val_if_fail (midasi != NULL, NULL);
145 g_return_val_if_fail (text != NULL, NULL);144 g_return_val_if_fail (text != NULL, NULL);
146 self = (KkcCandidate*) g_object_new (object_type, NULL);145 self = (KkcCandidate*) g_object_new (object_type, NULL);
@@ -162,8 +161,7 @@
162 _tmp7_ = output;161 _tmp7_ = output;
163 _tmp4_ = _tmp7_;162 _tmp4_ = _tmp7_;
164 }163 }
165 _tmp8_ = _tmp4_;164 kkc_candidate_set_output (self, _tmp4_);
166 kkc_candidate_set_output (self, _tmp8_);
167 return self;165 return self;
168}166}
169167
170168
=== modified file 'libkkc/candidate.vala'
--- libkkc/candidate.vala 2014-02-26 22:51:39 +0000
+++ libkkc/candidate.vala 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>2 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
3 * Copyright (C) 2011-2013 Red Hat, Inc.3 * Copyright (C) 2011-2014 Red Hat, Inc.
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by6 * it under the terms of the GNU General Public License as published by
77
=== modified file 'libkkc/context.c'
--- libkkc/context.c 2014-06-15 23:27:57 +0000
+++ libkkc/context.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* context.c generated by valac 0.22.1, the Vala compiler1/* context.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from context.vala, do not modify */2 * generated from context.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2011-2013 Red Hat, Inc.6 * Copyright (C) 2011-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -472,17 +472,17 @@
472472
473473
474static void _kkc_context_notify_input_mode_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {474static void _kkc_context_notify_input_mode_cb_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
475 kkc_context_notify_input_mode_cb (self, _sender, pspec);475 kkc_context_notify_input_mode_cb ((KkcContext*) self, _sender, pspec);
476}476}
477477
478478
479static void _kkc_context_request_selection_text_cb_kkc_state_request_selection_text (KkcState* _sender, gpointer self) {479static void _kkc_context_request_selection_text_cb_kkc_state_request_selection_text (KkcState* _sender, gpointer self) {
480 kkc_context_request_selection_text_cb (self);480 kkc_context_request_selection_text_cb ((KkcContext*) self);
481}481}
482482
483483
484static void _kkc_context_candidates_selected_cb_kkc_candidate_list_selected (KkcCandidateList* _sender, KkcCandidate* candidate, gpointer self) {484static void _kkc_context_candidates_selected_cb_kkc_candidate_list_selected (KkcCandidateList* _sender, KkcCandidate* candidate, gpointer self) {
485 kkc_context_candidates_selected_cb (self);485 kkc_context_candidates_selected_cb ((KkcContext*) self);
486}486}
487487
488488
@@ -620,7 +620,7 @@
620 GError * _inner_error_ = NULL;620 GError * _inner_error_ = NULL;
621 g_return_val_if_fail (self != NULL, FALSE);621 g_return_val_if_fail (self != NULL, FALSE);
622 g_return_val_if_fail (keyseq != NULL, FALSE);622 g_return_val_if_fail (keyseq != NULL, FALSE);
623 _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);623 _tmp0_ = gee_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
624 keys = (GeeList*) _tmp0_;624 keys = (GeeList*) _tmp0_;
625 _tmp1_ = g_string_new ("");625 _tmp1_ = g_string_new ("");
626 builder = _tmp1_;626 builder = _tmp1_;
@@ -827,7 +827,6 @@
827 gboolean _tmp60_ = FALSE;827 gboolean _tmp60_ = FALSE;
828 KkcKeyEvent* _tmp61_ = NULL;828 KkcKeyEvent* _tmp61_ = NULL;
829 gboolean _tmp62_ = FALSE;829 gboolean _tmp62_ = FALSE;
830 gboolean _tmp64_ = FALSE;
831 _tmp44_ = _key_index;830 _tmp44_ = _key_index;
832 _key_index = _tmp44_ + 1;831 _key_index = _tmp44_ + 1;
833 _tmp45_ = _key_index;832 _tmp45_ = _key_index;
@@ -876,7 +875,7 @@
876 _tmp58_ = key;875 _tmp58_ = key;
877 _tmp59_ = kkc_key_event_new_from_string (_tmp58_, &_inner_error_);876 _tmp59_ = kkc_key_event_new_from_string (_tmp58_, &_inner_error_);
878 ev = _tmp59_;877 ev = _tmp59_;
879 if (_inner_error_ != NULL) {878 if (G_UNLIKELY (_inner_error_ != NULL)) {
880 if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {879 if (_inner_error_->domain == KKC_KEY_EVENT_FORMAT_ERROR) {
881 g_propagate_error (error, _inner_error_);880 g_propagate_error (error, _inner_error_);
882 _g_free0 (key);881 _g_free0 (key);
@@ -903,8 +902,7 @@
903 } else {902 } else {
904 _tmp60_ = FALSE;903 _tmp60_ = FALSE;
905 }904 }
906 _tmp64_ = _tmp60_;905 if (_tmp60_) {
907 if (_tmp64_) {
908 retval = TRUE;906 retval = TRUE;
909 }907 }
910 _g_object_unref0 (ev);908 _g_object_unref0 (ev);
@@ -1320,7 +1318,7 @@
13201318
13211319
1322static void _kkc_context_filter_forwarded_cb_kkc_key_event_filter_forwarded (KkcKeyEventFilter* _sender, KkcKeyEvent* key, gpointer self) {1320static void _kkc_context_filter_forwarded_cb_kkc_key_event_filter_forwarded (KkcKeyEventFilter* _sender, KkcKeyEvent* key, gpointer self) {
1323 kkc_context_filter_forwarded_cb (self, key);1321 kkc_context_filter_forwarded_cb ((KkcContext*) self, key);
1324}1322}
13251323
13261324
@@ -1439,7 +1437,7 @@
1439static void kkc_context_instance_init (KkcContext * self) {1437static void kkc_context_instance_init (KkcContext * self) {
1440 GeeHashMap* _tmp0_ = NULL;1438 GeeHashMap* _tmp0_ = NULL;
1441 self->priv = KKC_CONTEXT_GET_PRIVATE (self);1439 self->priv = KKC_CONTEXT_GET_PRIVATE (self);
1442 _tmp0_ = gee_hash_map_new (G_TYPE_GTYPE, NULL, NULL, KKC_TYPE_STATE_HANDLER, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);1440 _tmp0_ = gee_hash_map_new (G_TYPE_GTYPE, NULL, NULL, KKC_TYPE_STATE_HANDLER, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
1443 self->priv->handlers = (GeeMap*) _tmp0_;1441 self->priv->handlers = (GeeMap*) _tmp0_;
1444}1442}
14451443
14461444
=== modified file 'libkkc/context.vala'
--- libkkc/context.vala 2014-02-26 22:51:39 +0000
+++ libkkc/context.vala 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>2 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
3 * Copyright (C) 2011-2013 Red Hat, Inc.3 * Copyright (C) 2011-2014 Red Hat, Inc.
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by6 * it under the terms of the GNU General Public License as published by
77
=== modified file 'libkkc/convert-segment-state-handler.c'
--- libkkc/convert-segment-state-handler.c 2014-06-15 23:27:57 +0000
+++ libkkc/convert-segment-state-handler.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* convert-segment-state-handler.c generated by valac 0.22.1, the Vala compiler1/* convert-segment-state-handler.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from convert-segment-state-handler.vala, do not modify */2 * generated from convert-segment-state-handler.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2011-2013 Red Hat, Inc.6 * Copyright (C) 2011-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -409,35 +409,35 @@
409409
410static gboolean _kkc_convert_segment_state_handler_do_next_candidate_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {410static gboolean _kkc_convert_segment_state_handler_do_next_candidate_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
411 gboolean result;411 gboolean result;
412 result = kkc_convert_segment_state_handler_do_next_candidate (self, command, state, key);412 result = kkc_convert_segment_state_handler_do_next_candidate ((KkcConvertSegmentStateHandler*) self, command, state, key);
413 return result;413 return result;
414}414}
415415
416416
417static gboolean _kkc_convert_segment_state_handler_do_previous_candidate_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {417static gboolean _kkc_convert_segment_state_handler_do_previous_candidate_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
418 gboolean result;418 gboolean result;
419 result = kkc_convert_segment_state_handler_do_previous_candidate (self, command, state, key);419 result = kkc_convert_segment_state_handler_do_previous_candidate ((KkcConvertSegmentStateHandler*) self, command, state, key);
420 return result;420 return result;
421}421}
422422
423423
424static gboolean _kkc_convert_segment_state_handler_do_purge_candidate_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {424static gboolean _kkc_convert_segment_state_handler_do_purge_candidate_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
425 gboolean result;425 gboolean result;
426 result = kkc_convert_segment_state_handler_do_purge_candidate (self, command, state, key);426 result = kkc_convert_segment_state_handler_do_purge_candidate ((KkcConvertSegmentStateHandler*) self, command, state, key);
427 return result;427 return result;
428}428}
429429
430430
431static gboolean _kkc_convert_segment_state_handler_do_clear_unhandled_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {431static gboolean _kkc_convert_segment_state_handler_do_clear_unhandled_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
432 gboolean result;432 gboolean result;
433 result = kkc_convert_segment_state_handler_do_clear_unhandled (self, command, state, key);433 result = kkc_convert_segment_state_handler_do_clear_unhandled ((KkcConvertSegmentStateHandler*) self, command, state, key);
434 return result;434 return result;
435}435}
436436
437437
438static gboolean _kkc_convert_segment_state_handler_do_select_unhandled_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {438static gboolean _kkc_convert_segment_state_handler_do_select_unhandled_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
439 gboolean result;439 gboolean result;
440 result = kkc_convert_segment_state_handler_do_select_unhandled (self, command, state, key);440 result = kkc_convert_segment_state_handler_do_select_unhandled ((KkcConvertSegmentStateHandler*) self, command, state, key);
441 return result;441 return result;
442}442}
443443
@@ -487,46 +487,44 @@
487 gboolean _tmp3_ = FALSE;487 gboolean _tmp3_ = FALSE;
488 _tmp3_ = TRUE;488 _tmp3_ = TRUE;
489 while (TRUE) {489 while (TRUE) {
490 gboolean _tmp4_ = FALSE;490 gint _tmp5_ = 0;
491 gint _tmp6_ = 0;491 GEnumClass* _tmp6_ = NULL;
492 GEnumClass* _tmp7_ = NULL;492 gint _tmp7_ = 0;
493 gint _tmp8_ = 0;
494 GEnumValue* enum_value = NULL;493 GEnumValue* enum_value = NULL;
495 GEnumClass* _tmp9_ = NULL;494 GEnumClass* _tmp8_ = NULL;
496 gint _tmp10_ = 0;495 gint _tmp9_ = 0;
496 GEnumValue* _tmp10_ = NULL;
497 GEnumValue* _tmp11_ = NULL;497 GEnumValue* _tmp11_ = NULL;
498 GEnumValue* _tmp12_ = NULL;498 GEnumValue* _tmp12_ = NULL;
499 GEnumValue* _tmp13_ = NULL;499 if (!_tmp3_) {
500 _tmp4_ = _tmp3_;500 gint _tmp4_ = 0;
501 if (!_tmp4_) {501 _tmp4_ = i;
502 gint _tmp5_ = 0;502 i = _tmp4_ + 1;
503 _tmp5_ = i;
504 i = _tmp5_ + 1;
505 }503 }
506 _tmp3_ = FALSE;504 _tmp3_ = FALSE;
507 _tmp6_ = i;505 _tmp5_ = i;
508 _tmp7_ = enum_class;506 _tmp6_ = enum_class;
509 _tmp8_ = _tmp7_->maximum;507 _tmp7_ = _tmp6_->maximum;
510 if (!(_tmp6_ <= _tmp8_)) {508 if (!(_tmp5_ <= _tmp7_)) {
511 break;509 break;
512 }510 }
513 _tmp9_ = enum_class;511 _tmp8_ = enum_class;
514 _tmp10_ = i;512 _tmp9_ = i;
515 _tmp11_ = g_enum_get_value (_tmp9_, _tmp10_);513 _tmp10_ = g_enum_get_value (_tmp8_, _tmp9_);
516 _tmp12_ = __g_enum_value_dup0 (_tmp11_);514 _tmp11_ = __g_enum_value_dup0 (_tmp10_);
517 enum_value = _tmp12_;515 enum_value = _tmp11_;
518 _tmp13_ = enum_value;516 _tmp12_ = enum_value;
519 if (_tmp13_ != NULL) {517 if (_tmp12_ != NULL) {
520 GEnumValue* _tmp14_ = NULL;518 GEnumValue* _tmp13_ = NULL;
521 const gchar* _tmp15_ = NULL;519 const gchar* _tmp14_ = NULL;
520 gchar* _tmp15_ = NULL;
522 gchar* _tmp16_ = NULL;521 gchar* _tmp16_ = NULL;
523 gchar* _tmp17_ = NULL;522 _tmp13_ = enum_value;
524 _tmp14_ = enum_value;523 _tmp14_ = (*_tmp13_).value_nick;
525 _tmp15_ = (*_tmp14_).value_nick;524 _tmp15_ = g_strconcat ("convert-", _tmp14_, NULL);
526 _tmp16_ = g_strconcat ("convert-", _tmp15_, NULL);525 _tmp16_ = _tmp15_;
527 _tmp17_ = _tmp16_;526 kkc_state_handler_register_command_callback ((KkcStateHandler*) self, _tmp16_, _kkc_convert_segment_state_handler_do_clear_unhandled_kkc_command_callback, self);
528 kkc_state_handler_register_command_callback ((KkcStateHandler*) self, _tmp17_, _kkc_convert_segment_state_handler_do_clear_unhandled_kkc_command_callback, self);527 _g_free0 (_tmp16_);
529 _g_free0 (_tmp17_);
530 }528 }
531 _g_free0 (enum_value);529 _g_free0 (enum_value);
532 }530 }
@@ -540,7 +538,7 @@
540538
541static void kkc_convert_segment_state_handler_class_init (KkcConvertSegmentStateHandlerClass * klass) {539static void kkc_convert_segment_state_handler_class_init (KkcConvertSegmentStateHandlerClass * klass) {
542 kkc_convert_segment_state_handler_parent_class = g_type_class_peek_parent (klass);540 kkc_convert_segment_state_handler_parent_class = g_type_class_peek_parent (klass);
543 KKC_STATE_HANDLER_CLASS (klass)->process_key_event = kkc_convert_segment_state_handler_real_process_key_event;541 ((KkcStateHandlerClass *) klass)->process_key_event = kkc_convert_segment_state_handler_real_process_key_event;
544 G_OBJECT_CLASS (klass)->constructor = kkc_convert_segment_state_handler_constructor;542 G_OBJECT_CLASS (klass)->constructor = kkc_convert_segment_state_handler_constructor;
545}543}
546544
547545
=== modified file 'libkkc/convert-segment-state-handler.vala'
--- libkkc/convert-segment-state-handler.vala 2014-06-15 23:27:57 +0000
+++ libkkc/convert-segment-state-handler.vala 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>2 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
3 * Copyright (C) 2011-2013 Red Hat, Inc.3 * Copyright (C) 2011-2014 Red Hat, Inc.
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by6 * it under the terms of the GNU General Public License as published by
77
=== modified file 'libkkc/convert-sentence-state-handler.c'
--- libkkc/convert-sentence-state-handler.c 2014-06-15 23:27:57 +0000
+++ libkkc/convert-sentence-state-handler.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* convert-sentence-state-handler.c generated by valac 0.22.1, the Vala compiler1/* convert-sentence-state-handler.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from convert-sentence-state-handler.vala, do not modify */2 * generated from convert-sentence-state-handler.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2011-2013 Red Hat, Inc.6 * Copyright (C) 2011-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -599,10 +599,8 @@
599 KkcState* _tmp7_ = NULL;599 KkcState* _tmp7_ = NULL;
600 gboolean _tmp8_ = FALSE;600 gboolean _tmp8_ = FALSE;
601 const gchar* _tmp9_ = NULL;601 const gchar* _tmp9_ = NULL;
602 gboolean _tmp16_ = FALSE;602 gboolean _tmp15_ = FALSE;
603 gboolean _tmp17_ = FALSE;603 const gchar* _tmp16_ = NULL;
604 const gchar* _tmp18_ = NULL;
605 gboolean _tmp27_ = FALSE;
606 g_return_val_if_fail (self != NULL, FALSE);604 g_return_val_if_fail (self != NULL, FALSE);
607 g_return_val_if_fail (state != NULL, FALSE);605 g_return_val_if_fail (state != NULL, FALSE);
608 g_return_val_if_fail (key != NULL, FALSE);606 g_return_val_if_fail (key != NULL, FALSE);
@@ -624,7 +622,6 @@
624 } else {622 } else {
625 gboolean _tmp10_ = FALSE;623 gboolean _tmp10_ = FALSE;
626 const gchar* _tmp11_ = NULL;624 const gchar* _tmp11_ = NULL;
627 gboolean _tmp15_ = FALSE;
628 _tmp11_ = command;625 _tmp11_ = command;
629 if (_tmp11_ == NULL) {626 if (_tmp11_ == NULL) {
630 KkcKeyEvent* _tmp12_ = NULL;627 KkcKeyEvent* _tmp12_ = NULL;
@@ -637,42 +634,37 @@
637 } else {634 } else {
638 _tmp10_ = FALSE;635 _tmp10_ = FALSE;
639 }636 }
640 _tmp15_ = _tmp10_;637 _tmp8_ = _tmp10_;
641 _tmp8_ = _tmp15_;
642 }638 }
643 _tmp16_ = _tmp8_;639 if (_tmp8_) {
644 if (_tmp16_) {
645 result = TRUE;640 result = TRUE;
646 return result;641 return result;
647 }642 }
648 _tmp18_ = command;643 _tmp16_ = command;
649 if (_tmp18_ == NULL) {644 if (_tmp16_ == NULL) {
650 gboolean _tmp19_ = FALSE;645 gboolean _tmp17_ = FALSE;
651 KkcKeyEvent* _tmp20_ = NULL;646 KkcKeyEvent* _tmp18_ = NULL;
652 KkcModifierType _tmp21_ = 0;647 KkcModifierType _tmp19_ = 0;
653 KkcModifierType _tmp22_ = 0;648 KkcModifierType _tmp20_ = 0;
654 gboolean _tmp26_ = FALSE;649 _tmp18_ = key;
655 _tmp20_ = key;650 _tmp19_ = kkc_key_event_get_modifiers (_tmp18_);
656 _tmp21_ = kkc_key_event_get_modifiers (_tmp20_);651 _tmp20_ = _tmp19_;
657 _tmp22_ = _tmp21_;652 if (_tmp20_ == 0) {
658 if (_tmp22_ == 0) {653 _tmp17_ = TRUE;
659 _tmp19_ = TRUE;
660 } else {654 } else {
661 KkcKeyEvent* _tmp23_ = NULL;655 KkcKeyEvent* _tmp21_ = NULL;
662 KkcModifierType _tmp24_ = 0;656 KkcModifierType _tmp22_ = 0;
663 KkcModifierType _tmp25_ = 0;657 KkcModifierType _tmp23_ = 0;
664 _tmp23_ = key;658 _tmp21_ = key;
665 _tmp24_ = kkc_key_event_get_modifiers (_tmp23_);659 _tmp22_ = kkc_key_event_get_modifiers (_tmp21_);
666 _tmp25_ = _tmp24_;660 _tmp23_ = _tmp22_;
667 _tmp19_ = _tmp25_ == KKC_MODIFIER_TYPE_SHIFT_MASK;661 _tmp17_ = _tmp23_ == KKC_MODIFIER_TYPE_SHIFT_MASK;
668 }662 }
669 _tmp26_ = _tmp19_;663 _tmp15_ = _tmp17_;
670 _tmp17_ = _tmp26_;
671 } else {664 } else {
672 _tmp17_ = FALSE;665 _tmp15_ = FALSE;
673 }666 }
674 _tmp27_ = _tmp17_;667 if (_tmp15_) {
675 if (_tmp27_) {
676 result = FALSE;668 result = FALSE;
677 return result;669 return result;
678 }670 }
@@ -712,63 +704,63 @@
712704
713static gboolean _kkc_convert_sentence_state_handler_do_start_segment_conversion_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {705static gboolean _kkc_convert_sentence_state_handler_do_start_segment_conversion_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
714 gboolean result;706 gboolean result;
715 result = kkc_convert_sentence_state_handler_do_start_segment_conversion (self, command, state, key);707 result = kkc_convert_sentence_state_handler_do_start_segment_conversion ((KkcConvertSentenceStateHandler*) self, command, state, key);
716 return result;708 return result;
717}709}
718710
719711
720static gboolean _kkc_convert_sentence_state_handler_do_original_candidate_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {712static gboolean _kkc_convert_sentence_state_handler_do_original_candidate_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
721 gboolean result;713 gboolean result;
722 result = kkc_convert_sentence_state_handler_do_original_candidate (self, command, state, key);714 result = kkc_convert_sentence_state_handler_do_original_candidate ((KkcConvertSentenceStateHandler*) self, command, state, key);
723 return result;715 return result;
724}716}
725717
726718
727static gboolean _kkc_convert_sentence_state_handler_do_expand_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {719static gboolean _kkc_convert_sentence_state_handler_do_expand_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
728 gboolean result;720 gboolean result;
729 result = kkc_convert_sentence_state_handler_do_expand_segment (self, command, state, key);721 result = kkc_convert_sentence_state_handler_do_expand_segment ((KkcConvertSentenceStateHandler*) self, command, state, key);
730 return result;722 return result;
731}723}
732724
733725
734static gboolean _kkc_convert_sentence_state_handler_do_shrink_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {726static gboolean _kkc_convert_sentence_state_handler_do_shrink_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
735 gboolean result;727 gboolean result;
736 result = kkc_convert_sentence_state_handler_do_shrink_segment (self, command, state, key);728 result = kkc_convert_sentence_state_handler_do_shrink_segment ((KkcConvertSentenceStateHandler*) self, command, state, key);
737 return result;729 return result;
738}730}
739731
740732
741static gboolean _kkc_convert_sentence_state_handler_do_next_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {733static gboolean _kkc_convert_sentence_state_handler_do_next_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
742 gboolean result;734 gboolean result;
743 result = kkc_convert_sentence_state_handler_do_next_segment (self, command, state, key);735 result = kkc_convert_sentence_state_handler_do_next_segment ((KkcConvertSentenceStateHandler*) self, command, state, key);
744 return result;736 return result;
745}737}
746738
747739
748static gboolean _kkc_convert_sentence_state_handler_do_previous_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {740static gboolean _kkc_convert_sentence_state_handler_do_previous_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
749 gboolean result;741 gboolean result;
750 result = kkc_convert_sentence_state_handler_do_previous_segment (self, command, state, key);742 result = kkc_convert_sentence_state_handler_do_previous_segment ((KkcConvertSentenceStateHandler*) self, command, state, key);
751 return result;743 return result;
752}744}
753745
754746
755static gboolean _kkc_convert_sentence_state_handler_do_first_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {747static gboolean _kkc_convert_sentence_state_handler_do_first_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
756 gboolean result;748 gboolean result;
757 result = kkc_convert_sentence_state_handler_do_first_segment (self, command, state, key);749 result = kkc_convert_sentence_state_handler_do_first_segment ((KkcConvertSentenceStateHandler*) self, command, state, key);
758 return result;750 return result;
759}751}
760752
761753
762static gboolean _kkc_convert_sentence_state_handler_do_last_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {754static gboolean _kkc_convert_sentence_state_handler_do_last_segment_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
763 gboolean result;755 gboolean result;
764 result = kkc_convert_sentence_state_handler_do_last_segment (self, command, state, key);756 result = kkc_convert_sentence_state_handler_do_last_segment ((KkcConvertSentenceStateHandler*) self, command, state, key);
765 return result;757 return result;
766}758}
767759
768760
769static gboolean _kkc_convert_sentence_state_handler_do_clear_unhandled_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {761static gboolean _kkc_convert_sentence_state_handler_do_clear_unhandled_kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
770 gboolean result;762 gboolean result;
771 result = kkc_convert_sentence_state_handler_do_clear_unhandled (self, command, state, key);763 result = kkc_convert_sentence_state_handler_do_clear_unhandled ((KkcConvertSentenceStateHandler*) self, command, state, key);
772 return result;764 return result;
773}765}
774766
@@ -788,7 +780,7 @@
788780
789static gboolean _kkc_convert_sentence_state_handler_do__kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {781static gboolean _kkc_convert_sentence_state_handler_do__kkc_command_callback (const gchar* command, KkcState* state, KkcKeyEvent* key, gpointer self) {
790 gboolean result;782 gboolean result;
791 result = kkc_convert_sentence_state_handler_do_ (self, command, state, key);783 result = kkc_convert_sentence_state_handler_do_ ((KkcConvertSentenceStateHandler*) self, command, state, key);
792 return result;784 return result;
793}785}
794786
@@ -827,55 +819,53 @@
827 gboolean _tmp3_ = FALSE;819 gboolean _tmp3_ = FALSE;
828 _tmp3_ = TRUE;820 _tmp3_ = TRUE;
829 while (TRUE) {821 while (TRUE) {
830 gboolean _tmp4_ = FALSE;822 gint _tmp5_ = 0;
831 gint _tmp6_ = 0;823 GEnumClass* _tmp6_ = NULL;
832 GEnumClass* _tmp7_ = NULL;824 gint _tmp7_ = 0;
833 gint _tmp8_ = 0;
834 GEnumValue* enum_value = NULL;825 GEnumValue* enum_value = NULL;
835 GEnumClass* _tmp9_ = NULL;826 GEnumClass* _tmp8_ = NULL;
836 gint _tmp10_ = 0;827 gint _tmp9_ = 0;
828 GEnumValue* _tmp10_ = NULL;
837 GEnumValue* _tmp11_ = NULL;829 GEnumValue* _tmp11_ = NULL;
838 GEnumValue* _tmp12_ = NULL;830 GEnumValue* _tmp12_ = NULL;
839 GEnumValue* _tmp13_ = NULL;831 if (!_tmp3_) {
840 _tmp4_ = _tmp3_;832 gint _tmp4_ = 0;
841 if (!_tmp4_) {833 _tmp4_ = i;
842 gint _tmp5_ = 0;834 i = _tmp4_ + 1;
843 _tmp5_ = i;
844 i = _tmp5_ + 1;
845 }835 }
846 _tmp3_ = FALSE;836 _tmp3_ = FALSE;
847 _tmp6_ = i;837 _tmp5_ = i;
848 _tmp7_ = enum_class;838 _tmp6_ = enum_class;
849 _tmp8_ = _tmp7_->maximum;839 _tmp7_ = _tmp6_->maximum;
850 if (!(_tmp6_ <= _tmp8_)) {840 if (!(_tmp5_ <= _tmp7_)) {
851 break;841 break;
852 }842 }
853 _tmp9_ = enum_class;843 _tmp8_ = enum_class;
854 _tmp10_ = i;844 _tmp9_ = i;
855 _tmp11_ = g_enum_get_value (_tmp9_, _tmp10_);845 _tmp10_ = g_enum_get_value (_tmp8_, _tmp9_);
856 _tmp12_ = __g_enum_value_dup0 (_tmp11_);846 _tmp11_ = __g_enum_value_dup0 (_tmp10_);
857 enum_value = _tmp12_;847 enum_value = _tmp11_;
858 _tmp13_ = enum_value;848 _tmp12_ = enum_value;
859 if (_tmp13_ != NULL) {849 if (_tmp12_ != NULL) {
860 GEnumValue* _tmp14_ = NULL;850 GEnumValue* _tmp13_ = NULL;
861 const gchar* _tmp15_ = NULL;851 const gchar* _tmp14_ = NULL;
852 gchar* _tmp15_ = NULL;
862 gchar* _tmp16_ = NULL;853 gchar* _tmp16_ = NULL;
863 gchar* _tmp17_ = NULL;854 GEnumValue* _tmp17_ = NULL;
864 GEnumValue* _tmp18_ = NULL;855 gint _tmp18_ = 0;
865 gint _tmp19_ = 0;856 KkcConvertSentenceStateHandlerConvertCommandHandler* _tmp19_ = NULL;
866 KkcConvertSentenceStateHandlerConvertCommandHandler* _tmp20_ = NULL;857 KkcConvertSentenceStateHandlerConvertCommandHandler* _tmp20_ = NULL;
867 KkcConvertSentenceStateHandlerConvertCommandHandler* _tmp21_ = NULL;858 _tmp13_ = enum_value;
868 _tmp14_ = enum_value;859 _tmp14_ = (*_tmp13_).value_nick;
869 _tmp15_ = (*_tmp14_).value_nick;860 _tmp15_ = g_strconcat ("convert-", _tmp14_, NULL);
870 _tmp16_ = g_strconcat ("convert-", _tmp15_, NULL);861 _tmp16_ = _tmp15_;
871 _tmp17_ = _tmp16_;862 _tmp17_ = enum_value;
872 _tmp18_ = enum_value;863 _tmp18_ = (*_tmp17_).value;
873 _tmp19_ = (*_tmp18_).value;864 _tmp19_ = kkc_convert_sentence_state_handler_convert_command_handler_new ((KkcKanaMode) _tmp18_);
874 _tmp20_ = kkc_convert_sentence_state_handler_convert_command_handler_new ((KkcKanaMode) _tmp19_);865 _tmp20_ = _tmp19_;
875 _tmp21_ = _tmp20_;866 kkc_state_handler_register_command_handler ((KkcStateHandler*) self, _tmp16_, (KkcCommandHandler*) _tmp20_);
876 kkc_state_handler_register_command_handler ((KkcStateHandler*) self, _tmp17_, (KkcCommandHandler*) _tmp21_);867 _g_object_unref0 (_tmp20_);
877 _g_object_unref0 (_tmp21_);868 _g_free0 (_tmp16_);
878 _g_free0 (_tmp17_);
879 }869 }
880 _g_free0 (enum_value);870 _g_free0 (enum_value);
881 }871 }
@@ -959,7 +949,7 @@
959949
960static void kkc_convert_sentence_state_handler_class_init (KkcConvertSentenceStateHandlerClass * klass) {950static void kkc_convert_sentence_state_handler_class_init (KkcConvertSentenceStateHandlerClass * klass) {
961 kkc_convert_sentence_state_handler_parent_class = g_type_class_peek_parent (klass);951 kkc_convert_sentence_state_handler_parent_class = g_type_class_peek_parent (klass);
962 KKC_STATE_HANDLER_CLASS (klass)->process_key_event = kkc_convert_sentence_state_handler_real_process_key_event;952 ((KkcStateHandlerClass *) klass)->process_key_event = kkc_convert_sentence_state_handler_real_process_key_event;
963 G_OBJECT_CLASS (klass)->constructor = kkc_convert_sentence_state_handler_constructor;953 G_OBJECT_CLASS (klass)->constructor = kkc_convert_sentence_state_handler_constructor;
964}954}
965955
966956
=== modified file 'libkkc/convert-sentence-state-handler.vala'
--- libkkc/convert-sentence-state-handler.vala 2014-06-15 23:27:57 +0000
+++ libkkc/convert-sentence-state-handler.vala 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>2 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
3 * Copyright (C) 2011-2013 Red Hat, Inc.3 * Copyright (C) 2011-2014 Red Hat, Inc.
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by6 * it under the terms of the GNU General Public License as published by
77
=== modified file 'libkkc/decoder.c'
--- libkkc/decoder.c 2014-06-15 23:27:57 +0000
+++ libkkc/decoder.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* decoder.c generated by valac 0.22.1, the Vala compiler1/* decoder.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from decoder.vala, do not modify */2 * generated from decoder.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2012-2013 Red Hat, Inc.6 * Copyright (C) 2012-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -234,8 +234,8 @@
234234
235static void kkc_decoder_class_init (KkcDecoderClass * klass) {235static void kkc_decoder_class_init (KkcDecoderClass * klass) {
236 kkc_decoder_parent_class = g_type_class_peek_parent (klass);236 kkc_decoder_parent_class = g_type_class_peek_parent (klass);
237 KKC_DECODER_CLASS (klass)->decode = kkc_decoder_real_decode;237 ((KkcDecoderClass *) klass)->decode = kkc_decoder_real_decode;
238 KKC_DECODER_CLASS (klass)->decode_with_costs = kkc_decoder_real_decode_with_costs;238 ((KkcDecoderClass *) klass)->decode_with_costs = kkc_decoder_real_decode_with_costs;
239}239}
240240
241241
242242
=== modified file 'libkkc/decoder.vala'
--- libkkc/decoder.vala 2014-02-26 22:51:39 +0000
+++ libkkc/decoder.vala 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2012-2013 Daiki Ueno <ueno@gnu.org>2 * Copyright (C) 2012-2014 Daiki Ueno <ueno@gnu.org>
3 * Copyright (C) 2012-2013 Red Hat, Inc.3 * Copyright (C) 2012-2014 Red Hat, Inc.
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by6 * it under the terms of the GNU General Public License as published by
77
=== modified file 'libkkc/dictionary-list.c'
--- libkkc/dictionary-list.c 2014-06-15 23:27:57 +0000
+++ libkkc/dictionary-list.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* dictionary-list.c generated by valac 0.22.1, the Vala compiler1/* dictionary-list.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from dictionary-list.vala, do not modify */2 * generated from dictionary-list.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2011-2013 Red Hat, Inc.6 * Copyright (C) 2011-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -88,9 +88,9 @@
88void kkc_dictionary_list_clear (KkcDictionaryList* self);88void kkc_dictionary_list_clear (KkcDictionaryList* self);
89void kkc_dictionary_list_call (KkcDictionaryList* self, GType* type, KkcDictionaryListDictionaryCallback callback, void* callback_target);89void kkc_dictionary_list_call (KkcDictionaryList* self, GType* type, KkcDictionaryListDictionaryCallback callback, void* callback_target);
90void kkc_dictionary_list_save (KkcDictionaryList* self);90void kkc_dictionary_list_save (KkcDictionaryList* self);
91static KkcDictionaryCallbackReturn __lambda7_ (KkcDictionaryList* self, KkcDictionary* dictionary);91static KkcDictionaryCallbackReturn __lambda9_ (KkcDictionaryList* self, KkcDictionary* dictionary);
92void kkc_dictionary_save (KkcDictionary* self, GError** error);92void kkc_dictionary_save (KkcDictionary* self, GError** error);
93static KkcDictionaryCallbackReturn ___lambda7__kkc_dictionary_list_dictionary_callback (KkcDictionary* dictionary, gpointer self);93static KkcDictionaryCallbackReturn ___lambda9__kkc_dictionary_list_dictionary_callback (KkcDictionary* dictionary, gpointer self);
94KkcDictionaryList* kkc_dictionary_list_new (void);94KkcDictionaryList* kkc_dictionary_list_new (void);
95KkcDictionaryList* kkc_dictionary_list_construct (GType object_type);95KkcDictionaryList* kkc_dictionary_list_construct (GType object_type);
96gint kkc_dictionary_list_get_size (KkcDictionaryList* self);96gint kkc_dictionary_list_get_size (KkcDictionaryList* self);
@@ -197,8 +197,6 @@
197 gboolean _tmp11_ = FALSE;197 gboolean _tmp11_ = FALSE;
198 gboolean _tmp12_ = FALSE;198 gboolean _tmp12_ = FALSE;
199 GType* _tmp13_ = NULL;199 GType* _tmp13_ = NULL;
200 gboolean _tmp18_ = FALSE;
201 gboolean _tmp22_ = FALSE;
202 _tmp5_ = _dictionary_index;200 _tmp5_ = _dictionary_index;
203 _dictionary_index = _tmp5_ + 1;201 _dictionary_index = _tmp5_ + 1;
204 _tmp6_ = _dictionary_index;202 _tmp6_ = _dictionary_index;
@@ -224,22 +222,20 @@
224 _tmp17_ = g_type_is_a (_tmp15_, *_tmp16_);222 _tmp17_ = g_type_is_a (_tmp15_, *_tmp16_);
225 _tmp12_ = _tmp17_;223 _tmp12_ = _tmp17_;
226 }224 }
227 _tmp18_ = _tmp12_;225 if (_tmp12_) {
228 if (_tmp18_) {226 KkcDictionaryListDictionaryCallback _tmp18_ = NULL;
229 KkcDictionaryListDictionaryCallback _tmp19_ = NULL;227 void* _tmp18__target = NULL;
230 void* _tmp19__target = NULL;228 KkcDictionary* _tmp19_ = NULL;
231 KkcDictionary* _tmp20_ = NULL;229 KkcDictionaryCallbackReturn _tmp20_ = 0;
232 KkcDictionaryCallbackReturn _tmp21_ = 0;230 _tmp18_ = callback;
233 _tmp19_ = callback;231 _tmp18__target = callback_target;
234 _tmp19__target = callback_target;232 _tmp19_ = dictionary;
235 _tmp20_ = dictionary;233 _tmp20_ = _tmp18_ (_tmp19_, _tmp18__target);
236 _tmp21_ = _tmp19_ (_tmp20_, _tmp19__target);234 _tmp11_ = _tmp20_ == KKC_DICTIONARY_CALLBACK_RETURN_REMOVE;
237 _tmp11_ = _tmp21_ == KKC_DICTIONARY_CALLBACK_RETURN_REMOVE;
238 } else {235 } else {
239 _tmp11_ = FALSE;236 _tmp11_ = FALSE;
240 }237 }
241 _tmp22_ = _tmp11_;238 if (_tmp11_) {
242 if (_tmp22_) {
243 _g_object_unref0 (dictionary);239 _g_object_unref0 (dictionary);
244 _g_object_unref0 (_dictionary_list);240 _g_object_unref0 (_dictionary_list);
245 return;241 return;
@@ -254,7 +250,7 @@
254/**250/**
255 * Save dictionaries on to disk.251 * Save dictionaries on to disk.
256 */252 */
257static KkcDictionaryCallbackReturn __lambda7_ (KkcDictionaryList* self, KkcDictionary* dictionary) {253static KkcDictionaryCallbackReturn __lambda9_ (KkcDictionaryList* self, KkcDictionary* dictionary) {
258 KkcDictionaryCallbackReturn result = 0;254 KkcDictionaryCallbackReturn result = 0;
259 GError * _inner_error_ = NULL;255 GError * _inner_error_ = NULL;
260 g_return_val_if_fail (dictionary != NULL, 0);256 g_return_val_if_fail (dictionary != NULL, 0);
@@ -262,7 +258,7 @@
262 KkcDictionary* _tmp0_ = NULL;258 KkcDictionary* _tmp0_ = NULL;
263 _tmp0_ = dictionary;259 _tmp0_ = dictionary;
264 kkc_dictionary_save (_tmp0_, &_inner_error_);260 kkc_dictionary_save (_tmp0_, &_inner_error_);
265 if (_inner_error_ != NULL) {261 if (G_UNLIKELY (_inner_error_ != NULL)) {
266 goto __catch19_g_error;262 goto __catch19_g_error;
267 }263 }
268 }264 }
@@ -280,7 +276,7 @@
280 _g_error_free0 (e);276 _g_error_free0 (e);
281 }277 }
282 __finally19:278 __finally19:
283 if (_inner_error_ != NULL) {279 if (G_UNLIKELY (_inner_error_ != NULL)) {
284 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);280 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
285 g_clear_error (&_inner_error_);281 g_clear_error (&_inner_error_);
286 return 0;282 return 0;
@@ -290,16 +286,16 @@
290}286}
291287
292288
293static KkcDictionaryCallbackReturn ___lambda7__kkc_dictionary_list_dictionary_callback (KkcDictionary* dictionary, gpointer self) {289static KkcDictionaryCallbackReturn ___lambda9__kkc_dictionary_list_dictionary_callback (KkcDictionary* dictionary, gpointer self) {
294 KkcDictionaryCallbackReturn result;290 KkcDictionaryCallbackReturn result;
295 result = __lambda7_ (self, dictionary);291 result = __lambda9_ ((KkcDictionaryList*) self, dictionary);
296 return result;292 return result;
297}293}
298294
299295
300void kkc_dictionary_list_save (KkcDictionaryList* self) {296void kkc_dictionary_list_save (KkcDictionaryList* self) {
301 g_return_if_fail (self != NULL);297 g_return_if_fail (self != NULL);
302 kkc_dictionary_list_call (self, NULL, ___lambda7__kkc_dictionary_list_dictionary_callback, self);298 kkc_dictionary_list_call (self, NULL, ___lambda9__kkc_dictionary_list_dictionary_callback, self);
303}299}
304300
305301
@@ -344,7 +340,7 @@
344static void kkc_dictionary_list_instance_init (KkcDictionaryList * self) {340static void kkc_dictionary_list_instance_init (KkcDictionaryList * self) {
345 GeeArrayList* _tmp0_ = NULL;341 GeeArrayList* _tmp0_ = NULL;
346 self->priv = KKC_DICTIONARY_LIST_GET_PRIVATE (self);342 self->priv = KKC_DICTIONARY_LIST_GET_PRIVATE (self);
347 _tmp0_ = gee_array_list_new (KKC_TYPE_DICTIONARY, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL);343 _tmp0_ = gee_array_list_new (KKC_TYPE_DICTIONARY, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
348 self->priv->dictionaries = (GeeList*) _tmp0_;344 self->priv->dictionaries = (GeeList*) _tmp0_;
349}345}
350346
351347
=== modified file 'libkkc/dictionary-list.vala'
--- libkkc/dictionary-list.vala 2014-02-26 22:51:39 +0000
+++ libkkc/dictionary-list.vala 2014-10-01 15:12:30 +0000
@@ -1,6 +1,6 @@
1/*1/*
2 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>2 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
3 * Copyright (C) 2011-2013 Red Hat, Inc.3 * Copyright (C) 2011-2014 Red Hat, Inc.
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by6 * it under the terms of the GNU General Public License as published by
77
=== modified file 'libkkc/dictionary.c'
--- libkkc/dictionary.c 2014-06-15 23:27:57 +0000
+++ libkkc/dictionary.c 2014-10-01 15:12:30 +0000
@@ -1,9 +1,9 @@
1/* dictionary.c generated by valac 0.22.1, the Vala compiler1/* dictionary.c generated by valac 0.24.0.131-42e78, the Vala compiler
2 * generated from dictionary.vala, do not modify */2 * generated from dictionary.vala, do not modify */
33
4/*4/*
5 * Copyright (C) 2011-2013 Daiki Ueno <ueno@gnu.org>5 * Copyright (C) 2011-2014 Daiki Ueno <ueno@gnu.org>
6 * Copyright (C) 2011-2013 Red Hat, Inc.6 * Copyright (C) 2011-2014 Red Hat, Inc.
7 *7 *
8 * This program is free software: you can redistribute it and/or modify8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -143,15 +143,13 @@
143 gboolean _tmp8_ = FALSE;143 gboolean _tmp8_ = FALSE;
144 glong _tmp9_ = 0L;144 glong _tmp9_ = 0L;
145 gboolean _tmp12_ = FALSE;145 gboolean _tmp12_ = FALSE;
146 gboolean _tmp13_ = FALSE;146 glong _tmp13_ = 0L;
147 glong _tmp14_ = 0L;147 glong _tmp16_ = 0L;
148 gboolean _tmp17_ = FALSE;148 glong _tmp17_ = 0L;
149 glong _tmp18_ = 0L;149 glong _tmp18_ = 0L;
150 glong _tmp19_ = 0L;150 glong _tmp19_ = 0L;
151 glong _tmp20_ = 0L;151 glong _tmp20_ = 0L;
152 glong _tmp21_ = 0L;152 gchar* _tmp21_ = NULL;
153 glong _tmp22_ = 0L;
154 gchar* _tmp23_ = NULL;
155 g_return_val_if_fail (self != NULL, NULL);153 g_return_val_if_fail (self != NULL, NULL);
156 _tmp0_ = strlen (self);154 _tmp0_ = strlen (self);
157 _tmp1_ = _tmp0_;155 _tmp1_ = _tmp0_;
@@ -182,28 +180,26 @@
182 } else {180 } else {
183 _tmp8_ = FALSE;181 _tmp8_ = FALSE;
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches