mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
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:
parent
737d9c6714
commit
0269749a67
@ -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>
|
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
||||||
|
@ -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>
|
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
||||||
|
@ -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>
|
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
||||||
|
@ -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>
|
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
||||||
|
@ -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>
|
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
||||||
|
@ -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>
|
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
||||||
|
@ -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>
|
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
||||||
|
@ -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>
|
1999-04-22 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
|
||||||
|
33
glib.h
33
glib.h
@ -1698,25 +1698,26 @@ typedef enum
|
|||||||
G_STRING_ERROR_LENGTH /* max_length reached */
|
G_STRING_ERROR_LENGTH /* max_length reached */
|
||||||
} GStringError;
|
} GStringError;
|
||||||
|
|
||||||
#define g_string_length(fstring) (fstring ? fstring->len : 0)
|
#define g_string_length(fstring) (fstring ? fstring->len : 0)
|
||||||
#define g_string_str(fstring) (fstring ? fstring->str : NULL)
|
#define g_string_str(fstring) (fstring ? fstring->str : NULL)
|
||||||
#define g_string_char(fstring, n) (fstring->str[n])
|
#define g_string_char(fstring, n) (fstring->str[n])
|
||||||
|
|
||||||
#define g_string_copy(a,b) (g_string_assign(a, b->str))
|
#define g_string_copy(a,b) (g_string_assign(a, b->str))
|
||||||
#define g_string_dup(fstring) (fstring ? g_string_new(fstring->str) :\
|
#define g_string_dup(fstring) (fstring ? g_string_new(fstring->str) :\
|
||||||
g_string_new(NULL))
|
g_string_new(NULL))
|
||||||
|
|
||||||
#define g_string_cmp(a,b) (strcmp(g_string_str(a), \
|
#define g_string_cmp(a,b) (strcmp(g_string_str(a), \
|
||||||
g_string_str(b)))
|
g_string_str(b)))
|
||||||
#define g_string_ncmp(a,b,n) (strncmp(g_string_str(a), \
|
#define g_string_ncmp(a,b,n) (strncmp(g_string_str(a), \
|
||||||
g_string_str(b), n))
|
g_string_str(b), n))
|
||||||
#define g_string_casecmp(a,b) (g_strcasecmp(g_string_str(a), \
|
#define g_string_casecmp(a,b) (g_strcasecmp(g_string_str(a), \
|
||||||
g_string_str(b)))
|
g_string_str(b)))
|
||||||
#define g_string_ncasecmp(a,b) (g_strncasecmp(g_string_str(a), \
|
#define g_string_ncasecmp(a,b,n) (g_strncasecmp(g_string_str(a), \
|
||||||
g_string_str(b), n))
|
g_string_str(b), n))
|
||||||
|
|
||||||
#define g_string_strcmp(a,b) (strcmp(g_string_str(a), b))
|
#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_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_new (const gchar *init);
|
||||||
GString* g_string_sized_new (guint dfl_size);
|
GString* g_string_sized_new (guint dfl_size);
|
||||||
|
33
glib/glib.h
33
glib/glib.h
@ -1698,25 +1698,26 @@ typedef enum
|
|||||||
G_STRING_ERROR_LENGTH /* max_length reached */
|
G_STRING_ERROR_LENGTH /* max_length reached */
|
||||||
} GStringError;
|
} GStringError;
|
||||||
|
|
||||||
#define g_string_length(fstring) (fstring ? fstring->len : 0)
|
#define g_string_length(fstring) (fstring ? fstring->len : 0)
|
||||||
#define g_string_str(fstring) (fstring ? fstring->str : NULL)
|
#define g_string_str(fstring) (fstring ? fstring->str : NULL)
|
||||||
#define g_string_char(fstring, n) (fstring->str[n])
|
#define g_string_char(fstring, n) (fstring->str[n])
|
||||||
|
|
||||||
#define g_string_copy(a,b) (g_string_assign(a, b->str))
|
#define g_string_copy(a,b) (g_string_assign(a, b->str))
|
||||||
#define g_string_dup(fstring) (fstring ? g_string_new(fstring->str) :\
|
#define g_string_dup(fstring) (fstring ? g_string_new(fstring->str) :\
|
||||||
g_string_new(NULL))
|
g_string_new(NULL))
|
||||||
|
|
||||||
#define g_string_cmp(a,b) (strcmp(g_string_str(a), \
|
#define g_string_cmp(a,b) (strcmp(g_string_str(a), \
|
||||||
g_string_str(b)))
|
g_string_str(b)))
|
||||||
#define g_string_ncmp(a,b,n) (strncmp(g_string_str(a), \
|
#define g_string_ncmp(a,b,n) (strncmp(g_string_str(a), \
|
||||||
g_string_str(b), n))
|
g_string_str(b), n))
|
||||||
#define g_string_casecmp(a,b) (g_strcasecmp(g_string_str(a), \
|
#define g_string_casecmp(a,b) (g_strcasecmp(g_string_str(a), \
|
||||||
g_string_str(b)))
|
g_string_str(b)))
|
||||||
#define g_string_ncasecmp(a,b) (g_strncasecmp(g_string_str(a), \
|
#define g_string_ncasecmp(a,b,n) (g_strncasecmp(g_string_str(a), \
|
||||||
g_string_str(b), n))
|
g_string_str(b), n))
|
||||||
|
|
||||||
#define g_string_strcmp(a,b) (strcmp(g_string_str(a), b))
|
#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_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_new (const gchar *init);
|
||||||
GString* g_string_sized_new (guint dfl_size);
|
GString* g_string_sized_new (guint dfl_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user