glib/gstrfuncs.c (g_ascii_strncasecmp) Use TOLOWER() macro instead of

Fri May 30 19:23:47 2003  Owen Taylor  <otaylor@redhat.com>

        * glib/gstrfuncs.c (g_ascii_strncasecmp)
        * glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER()
        macro instead of g_ascii_tolower() (#107138)
This commit is contained in:
Owen Taylor 2003-05-30 23:28:34 +00:00 committed by Owen Taylor
parent b3ec0170ab
commit 5baeb21e11
7 changed files with 40 additions and 4 deletions

View File

@ -1,3 +1,9 @@
Fri May 30 19:23:47 2003 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_ascii_strncasecmp)
* glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER()
macro instead of g_ascii_tolower() (#107138)
Fri May 30 19:09:25 2003 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: Backport better handling

View File

@ -1,3 +1,9 @@
Fri May 30 19:23:47 2003 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_ascii_strncasecmp)
* glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER()
macro instead of g_ascii_tolower() (#107138)
Fri May 30 19:09:25 2003 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: Backport better handling

View File

@ -1,3 +1,9 @@
Fri May 30 19:23:47 2003 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_ascii_strncasecmp)
* glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER()
macro instead of g_ascii_tolower() (#107138)
Fri May 30 19:09:25 2003 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: Backport better handling

View File

@ -1,3 +1,9 @@
Fri May 30 19:23:47 2003 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_ascii_strncasecmp)
* glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER()
macro instead of g_ascii_tolower() (#107138)
Fri May 30 19:09:25 2003 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: Backport better handling

View File

@ -1,3 +1,9 @@
Fri May 30 19:23:47 2003 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_ascii_strncasecmp)
* glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER()
macro instead of g_ascii_tolower() (#107138)
Fri May 30 19:09:25 2003 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: Backport better handling

View File

@ -1,3 +1,9 @@
Fri May 30 19:23:47 2003 Owen Taylor <otaylor@redhat.com>
* glib/gstrfuncs.c (g_ascii_strncasecmp)
* glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER()
macro instead of g_ascii_tolower() (#107138)
Fri May 30 19:09:25 2003 Owen Taylor <otaylor@redhat.com>
* m4macros/glib-gettext.m4: Backport better handling

View File

@ -1738,8 +1738,8 @@ g_ascii_strcasecmp (const gchar *s1,
while (*s1 && *s2)
{
c1 = (gint)(guchar) g_ascii_tolower (*s1);
c2 = (gint)(guchar) g_ascii_tolower (*s2);
c1 = (gint)(guchar) TOLOWER (*s1);
c2 = (gint)(guchar) TOLOWER (*s2);
if (c1 != c2)
return (c1 - c2);
s1++; s2++;
@ -1779,8 +1779,8 @@ g_ascii_strncasecmp (const gchar *s1,
while (n && *s1 && *s2)
{
n -= 1;
c1 = (gint)(guchar) g_ascii_tolower (*s1);
c2 = (gint)(guchar) g_ascii_tolower (*s2);
c1 = (gint)(guchar) TOLOWER (*s1);
c2 = (gint)(guchar) TOLOWER (*s2);
if (c1 != c2)
return (c1 - c2);
s1++; s2++;