barnowl_perlaimdebianrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change
on this file since 428834d was
c60ade2,
checked in by Alejandro R. Sedeño <asedeno@mit.edu>, 17 years ago
|
* set min glib version to 2.12.0
- first to support Unicode 5.0
* added glib_compat.c with our own implementation of
g_unicode_ismark() for glib < 2.14
|
-
Property mode set to
100644
|
File size:
427 bytes
|
Line | |
---|
1 | #include <owl.h> |
---|
2 | |
---|
3 | #if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 14) |
---|
4 | /* Our own implementation of g_unichar_is_mark for glib versions that |
---|
5 | are too old to have one. */ |
---|
6 | int g_unichar_ismark(gunichar ucs) |
---|
7 | { |
---|
8 | GUnicodeType t = g_unichar_type(ucs); |
---|
9 | switch (t) { |
---|
10 | case G_UNICODE_NON_SPACING_MARK: |
---|
11 | case G_UNICODE_COMBINING_MARK: |
---|
12 | case G_UNICODE_ENCLOSING_MARK: |
---|
13 | return 1; |
---|
14 | default: |
---|
15 | return 0; |
---|
16 | } |
---|
17 | } |
---|
18 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.