@@ -36,6 +36,7 @@ static int compile_dict(int ifd, int ofd) {
36
36
uint32_t wcount = 0 ;
37
37
char *p;
38
38
char *ifend;
39
+ FCITX_INFO () << " fcitx5-spell-compile-dict open fstst..." ;
39
40
if (fstat (ifd, &istat_buf) == -1 ) {
40
41
return 1 ;
41
42
}
@@ -69,6 +70,7 @@ static int compile_dict(int ifd, int ofd) {
69
70
if (lseek (ofd, sizeof (uint32_t ), SEEK_CUR) == static_cast <off_t >(-1 )) {
70
71
return 1 ;
71
72
}
73
+ FCITX_INFO () << " fcitx5-spell-compile-dict open write..." ;
72
74
while (p < ifend) {
73
75
char *start;
74
76
long int ceff;
@@ -92,10 +94,12 @@ static int compile_dict(int ifd, int ofd) {
92
94
}
93
95
wcount = htole32 (wcount);
94
96
fs::safeWrite (ofd, &wcount, sizeof (uint32_t ));
97
+ FCITX_INFO () << " fcitx5-spell-compile-dict open write end..." ;
95
98
return 0 ;
96
99
}
97
100
98
101
int main (int argc, char *argv[]) {
102
+ FCITX_INFO () << " fcitx5-spell-compile-dict starting..." ;
99
103
const char *action = argv[1 ];
100
104
if (strcmp (action, " --comp-dict" ) == 0 ) {
101
105
if (argc != 4 ) {
@@ -108,6 +112,7 @@ int main(int argc, char *argv[]) {
108
112
if (!ifd.isValid () || !ofd.isValid ()) {
109
113
return 1 ;
110
114
}
115
+ FCITX_INFO () << " fcitx5-spell-compile-dict open file..." ;
111
116
return compile_dict (ifd.fd (), ofd.fd ());
112
117
}
113
118
return 1 ;
0 commit comments