Changed prototype of printf_string_upper_bound to return gsize. Now

* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize.  Now matches the actual function body.

* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize.  Now matches the prototype in gstrfuncs.h.
This commit is contained in:
Mark Murnane 2001-07-12 09:23:38 +00:00
parent 624a3c9689
commit a0832f025f
10 changed files with 66 additions and 2 deletions

View File

@ -1,3 +1,11 @@
2001-07-12 Mark Murnane <Mark.Murnane@sun.com>
* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize. Now matches the actual function body.
* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize. Now matches the prototype in gstrfuncs.h.
2001-07-11 Darin Adler <darin@bentspoon.com> 2001-07-11 Darin Adler <darin@bentspoon.com>
* .cvsignore: Add some generated files. * .cvsignore: Add some generated files.

View File

@ -1,3 +1,11 @@
2001-07-12 Mark Murnane <Mark.Murnane@sun.com>
* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize. Now matches the actual function body.
* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize. Now matches the prototype in gstrfuncs.h.
2001-07-11 Darin Adler <darin@bentspoon.com> 2001-07-11 Darin Adler <darin@bentspoon.com>
* .cvsignore: Add some generated files. * .cvsignore: Add some generated files.

View File

@ -1,3 +1,11 @@
2001-07-12 Mark Murnane <Mark.Murnane@sun.com>
* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize. Now matches the actual function body.
* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize. Now matches the prototype in gstrfuncs.h.
2001-07-11 Darin Adler <darin@bentspoon.com> 2001-07-11 Darin Adler <darin@bentspoon.com>
* .cvsignore: Add some generated files. * .cvsignore: Add some generated files.

View File

@ -1,3 +1,11 @@
2001-07-12 Mark Murnane <Mark.Murnane@sun.com>
* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize. Now matches the actual function body.
* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize. Now matches the prototype in gstrfuncs.h.
2001-07-11 Darin Adler <darin@bentspoon.com> 2001-07-11 Darin Adler <darin@bentspoon.com>
* .cvsignore: Add some generated files. * .cvsignore: Add some generated files.

View File

@ -1,3 +1,11 @@
2001-07-12 Mark Murnane <Mark.Murnane@sun.com>
* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize. Now matches the actual function body.
* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize. Now matches the prototype in gstrfuncs.h.
2001-07-11 Darin Adler <darin@bentspoon.com> 2001-07-11 Darin Adler <darin@bentspoon.com>
* .cvsignore: Add some generated files. * .cvsignore: Add some generated files.

View File

@ -1,3 +1,11 @@
2001-07-12 Mark Murnane <Mark.Murnane@sun.com>
* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize. Now matches the actual function body.
* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize. Now matches the prototype in gstrfuncs.h.
2001-07-11 Darin Adler <darin@bentspoon.com> 2001-07-11 Darin Adler <darin@bentspoon.com>
* .cvsignore: Add some generated files. * .cvsignore: Add some generated files.

View File

@ -1,3 +1,11 @@
2001-07-12 Mark Murnane <Mark.Murnane@sun.com>
* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize. Now matches the actual function body.
* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize. Now matches the prototype in gstrfuncs.h.
2001-07-11 Darin Adler <darin@bentspoon.com> 2001-07-11 Darin Adler <darin@bentspoon.com>
* .cvsignore: Add some generated files. * .cvsignore: Add some generated files.

View File

@ -1,3 +1,11 @@
2001-07-12 Mark Murnane <Mark.Murnane@sun.com>
* glib/gmessages.c: Changed prototype of printf_string_upper_bound
to return gsize. Now matches the actual function body.
* glib/gstrfuncs.c (g_strrstr_len): Changed type of parameter #2
from gint to gssize. Now matches the prototype in gstrfuncs.h.
2001-07-11 Darin Adler <darin@bentspoon.com> 2001-07-11 Darin Adler <darin@bentspoon.com>
* .cvsignore: Add some generated files. * .cvsignore: Add some generated files.

View File

@ -71,7 +71,7 @@ struct _GLogHandler
/* --- prototypes --- */ /* --- prototypes --- */
static guint printf_string_upper_bound (const gchar *format, static gsize printf_string_upper_bound (const gchar *format,
gboolean may_warn, gboolean may_warn,
va_list args); va_list args);

View File

@ -1879,7 +1879,7 @@ g_strrstr (const gchar *haystack,
**/ **/
gchar * gchar *
g_strrstr_len (const gchar *haystack, g_strrstr_len (const gchar *haystack,
gint haystack_len, gssize haystack_len,
const gchar *needle) const gchar *needle)
{ {
g_return_val_if_fail (haystack != NULL, NULL); g_return_val_if_fail (haystack != NULL, NULL);