author | viric@llimona |
Sat, 01 Sep 2007 23:52:38 +0200 | |
changeset 22 | 0b923f95df16 |
parent 16 | b4e251400e36 |
permissions | -rw-r--r-- |
11
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
1 |
#include <stdio.h> |
15 | 2 |
#include <unicode/uchar.h> |
3 |
#include <unicode/ustring.h> |
|
4 |
#include <unicode/utypes.h> |
|
11
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
5 |
#include "dictre.h" |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
6 |
|
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
7 |
static int closed_accent(const unsigned char *tmp) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
8 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
9 |
if (tmp[0] == 0xcc && tmp[1] == 0x81) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
10 |
return 1; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
11 |
return 0; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
12 |
} |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
13 |
|
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
14 |
static int open_accent(const unsigned char *tmp) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
15 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
16 |
if (tmp[0] == 0x60) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
17 |
return 1; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
18 |
return 0; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
19 |
} |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
20 |
|
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
21 |
/* Must free what is needed */ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
22 |
char * mix_accents(char *a, const char *b) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
23 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
24 |
int ia,ib,o; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
25 |
char *out; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
26 |
char tmp[MAXWORD]; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
27 |
|
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
28 |
ia = 0; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
29 |
ib = 0; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
30 |
o = 0; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
31 |
while(a[ia] != 0 || b[ib] != 0) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
32 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
33 |
if (closed_accent(&a[ia])) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
34 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
35 |
tmp[o] = a[ia]; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
36 |
tmp[o+1] = a[ia+1]; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
37 |
o+=2; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
38 |
ia+=2; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
39 |
if(closed_accent(&b[ib])) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
40 |
ib+=2; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
41 |
continue; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
42 |
} else if (closed_accent(&b[ib])) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
43 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
44 |
tmp[o] = b[ib]; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
45 |
tmp[o+1] = b[ib+1]; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
46 |
o+=2; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
47 |
ib+=2; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
48 |
continue; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
49 |
} else if (open_accent(&a[ia])) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
50 |
{ |
12 | 51 |
tmp[o] = a[ia]; |
11
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
52 |
o+=1; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
53 |
ia+=1; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
54 |
if (open_accent(&b[ib])) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
55 |
ib+=1; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
56 |
continue; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
57 |
} else if (open_accent(&b[ib])) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
58 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
59 |
tmp[o] = b[ib]; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
60 |
o+=1; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
61 |
ib+=1; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
62 |
continue; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
63 |
} |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
64 |
else |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
65 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
66 |
/* Letter */ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
67 |
tmp[o] = a[ia]; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
68 |
if (a[ia] != 0) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
69 |
++ia; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
70 |
if (b[ib] != 0) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
71 |
++ib; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
72 |
++o; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
73 |
} |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
74 |
} |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
75 |
tmp[o] = 0; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
76 |
out = strdup(tmp); |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
77 |
free(a); |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
78 |
return out; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
79 |
} |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
80 |
|
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
81 |
void remove_accent(unsigned char *dest, const unsigned char *from) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
82 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
83 |
int i,o; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
84 |
|
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
85 |
i = 0; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
86 |
o = 0; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
87 |
while (from[i] != 0) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
88 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
89 |
if (from[i] == 0xcc && from[i+1] == 0x81) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
90 |
i+=2; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
91 |
else if (from[i] == 0x60) |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
92 |
++i; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
93 |
else |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
94 |
{ |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
95 |
dest[o] = from[i]; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
96 |
++o; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
97 |
++i; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
98 |
} |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
99 |
} |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
100 |
dest[o] = 0; |
68ea18fe402c
Adding code for the zprocess, for processing the Zaliznjak dictionary.
viric@llimona
parents:
diff
changeset
|
101 |
} |
14 | 102 |
|
103 |
int skip_newline(const char *str, int *index) |
|
104 |
{ |
|
105 |
while(str[*index] != 0 && str[*index] != '\n') |
|
106 |
{ |
|
107 |
++*index; |
|
108 |
} |
|
109 |
||
110 |
if (str[*index] == '\n') |
|
111 |
return *index; |
|
112 |
||
113 |
return -1; |
|
114 |
} |
|
115 |
||
116 |
int until_noword(const char *str, int *index) |
|
117 |
{ |
|
118 |
while(str[*index] != 0 && |
|
119 |
str[*index] != ' ' && |
|
120 |
str[*index] != '\n' && |
|
121 |
str[*index] != '\r' && |
|
122 |
str[*index] != ',') |
|
123 |
{ |
|
124 |
++*index; |
|
125 |
} |
|
126 |
||
127 |
if (str[*index] != 0) |
|
128 |
return *index; |
|
129 |
||
130 |
return -1; |
|
131 |
} |
|
132 |
||
133 |
int is_ASCII(unsigned char c) |
|
134 |
{ |
|
135 |
if (c < 128) |
|
136 |
return 1; |
|
137 |
return 0; |
|
138 |
} |
|
139 |
||
140 |
int until_newword(const unsigned char *str, int *index) |
|
141 |
{ |
|
142 |
while(str[*index] != 0 && is_ASCII(str[*index])) |
|
143 |
{ |
|
144 |
++*index; |
|
145 |
} |
|
146 |
||
147 |
if (str[*index] != 0); |
|
148 |
return *index; |
|
149 |
||
150 |
return -1; |
|
151 |
} |
|
15 | 152 |
|
153 |
int get_case(enum Case *vcase, const char *str) |
|
154 |
{ |
|
155 |
UChar32 c; |
|
156 |
int i; |
|
157 |
int o; |
|
158 |
int len; |
|
159 |
||
160 |
len = strlen(str); |
|
161 |
||
162 |
i=0; |
|
163 |
o=0; |
|
164 |
do |
|
165 |
{ |
|
166 |
U8_NEXT(str, i, len, c); |
|
167 |
/*printf("[%i] ", c);*/ |
|
168 |
if (c == 0) |
|
169 |
break; |
|
170 |
if (u_islower(c)) |
|
171 |
vcase[o] = LCASE; |
|
172 |
else |
|
173 |
vcase[o] = UCASE; |
|
174 |
++o; |
|
175 |
} while(1); |
|
176 |
||
177 |
return o; |
|
178 |
} |
|
179 |
||
180 |
void get_lowcase_str(char *out, const char *str) |
|
181 |
{ |
|
182 |
UChar32 c; |
|
183 |
int i; |
|
184 |
int o; |
|
185 |
int len; |
|
186 |
char iserror = 0; |
|
187 |
||
188 |
len = strlen(str); |
|
189 |
||
190 |
i=0; |
|
191 |
o=0; |
|
192 |
do |
|
193 |
{ |
|
194 |
U8_NEXT(str, i, len, c); |
|
195 |
/*printf("[%i] ", c);*/ |
|
196 |
c = u_tolower(c); |
|
197 |
U8_APPEND(out, o, MAXWORD, c, iserror); |
|
198 |
if (iserror) |
|
199 |
break; |
|
200 |
if (c == 0) |
|
201 |
break; |
|
202 |
} while(1); |
|
203 |
} |
|
204 |
||
205 |
void reapply_case(char *out, const char *in, const enum Case *vcase) |
|
206 |
{ |
|
207 |
UChar32 c; |
|
208 |
int i; |
|
209 |
int o; |
|
210 |
int vcasepos; |
|
211 |
int len; |
|
212 |
char iserror = 0; |
|
213 |
const UChar32 inverted = '`'; |
|
214 |
||
215 |
len = strlen(in); |
|
216 |
||
217 |
i=0; |
|
218 |
o=0; |
|
219 |
vcasepos = 0; |
|
220 |
do |
|
221 |
{ |
|
222 |
U8_NEXT(in, i, len, c); |
|
223 |
/*printf("[%i] ", c);*/ |
|
224 |
if (c == inverted || u_hasBinaryProperty(c, UCHAR_DIACRITIC)) |
|
225 |
{ |
|
226 |
U8_APPEND(out, o, MAXWORD, c, iserror); |
|
227 |
/* Here we don't increment vcasepos, |
|
228 |
* so the ` or diacritics gets copied without being taken |
|
229 |
* care in the recase process. It will |
|
230 |
* be the only sign that may be _added_ */ |
|
231 |
continue; |
|
232 |
} |
|
233 |
||
234 |
if (vcase[vcasepos] == LCASE) |
|
235 |
c = u_tolower(c); |
|
236 |
else |
|
237 |
c = u_toupper(c); |
|
238 |
vcasepos += 1; |
|
239 |
||
240 |
U8_APPEND(out, o, MAXWORD, c, iserror); |
|
241 |
||
242 |
if (iserror) |
|
243 |
break; |
|
244 |
if (c == 0) |
|
245 |
break; |
|
246 |
} while(1); |
|
247 |
} |
|
16
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
248 |
|
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
249 |
void remove_jo(char *str) |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
250 |
{ |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
251 |
int i, o; |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
252 |
UChar32 c; |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
253 |
char iserror = 0; |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
254 |
|
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
255 |
i=0; |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
256 |
o=0; |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
257 |
do |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
258 |
{ |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
259 |
U8_NEXT(str, i, MAXWORD, c); |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
260 |
if (c == 0x0451) |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
261 |
{ |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
262 |
c = 0x0435; |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
263 |
U8_APPEND(str, o, MAXWORD, c, iserror); |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
264 |
if (iserror) |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
265 |
break; |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
266 |
} |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
267 |
o = i; |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
268 |
if (c == 0) |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
269 |
break; |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
270 |
} while(1); |
b4e251400e36
Improved hash on zprocess, and added parsing for "jo".
viric@llimona
parents:
15
diff
changeset
|
271 |
} |