From 5baeb21e110afe8c70371b3a093274742583be4e Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 30 May 2003 23:28:34 +0000 Subject: [PATCH] glib/gstrfuncs.c (g_ascii_strncasecmp) Use TOLOWER() macro instead of Fri May 30 19:23:47 2003 Owen Taylor * glib/gstrfuncs.c (g_ascii_strncasecmp) * glib/gstrfuncs.c (g_ascii_strcasecmp): Use TOLOWER() macro instead of g_ascii_tolower() (#107138) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ glib/gstrfuncs.c | 8 ++++---- 7 files changed, 40 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4830d450..c1cd583f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri May 30 19:23:47 2003 Owen Taylor + + * 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 * m4macros/glib-gettext.m4: Backport better handling diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d4830d450..c1cd583f0 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Fri May 30 19:23:47 2003 Owen Taylor + + * 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 * m4macros/glib-gettext.m4: Backport better handling diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index d4830d450..c1cd583f0 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +Fri May 30 19:23:47 2003 Owen Taylor + + * 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 * m4macros/glib-gettext.m4: Backport better handling diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d4830d450..c1cd583f0 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Fri May 30 19:23:47 2003 Owen Taylor + + * 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 * m4macros/glib-gettext.m4: Backport better handling diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d4830d450..c1cd583f0 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Fri May 30 19:23:47 2003 Owen Taylor + + * 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 * m4macros/glib-gettext.m4: Backport better handling diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d4830d450..c1cd583f0 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Fri May 30 19:23:47 2003 Owen Taylor + + * 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 * m4macros/glib-gettext.m4: Backport better handling diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 92a612732..b8c84b721 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -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++;