Fix typo in g_string_ncasecmp macro (by me). Add b_string_strncasecmp

Fri Apr 23 14:29:25 BST 1999  Tony Gale <gale@gtk.org>

        * glib.h: Fix typo in g_string_ncasecmp macro (by me).
          Add b_string_strncasecmp macro.
This commit is contained in:
BST 1999 Tony Gale 1999-04-23 13:34:09 +00:00 committed by Tony Gale
parent 737d9c6714
commit 0269749a67
10 changed files with 76 additions and 34 deletions

View File

@ -1,3 +1,8 @@
Fri Apr 23 14:29:25 BST 1999 Tony Gale <gale@gtk.org>
* glib.h: Fix typo in g_string_ncasecmp macro (by me).
Add b_string_strncasecmp macro.
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as

View File

@ -1,3 +1,8 @@
Fri Apr 23 14:29:25 BST 1999 Tony Gale <gale@gtk.org>
* glib.h: Fix typo in g_string_ncasecmp macro (by me).
Add b_string_strncasecmp macro.
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as

View File

@ -1,3 +1,8 @@
Fri Apr 23 14:29:25 BST 1999 Tony Gale <gale@gtk.org>
* glib.h: Fix typo in g_string_ncasecmp macro (by me).
Add b_string_strncasecmp macro.
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as

View File

@ -1,3 +1,8 @@
Fri Apr 23 14:29:25 BST 1999 Tony Gale <gale@gtk.org>
* glib.h: Fix typo in g_string_ncasecmp macro (by me).
Add b_string_strncasecmp macro.
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as

View File

@ -1,3 +1,8 @@
Fri Apr 23 14:29:25 BST 1999 Tony Gale <gale@gtk.org>
* glib.h: Fix typo in g_string_ncasecmp macro (by me).
Add b_string_strncasecmp macro.
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as

View File

@ -1,3 +1,8 @@
Fri Apr 23 14:29:25 BST 1999 Tony Gale <gale@gtk.org>
* glib.h: Fix typo in g_string_ncasecmp macro (by me).
Add b_string_strncasecmp macro.
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as

View File

@ -1,3 +1,8 @@
Fri Apr 23 14:29:25 BST 1999 Tony Gale <gale@gtk.org>
* glib.h: Fix typo in g_string_ncasecmp macro (by me).
Add b_string_strncasecmp macro.
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as

View File

@ -1,3 +1,8 @@
Fri Apr 23 14:29:25 BST 1999 Tony Gale <gale@gtk.org>
* glib.h: Fix typo in g_string_ncasecmp macro (by me).
Add b_string_strncasecmp macro.
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as

35
glib.h
View File

@ -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);

View File

@ -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);