summaryrefslogtreecommitdiff
path: root/charset/fribidi-char-sets.c
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2017-11-12 00:10:41 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2017-11-12 00:28:22 +0200
commit39d1c30d9fbfbcf6df81b94600cb000c69a02475 (patch)
tree0a7458be77562125063a6442990af3da4616c230 /charset/fribidi-char-sets.c
parent93fbff126e3474d7b35563cc921073323fc70ed3 (diff)
downloadfribidi-39d1c30d9fbfbcf6df81b94600cb000c69a02475.tar.gz
Drop GLib use in the library and main program
Only users left are the fribidi-vs-unicode test programs.
Diffstat (limited to 'charset/fribidi-char-sets.c')
-rw-r--r--charset/fribidi-char-sets.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/charset/fribidi-char-sets.c b/charset/fribidi-char-sets.c
index f7156b4..5a9e21e 100644
--- a/charset/fribidi-char-sets.c
+++ b/charset/fribidi-char-sets.c
@@ -113,12 +113,8 @@ static FriBidiCharSetHandler char_sets[FRIBIDI_CHAR_SETS_NUM + 1] = {
# undef _FRIBIDI_ADD_CHAR_SET_ONE2ONE
};
-#if FRIBIDI_USE_GLIB+0
-# include <glib/gstrfuncs.h>
-# define fribidi_strcasecmp g_ascii_strcasecmp
-#else /* !FRIBIDI_USE_GLIB */
static char
-toupper (
+fribidi_toupper (
/* input */
char c
)
@@ -133,14 +129,13 @@ fribidi_strcasecmp (
const char *s2
)
{
- while (*s1 && toupper (*s1) == toupper (*s2))
+ while (*s1 && fribidi_toupper (*s1) == fribidi_toupper (*s2))
{
s1++;
s2++;
}
- return toupper (*s1) - toupper (*s2);
+ return fribidi_toupper (*s1) - fribidi_toupper (*s2);
}
-#endif /* !FRIBIDI_USE_GLIB */
FRIBIDI_ENTRY FriBidiCharSet
fribidi_parse_charset (