mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
cast the string size to gulong and use %lu for printing to avoid 64bit
Sat Sep 29 02:33:14 2001 George Lebl <jirka@5z.com> * tests/testglib.c (main): cast the string size to gulong and use %lu for printing to avoid 64bit issues * glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument to gsize instead guint.
This commit is contained in:
parent
bafb616c35
commit
46aae08e8d
@ -1,3 +1,11 @@
|
||||
Sat Sep 29 02:33:14 2001 George Lebl <jirka@5z.com>
|
||||
|
||||
* tests/testglib.c (main): cast the string size to gulong and use %lu
|
||||
for printing to avoid 64bit issues
|
||||
|
||||
* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
|
||||
to gsize instead guint.
|
||||
|
||||
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/libcharset/* configure.in: Fix macros from libcharset
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Sep 29 02:33:14 2001 George Lebl <jirka@5z.com>
|
||||
|
||||
* tests/testglib.c (main): cast the string size to gulong and use %lu
|
||||
for printing to avoid 64bit issues
|
||||
|
||||
* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
|
||||
to gsize instead guint.
|
||||
|
||||
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/libcharset/* configure.in: Fix macros from libcharset
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Sep 29 02:33:14 2001 George Lebl <jirka@5z.com>
|
||||
|
||||
* tests/testglib.c (main): cast the string size to gulong and use %lu
|
||||
for printing to avoid 64bit issues
|
||||
|
||||
* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
|
||||
to gsize instead guint.
|
||||
|
||||
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/libcharset/* configure.in: Fix macros from libcharset
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Sep 29 02:33:14 2001 George Lebl <jirka@5z.com>
|
||||
|
||||
* tests/testglib.c (main): cast the string size to gulong and use %lu
|
||||
for printing to avoid 64bit issues
|
||||
|
||||
* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
|
||||
to gsize instead guint.
|
||||
|
||||
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/libcharset/* configure.in: Fix macros from libcharset
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Sep 29 02:33:14 2001 George Lebl <jirka@5z.com>
|
||||
|
||||
* tests/testglib.c (main): cast the string size to gulong and use %lu
|
||||
for printing to avoid 64bit issues
|
||||
|
||||
* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
|
||||
to gsize instead guint.
|
||||
|
||||
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/libcharset/* configure.in: Fix macros from libcharset
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Sep 29 02:33:14 2001 George Lebl <jirka@5z.com>
|
||||
|
||||
* tests/testglib.c (main): cast the string size to gulong and use %lu
|
||||
for printing to avoid 64bit issues
|
||||
|
||||
* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
|
||||
to gsize instead guint.
|
||||
|
||||
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/libcharset/* configure.in: Fix macros from libcharset
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Sep 29 02:33:14 2001 George Lebl <jirka@5z.com>
|
||||
|
||||
* tests/testglib.c (main): cast the string size to gulong and use %lu
|
||||
for printing to avoid 64bit issues
|
||||
|
||||
* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
|
||||
to gsize instead guint.
|
||||
|
||||
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/libcharset/* configure.in: Fix macros from libcharset
|
||||
|
@ -1,3 +1,11 @@
|
||||
Sat Sep 29 02:33:14 2001 George Lebl <jirka@5z.com>
|
||||
|
||||
* tests/testglib.c (main): cast the string size to gulong and use %lu
|
||||
for printing to avoid 64bit issues
|
||||
|
||||
* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
|
||||
to gsize instead guint.
|
||||
|
||||
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* glib/libcharset/* configure.in: Fix macros from libcharset
|
||||
|
@ -1268,7 +1268,7 @@ g_ascii_strcasecmp (const gchar *s1,
|
||||
gint
|
||||
g_ascii_strncasecmp (const gchar *s1,
|
||||
const gchar *s2,
|
||||
guint n)
|
||||
gsize n)
|
||||
{
|
||||
gint c1, c2;
|
||||
|
||||
|
@ -129,7 +129,7 @@ gint g_ascii_strcasecmp (const gchar *s1,
|
||||
const gchar *s2);
|
||||
gint g_ascii_strncasecmp (const gchar *s1,
|
||||
const gchar *s2,
|
||||
guint n);
|
||||
gsize n);
|
||||
gchar* g_ascii_strdown (const gchar *str,
|
||||
gssize len);
|
||||
gchar* g_ascii_strup (const gchar *str,
|
||||
|
@ -823,7 +823,7 @@ main (int argc,
|
||||
10, 666, 15, 15, 666.666666666, 666.666666666);
|
||||
#endif
|
||||
|
||||
g_print ("string2 length = %d...\n", string2->len);
|
||||
g_print ("string2 length = %lu...\n", (gulong)string2->len);
|
||||
string2->str[70] = '\0';
|
||||
g_print ("first 70 chars:\n%s\n", string2->str);
|
||||
string2->str[141] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user