From 0269749a67899057d1e861d9b0beebd8e84ae067 Mon Sep 17 00:00:00 2001 From: BST 1999 Tony Gale Date: Fri, 23 Apr 1999 13:34:09 +0000 Subject: [PATCH] Fix typo in g_string_ncasecmp macro (by me). Add b_string_strncasecmp Fri Apr 23 14:29:25 BST 1999 Tony Gale * glib.h: Fix typo in g_string_ncasecmp macro (by me). Add b_string_strncasecmp macro. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib.h | 35 ++++++++++++++++++----------------- glib/glib.h | 35 ++++++++++++++++++----------------- 10 files changed, 76 insertions(+), 34 deletions(-) diff --git a/ChangeLog b/ChangeLog index dc6b075fd..67a39a2b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 23 14:29:25 BST 1999 Tony Gale + + * glib.h: Fix typo in g_string_ncasecmp macro (by me). + Add b_string_strncasecmp macro. + 1999-04-22 Sebastian Wilhelmi * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index dc6b075fd..67a39a2b1 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Fri Apr 23 14:29:25 BST 1999 Tony Gale + + * glib.h: Fix typo in g_string_ncasecmp macro (by me). + Add b_string_strncasecmp macro. + 1999-04-22 Sebastian Wilhelmi * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index dc6b075fd..67a39a2b1 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Fri Apr 23 14:29:25 BST 1999 Tony Gale + + * glib.h: Fix typo in g_string_ncasecmp macro (by me). + Add b_string_strncasecmp macro. + 1999-04-22 Sebastian Wilhelmi * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index dc6b075fd..67a39a2b1 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +Fri Apr 23 14:29:25 BST 1999 Tony Gale + + * glib.h: Fix typo in g_string_ncasecmp macro (by me). + Add b_string_strncasecmp macro. + 1999-04-22 Sebastian Wilhelmi * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index dc6b075fd..67a39a2b1 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Fri Apr 23 14:29:25 BST 1999 Tony Gale + + * glib.h: Fix typo in g_string_ncasecmp macro (by me). + Add b_string_strncasecmp macro. + 1999-04-22 Sebastian Wilhelmi * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index dc6b075fd..67a39a2b1 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Fri Apr 23 14:29:25 BST 1999 Tony Gale + + * glib.h: Fix typo in g_string_ncasecmp macro (by me). + Add b_string_strncasecmp macro. + 1999-04-22 Sebastian Wilhelmi * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index dc6b075fd..67a39a2b1 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Fri Apr 23 14:29:25 BST 1999 Tony Gale + + * glib.h: Fix typo in g_string_ncasecmp macro (by me). + Add b_string_strncasecmp macro. + 1999-04-22 Sebastian Wilhelmi * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index dc6b075fd..67a39a2b1 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Fri Apr 23 14:29:25 BST 1999 Tony Gale + + * glib.h: Fix typo in g_string_ncasecmp macro (by me). + Add b_string_strncasecmp macro. + 1999-04-22 Sebastian Wilhelmi * gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as diff --git a/glib.h b/glib.h index 44d61fd0a..da110059a 100644 --- a/glib.h +++ b/glib.h @@ -1698,25 +1698,26 @@ typedef enum G_STRING_ERROR_LENGTH /* max_length reached */ } GStringError; -#define g_string_length(fstring) (fstring ? fstring->len : 0) -#define g_string_str(fstring) (fstring ? fstring->str : NULL) -#define g_string_char(fstring, n) (fstring->str[n]) +#define g_string_length(fstring) (fstring ? fstring->len : 0) +#define g_string_str(fstring) (fstring ? fstring->str : NULL) +#define g_string_char(fstring, n) (fstring->str[n]) -#define g_string_copy(a,b) (g_string_assign(a, b->str)) -#define g_string_dup(fstring) (fstring ? g_string_new(fstring->str) :\ - g_string_new(NULL)) +#define g_string_copy(a,b) (g_string_assign(a, b->str)) +#define g_string_dup(fstring) (fstring ? g_string_new(fstring->str) :\ + g_string_new(NULL)) -#define g_string_cmp(a,b) (strcmp(g_string_str(a), \ - g_string_str(b))) -#define g_string_ncmp(a,b,n) (strncmp(g_string_str(a), \ - g_string_str(b), n)) -#define g_string_casecmp(a,b) (g_strcasecmp(g_string_str(a), \ - g_string_str(b))) -#define g_string_ncasecmp(a,b) (g_strncasecmp(g_string_str(a), \ - g_string_str(b), n)) - -#define g_string_strcmp(a,b) (strcmp(g_string_str(a), b)) -#define g_string_strcasecmp(a,b) (g_strcasecmp(g_string_str(a), b)) +#define g_string_cmp(a,b) (strcmp(g_string_str(a), \ + g_string_str(b))) +#define g_string_ncmp(a,b,n) (strncmp(g_string_str(a), \ + g_string_str(b), n)) +#define g_string_casecmp(a,b) (g_strcasecmp(g_string_str(a), \ + g_string_str(b))) +#define g_string_ncasecmp(a,b,n) (g_strncasecmp(g_string_str(a), \ + g_string_str(b), n)) + +#define g_string_strcmp(a,b) (strcmp(g_string_str(a), b)) +#define g_string_strcasecmp(a,b) (g_strcasecmp(g_string_str(a), b)) +#define g_string_strncasecmp(a,b,n) (g_strncasecmp(g_string_str(a), b, n)) GString* g_string_new (const gchar *init); GString* g_string_sized_new (guint dfl_size); diff --git a/glib/glib.h b/glib/glib.h index 44d61fd0a..da110059a 100644 --- a/glib/glib.h +++ b/glib/glib.h @@ -1698,25 +1698,26 @@ typedef enum G_STRING_ERROR_LENGTH /* max_length reached */ } GStringError; -#define g_string_length(fstring) (fstring ? fstring->len : 0) -#define g_string_str(fstring) (fstring ? fstring->str : NULL) -#define g_string_char(fstring, n) (fstring->str[n]) +#define g_string_length(fstring) (fstring ? fstring->len : 0) +#define g_string_str(fstring) (fstring ? fstring->str : NULL) +#define g_string_char(fstring, n) (fstring->str[n]) -#define g_string_copy(a,b) (g_string_assign(a, b->str)) -#define g_string_dup(fstring) (fstring ? g_string_new(fstring->str) :\ - g_string_new(NULL)) +#define g_string_copy(a,b) (g_string_assign(a, b->str)) +#define g_string_dup(fstring) (fstring ? g_string_new(fstring->str) :\ + g_string_new(NULL)) -#define g_string_cmp(a,b) (strcmp(g_string_str(a), \ - g_string_str(b))) -#define g_string_ncmp(a,b,n) (strncmp(g_string_str(a), \ - g_string_str(b), n)) -#define g_string_casecmp(a,b) (g_strcasecmp(g_string_str(a), \ - g_string_str(b))) -#define g_string_ncasecmp(a,b) (g_strncasecmp(g_string_str(a), \ - g_string_str(b), n)) - -#define g_string_strcmp(a,b) (strcmp(g_string_str(a), b)) -#define g_string_strcasecmp(a,b) (g_strcasecmp(g_string_str(a), b)) +#define g_string_cmp(a,b) (strcmp(g_string_str(a), \ + g_string_str(b))) +#define g_string_ncmp(a,b,n) (strncmp(g_string_str(a), \ + g_string_str(b), n)) +#define g_string_casecmp(a,b) (g_strcasecmp(g_string_str(a), \ + g_string_str(b))) +#define g_string_ncasecmp(a,b,n) (g_strncasecmp(g_string_str(a), \ + g_string_str(b), n)) + +#define g_string_strcmp(a,b) (strcmp(g_string_str(a), b)) +#define g_string_strcasecmp(a,b) (g_strcasecmp(g_string_str(a), b)) +#define g_string_strncasecmp(a,b,n) (g_strncasecmp(g_string_str(a), b, n)) GString* g_string_new (const gchar *init); GString* g_string_sized_new (guint dfl_size);