diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_keymap.c | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to 'libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_keymap.c')
-rw-r--r-- | libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_keymap.c | 490 |
1 files changed, 0 insertions, 490 deletions
diff --git a/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_keymap.c b/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_keymap.c deleted file mode 100644 index b1c7528..0000000 --- a/libraries/ecore/src/lib/ecore_x/xcb/ecore_xcb_keymap.c +++ /dev/null | |||
@@ -1,490 +0,0 @@ | |||
1 | #include "ecore_xcb_private.h" | ||
2 | #define NEED_KEYSYM_TABLE | ||
3 | #define NEED_VTABLE | ||
4 | #include "ecore_xcb_keysym_table.h" | ||
5 | #include <xcb/xcb_keysyms.h> | ||
6 | #include <X11/keysym.h> | ||
7 | |||
8 | /* local function prototypes */ | ||
9 | static int _ecore_xcb_keymap_mask_get(void *reply, | ||
10 | xcb_keysym_t sym); | ||
11 | static xcb_keysym_t _ecore_xcb_keymap_string_to_keysym(const char *str); | ||
12 | static int _ecore_xcb_keymap_translate_key(xcb_keycode_t keycode, | ||
13 | unsigned int modifiers, | ||
14 | unsigned int *modifiers_return, | ||
15 | xcb_keysym_t *keysym_return); | ||
16 | static int _ecore_xcb_keymap_translate_keysym(xcb_keysym_t keysym, | ||
17 | unsigned int modifiers, | ||
18 | char *buffer, | ||
19 | int bytes); | ||
20 | |||
21 | /* local variables */ | ||
22 | static xcb_key_symbols_t *_ecore_xcb_keysyms; | ||
23 | static int _ecore_xcb_mode_switch = 0; | ||
24 | |||
25 | /* public variables */ | ||
26 | EAPI int ECORE_X_MODIFIER_SHIFT = 0; | ||
27 | EAPI int ECORE_X_MODIFIER_CTRL = 0; | ||
28 | EAPI int ECORE_X_MODIFIER_ALT = 0; | ||
29 | EAPI int ECORE_X_MODIFIER_WIN = 0; | ||
30 | EAPI int ECORE_X_LOCK_SCROLL = 0; | ||
31 | EAPI int ECORE_X_LOCK_NUM = 0; | ||
32 | EAPI int ECORE_X_LOCK_CAPS = 0; | ||
33 | EAPI int ECORE_X_LOCK_SHIFT = 0; | ||
34 | |||
35 | void | ||
36 | _ecore_xcb_keymap_init(void) | ||
37 | { | ||
38 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
39 | |||
40 | _ecore_xcb_keysyms = xcb_key_symbols_alloc(_ecore_xcb_conn); | ||
41 | } | ||
42 | |||
43 | void | ||
44 | _ecore_xcb_keymap_finalize(void) | ||
45 | { | ||
46 | xcb_get_modifier_mapping_cookie_t cookie; | ||
47 | xcb_get_modifier_mapping_reply_t *reply; | ||
48 | |||
49 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
50 | CHECK_XCB_CONN; | ||
51 | |||
52 | cookie = xcb_get_modifier_mapping_unchecked(_ecore_xcb_conn); | ||
53 | reply = xcb_get_modifier_mapping_reply(_ecore_xcb_conn, cookie, NULL); | ||
54 | if (!reply) | ||
55 | { | ||
56 | xcb_key_symbols_free(_ecore_xcb_keysyms); | ||
57 | return; | ||
58 | } | ||
59 | |||
60 | _ecore_xcb_mode_switch = _ecore_xcb_keymap_mask_get(reply, XK_Mode_switch); | ||
61 | |||
62 | ECORE_X_MODIFIER_SHIFT = _ecore_xcb_keymap_mask_get(reply, XK_Shift_L); | ||
63 | ECORE_X_MODIFIER_CTRL = _ecore_xcb_keymap_mask_get(reply, XK_Control_L); | ||
64 | |||
65 | ECORE_X_MODIFIER_ALT = _ecore_xcb_keymap_mask_get(reply, XK_Alt_L); | ||
66 | if (!ECORE_X_MODIFIER_ALT) | ||
67 | ECORE_X_MODIFIER_ALT = _ecore_xcb_keymap_mask_get(reply, XK_Meta_L); | ||
68 | if (!ECORE_X_MODIFIER_ALT) | ||
69 | ECORE_X_MODIFIER_ALT = _ecore_xcb_keymap_mask_get(reply, XK_Super_L); | ||
70 | |||
71 | ECORE_X_MODIFIER_WIN = _ecore_xcb_keymap_mask_get(reply, XK_Super_L); | ||
72 | if (!ECORE_X_MODIFIER_WIN) | ||
73 | ECORE_X_MODIFIER_WIN = _ecore_xcb_keymap_mask_get(reply, XK_Mode_switch); | ||
74 | if (!ECORE_X_MODIFIER_WIN) | ||
75 | ECORE_X_MODIFIER_WIN = _ecore_xcb_keymap_mask_get(reply, XK_Meta_L); | ||
76 | |||
77 | if (ECORE_X_MODIFIER_WIN == ECORE_X_MODIFIER_ALT) | ||
78 | ECORE_X_MODIFIER_WIN = 0; | ||
79 | if (ECORE_X_MODIFIER_ALT == ECORE_X_MODIFIER_CTRL) | ||
80 | ECORE_X_MODIFIER_ALT = 0; | ||
81 | |||
82 | ECORE_X_LOCK_SCROLL = _ecore_xcb_keymap_mask_get(reply, XK_Scroll_Lock); | ||
83 | ECORE_X_LOCK_NUM = _ecore_xcb_keymap_mask_get(reply, XK_Num_Lock); | ||
84 | ECORE_X_LOCK_CAPS = _ecore_xcb_keymap_mask_get(reply, XK_Caps_Lock); | ||
85 | ECORE_X_LOCK_SHIFT = _ecore_xcb_keymap_mask_get(reply, XK_Shift_Lock); | ||
86 | } | ||
87 | |||
88 | void | ||
89 | _ecore_xcb_modifiers_get(void) | ||
90 | { | ||
91 | _ecore_xcb_keymap_finalize(); | ||
92 | } | ||
93 | |||
94 | void | ||
95 | _ecore_xcb_keymap_shutdown(void) | ||
96 | { | ||
97 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
98 | |||
99 | if (_ecore_xcb_keysyms) xcb_key_symbols_free(_ecore_xcb_keysyms); | ||
100 | } | ||
101 | |||
102 | void | ||
103 | _ecore_xcb_keymap_refresh(xcb_mapping_notify_event_t *event) | ||
104 | { | ||
105 | CHECK_XCB_CONN; | ||
106 | xcb_refresh_keyboard_mapping(_ecore_xcb_keysyms, event); | ||
107 | } | ||
108 | |||
109 | xcb_keysym_t | ||
110 | _ecore_xcb_keymap_keycode_to_keysym(xcb_keycode_t keycode, | ||
111 | int col) | ||
112 | { | ||
113 | xcb_keysym_t key0, key1; | ||
114 | |||
115 | CHECK_XCB_CONN; | ||
116 | if (col & _ecore_xcb_mode_switch) | ||
117 | { | ||
118 | key0 = xcb_key_symbols_get_keysym(_ecore_xcb_keysyms, keycode, 4); | ||
119 | key1 = xcb_key_symbols_get_keysym(_ecore_xcb_keysyms, keycode, 5); | ||
120 | } | ||
121 | else | ||
122 | { | ||
123 | key0 = xcb_key_symbols_get_keysym(_ecore_xcb_keysyms, keycode, 0); | ||
124 | key1 = xcb_key_symbols_get_keysym(_ecore_xcb_keysyms, keycode, 1); | ||
125 | } | ||
126 | |||
127 | if (key1 == XCB_NO_SYMBOL) | ||
128 | key1 = key0; | ||
129 | |||
130 | if ((col & ECORE_X_LOCK_NUM) && | ||
131 | ((xcb_is_keypad_key(key1)) || (xcb_is_private_keypad_key(key1)))) | ||
132 | { | ||
133 | if ((col & XCB_MOD_MASK_SHIFT) || | ||
134 | ((col & XCB_MOD_MASK_LOCK) && (col & ECORE_X_LOCK_SHIFT))) | ||
135 | return key0; | ||
136 | else | ||
137 | return key1; | ||
138 | } | ||
139 | else if (!(col & XCB_MOD_MASK_SHIFT) && !(col & XCB_MOD_MASK_LOCK)) | ||
140 | return key0; | ||
141 | else if (!(col & XCB_MOD_MASK_SHIFT) && | ||
142 | (col & XCB_MOD_MASK_LOCK && (col & ECORE_X_LOCK_CAPS))) | ||
143 | return key1; | ||
144 | else if ((col & XCB_MOD_MASK_SHIFT) && | ||
145 | (col & XCB_MOD_MASK_LOCK) && (col & ECORE_X_LOCK_CAPS)) | ||
146 | return key0; | ||
147 | else if ((col & XCB_MOD_MASK_SHIFT) || | ||
148 | (col & XCB_MOD_MASK_LOCK && (col & ECORE_X_LOCK_SHIFT))) | ||
149 | return key1; | ||
150 | |||
151 | return XCB_NO_SYMBOL; | ||
152 | } | ||
153 | |||
154 | xcb_keycode_t * | ||
155 | _ecore_xcb_keymap_keysym_to_keycode(xcb_keysym_t keysym) | ||
156 | { | ||
157 | CHECK_XCB_CONN; | ||
158 | return xcb_key_symbols_get_keycode(_ecore_xcb_keysyms, keysym); | ||
159 | } | ||
160 | |||
161 | char * | ||
162 | _ecore_xcb_keymap_keysym_to_string(xcb_keysym_t keysym) | ||
163 | { | ||
164 | int i = 0, n = 0, h = 0, idx = 0; | ||
165 | const unsigned char *entry; | ||
166 | unsigned char val1, val2, val3, val4; | ||
167 | |||
168 | CHECK_XCB_CONN; | ||
169 | if (!keysym) return NULL; | ||
170 | if (keysym == XK_VoidSymbol) keysym = 0; | ||
171 | if (keysym <= 0x1fffffff) | ||
172 | { | ||
173 | val1 = (keysym >> 24); | ||
174 | val2 = ((keysym >> 16) & 0xff); | ||
175 | val3 = ((keysym >> 8) & 0xff); | ||
176 | val4 = (keysym & 0xff); | ||
177 | i = keysym % VTABLESIZE; | ||
178 | h = i + 1; | ||
179 | n = VMAXHASH; | ||
180 | while ((idx = hashKeysym[i])) | ||
181 | { | ||
182 | entry = &_ecore_xcb_keytable[idx]; | ||
183 | if ((entry[0] == val1) && (entry[1] == val2) && | ||
184 | (entry[2] == val3) && (entry[3] == val4)) | ||
185 | return (char *)entry + 4; | ||
186 | if (!--n) break; | ||
187 | i += h; | ||
188 | if (i >= VTABLESIZE) i -= VTABLESIZE; | ||
189 | } | ||
190 | } | ||
191 | |||
192 | if ((keysym >= 0x01000100) && (keysym <= 0x0110ffff)) | ||
193 | { | ||
194 | xcb_keysym_t val; | ||
195 | char *s = NULL; | ||
196 | int i = 0; | ||
197 | |||
198 | val = (keysym & 0xffffff); | ||
199 | if (val & 0xff0000) | ||
200 | i = 10; | ||
201 | else | ||
202 | i = 6; | ||
203 | |||
204 | if (!(s = malloc(i))) return NULL; | ||
205 | i--; | ||
206 | s[i--] = '\0'; | ||
207 | for (; i; i--) | ||
208 | { | ||
209 | val1 = (val & 0xf); | ||
210 | val >>= 4; | ||
211 | if (val1 < 10) | ||
212 | s[i] = '0' + val1; | ||
213 | else | ||
214 | s[i] = 'A' + val1 - 10; | ||
215 | } | ||
216 | s[i] = 'U'; | ||
217 | return s; | ||
218 | } | ||
219 | |||
220 | return NULL; | ||
221 | } | ||
222 | |||
223 | xcb_keycode_t | ||
224 | _ecore_xcb_keymap_string_to_keycode(const char *key) | ||
225 | { | ||
226 | if (!strncmp(key, "Keycode-", 8)) | ||
227 | return atoi(key + 8); | ||
228 | else | ||
229 | { | ||
230 | xcb_keysym_t keysym = XCB_NO_SYMBOL; | ||
231 | xcb_keycode_t *keycodes, keycode = 0; | ||
232 | int i = 0; | ||
233 | |||
234 | CHECK_XCB_CONN; | ||
235 | |||
236 | keysym = _ecore_xcb_keymap_string_to_keysym(key); | ||
237 | if (keysym == XCB_NO_SYMBOL) return XCB_NO_SYMBOL; | ||
238 | |||
239 | keycodes = _ecore_xcb_keymap_keysym_to_keycode(keysym); | ||
240 | if (!keycodes) return XCB_NO_SYMBOL; | ||
241 | |||
242 | while (keycodes[i] != XCB_NO_SYMBOL) | ||
243 | { | ||
244 | if (keycodes[i] != 0) | ||
245 | { | ||
246 | keycode = keycodes[i]; | ||
247 | break; | ||
248 | } | ||
249 | i++; | ||
250 | } | ||
251 | return keycode; | ||
252 | } | ||
253 | } | ||
254 | |||
255 | int | ||
256 | _ecore_xcb_keymap_lookup_string(xcb_keycode_t keycode, | ||
257 | int state, | ||
258 | char *buffer, | ||
259 | int bytes, | ||
260 | xcb_keysym_t *sym) | ||
261 | { | ||
262 | unsigned int modifiers = 0; | ||
263 | xcb_keysym_t keysym; | ||
264 | |||
265 | CHECK_XCB_CONN; | ||
266 | if (!_ecore_xcb_keymap_translate_key(keycode, state, &modifiers, &keysym)) | ||
267 | return 0; | ||
268 | |||
269 | if (sym) *sym = keysym; | ||
270 | |||
271 | return _ecore_xcb_keymap_translate_keysym(keysym, state, buffer, bytes); | ||
272 | } | ||
273 | |||
274 | EAPI const char * | ||
275 | ecore_x_keysym_string_get(int keysym) | ||
276 | { | ||
277 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
278 | |||
279 | return _ecore_xcb_keymap_keysym_to_string(keysym); | ||
280 | } | ||
281 | |||
282 | EAPI int | ||
283 | ecore_x_keysym_keycode_get(const char *keyname) | ||
284 | { | ||
285 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
286 | |||
287 | return _ecore_xcb_keymap_string_to_keycode(keyname); | ||
288 | } | ||
289 | |||
290 | /* local functions */ | ||
291 | static int | ||
292 | _ecore_xcb_keymap_mask_get(void *reply, | ||
293 | xcb_keysym_t sym) | ||
294 | { | ||
295 | xcb_get_modifier_mapping_reply_t *rep; | ||
296 | xcb_keysym_t sym2; | ||
297 | int mask = 0; | ||
298 | const int masks[8] = | ||
299 | { | ||
300 | XCB_MOD_MASK_SHIFT, XCB_MOD_MASK_LOCK, XCB_MOD_MASK_CONTROL, | ||
301 | XCB_MOD_MASK_1, XCB_MOD_MASK_2, XCB_MOD_MASK_3, XCB_MOD_MASK_4, | ||
302 | XCB_MOD_MASK_5 | ||
303 | }; | ||
304 | |||
305 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | ||
306 | CHECK_XCB_CONN; | ||
307 | |||
308 | rep = (xcb_get_modifier_mapping_reply_t *)reply; | ||
309 | if ((rep) && (rep->keycodes_per_modifier > 0)) | ||
310 | { | ||
311 | int i = 0; | ||
312 | xcb_keycode_t *modmap; | ||
313 | |||
314 | modmap = xcb_get_modifier_mapping_keycodes(rep); | ||
315 | for (i = 0; i < (8 * rep->keycodes_per_modifier); i++) | ||
316 | { | ||
317 | int j = 0; | ||
318 | |||
319 | for (j = 0; j < 8; j++) | ||
320 | { | ||
321 | sym2 = | ||
322 | xcb_key_symbols_get_keysym(_ecore_xcb_keysyms, | ||
323 | modmap[i], j); | ||
324 | if (sym2 != 0) break; | ||
325 | } | ||
326 | if (sym2 == sym) | ||
327 | { | ||
328 | mask = masks[i / rep->keycodes_per_modifier]; | ||
329 | break; | ||
330 | } | ||
331 | } | ||
332 | } | ||
333 | |||
334 | return mask; | ||
335 | } | ||
336 | |||
337 | static xcb_keysym_t | ||
338 | _ecore_xcb_keymap_string_to_keysym(const char *str) | ||
339 | { | ||
340 | int i = 0, n = 0, h = 0; | ||
341 | unsigned long sig = 0; | ||
342 | const char *p = NULL; | ||
343 | int c = 0, idx = 0; | ||
344 | const unsigned char *entry; | ||
345 | unsigned char sig1, sig2; | ||
346 | long unsigned int val; | ||
347 | |||
348 | p = str; | ||
349 | while ((c = *p++)) | ||
350 | sig = (sig << 1) + c; | ||
351 | |||
352 | i = (sig % KTABLESIZE); | ||
353 | h = i + 1; | ||
354 | sig1 = (sig >> 8) & 0xff; | ||
355 | sig2 = sig & 0xff; | ||
356 | n = KMAXHASH; | ||
357 | |||
358 | while ((idx = hashString[i])) | ||
359 | { | ||
360 | entry = &_ecore_xcb_keytable[idx]; | ||
361 | if ((entry[0] == sig1) && (entry[1] == sig2) && | ||
362 | !strcmp(str, (char *)entry + 6)) | ||
363 | { | ||
364 | val = ((entry[2] << 24) | (entry[3] << 16) | | ||
365 | (entry[4] << 8) | (entry[5])); | ||
366 | if (!val) val = 0xffffff; | ||
367 | return val; | ||
368 | } | ||
369 | if (!--n) break; | ||
370 | i += h; | ||
371 | if (i >= KTABLESIZE) i -= KTABLESIZE; | ||
372 | } | ||
373 | |||
374 | if (*str == 'U') | ||
375 | { | ||
376 | val = 0; | ||
377 | for (p = &str[1]; *p; p++) | ||
378 | { | ||
379 | c = *p; | ||
380 | if (('0' <= c) && (c <= '9')) | ||
381 | val = (val << 4) + c - '0'; | ||
382 | else if (('a' <= c) && (c <= 'f')) | ||
383 | val = (val << 4) + c - 'a' + 10; | ||
384 | else if (('A' <= c) && (c <= 'F')) | ||
385 | val = (val << 4) + c - 'A' + 10; | ||
386 | else | ||
387 | return XCB_NO_SYMBOL; | ||
388 | if (val > 0x10ffff) return XCB_NO_SYMBOL; | ||
389 | } | ||
390 | if ((val < 0x20) || ((val > 0x7e) && (val < 0xa0))) | ||
391 | return XCB_NO_SYMBOL; | ||
392 | if (val < 0x100) return val; | ||
393 | return val | 0x01000000; | ||
394 | } | ||
395 | |||
396 | if ((strlen(str) > 2) && (str[0] == '0') && (str[1] == 'x')) | ||
397 | { | ||
398 | char *tmp = NULL; | ||
399 | |||
400 | val = strtoul(str, &tmp, 16); | ||
401 | if ((val == ULONG_MAX) || ((tmp) && (*tmp != '\0'))) | ||
402 | return XCB_NO_SYMBOL; | ||
403 | else | ||
404 | return val; | ||
405 | } | ||
406 | |||
407 | if (!strncmp(str, "XF86_", 5)) | ||
408 | { | ||
409 | long unsigned int ret; | ||
410 | char *tmp; | ||
411 | |||
412 | tmp = strdup(str); | ||
413 | if (!tmp) return XCB_NO_SYMBOL; | ||
414 | memmove(&tmp[4], &tmp[5], strlen(str) - 5 + 1); | ||
415 | ret = _ecore_xcb_keymap_string_to_keysym(tmp); | ||
416 | free(tmp); | ||
417 | return ret; | ||
418 | } | ||
419 | |||
420 | return XCB_NO_SYMBOL; | ||
421 | } | ||
422 | |||
423 | static int | ||
424 | _ecore_xcb_keymap_translate_key(xcb_keycode_t keycode, | ||
425 | unsigned int modifiers, | ||
426 | unsigned int *modifiers_return, | ||
427 | xcb_keysym_t *keysym_return) | ||
428 | { | ||
429 | xcb_keysym_t sym; | ||
430 | |||
431 | if (!_ecore_xcb_keysyms) return 0; | ||
432 | |||
433 | sym = _ecore_xcb_keymap_keycode_to_keysym(keycode, modifiers); | ||
434 | |||
435 | if (modifiers_return) | ||
436 | *modifiers_return = ((XCB_MOD_MASK_SHIFT | XCB_MOD_MASK_LOCK) | | ||
437 | _ecore_xcb_mode_switch | ECORE_X_LOCK_NUM); | ||
438 | if (keysym_return) | ||
439 | *keysym_return = sym; | ||
440 | |||
441 | return 1; | ||
442 | } | ||
443 | |||
444 | static int | ||
445 | _ecore_xcb_keymap_translate_keysym(xcb_keysym_t keysym, | ||
446 | unsigned int modifiers, | ||
447 | char *buffer, | ||
448 | int bytes) | ||
449 | { | ||
450 | unsigned long hbytes = 0; | ||
451 | unsigned char c; | ||
452 | |||
453 | if (!keysym) return 0; | ||
454 | hbytes = (keysym >> 8); | ||
455 | |||
456 | if (!(bytes && | ||
457 | ((hbytes == 0) || | ||
458 | ((hbytes == 0xFF) && | ||
459 | (((keysym >= XK_BackSpace) && (keysym <= XK_Clear)) || | ||
460 | (keysym == XK_Return) || (keysym == XK_Escape) || | ||
461 | (keysym == XK_KP_Space) || (keysym == XK_KP_Tab) || | ||
462 | (keysym == XK_KP_Enter) || | ||
463 | ((keysym >= XK_KP_Multiply) && (keysym <= XK_KP_9)) || | ||
464 | (keysym == XK_KP_Equal) || (keysym == XK_Delete)))))) | ||
465 | return 0; | ||
466 | |||
467 | if (keysym == XK_KP_Space) | ||
468 | c = (XK_space & 0x7F); | ||
469 | else if (hbytes == 0xFF) | ||
470 | c = (keysym & 0x7F); | ||
471 | else | ||
472 | c = (keysym & 0xFF); | ||
473 | |||
474 | if (modifiers & ECORE_X_MODIFIER_CTRL) | ||
475 | { | ||
476 | if (((c >= '@') && (c < '\177')) || c == ' ') | ||
477 | c &= 0x1F; | ||
478 | else if (c == '2') | ||
479 | c = '\000'; | ||
480 | else if ((c >= '3') && (c <= '7')) | ||
481 | c -= ('3' - '\033'); | ||
482 | else if (c == '8') | ||
483 | c = '\177'; | ||
484 | else if (c == '/') | ||
485 | c = '_' & 0x1F; | ||
486 | } | ||
487 | buffer[0] = c; | ||
488 | return 1; | ||
489 | } | ||
490 | |||