diff options
author | Tim Janik <timj@gtk.org> | 1998-08-17 14:47:49 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-08-17 14:47:49 +0000 |
commit | 9cde2ffe5f64d07d10bbce479d5911af1b65758c (patch) | |
tree | d55d1b15265b287ea586ebc213075806a7b3fe5e /gstring.c | |
parent | 18466ba2efe3d65fa0c4cb1a30cd75d29ac90530 (diff) | |
download | glib-9cde2ffe5f64d07d10bbce479d5911af1b65758c.tar.gz |
made private functions static.
Mon Aug 17 15:21:42 1998 Tim Janik <timj@gtk.org>
* grel.c: made private functions static.
Diffstat (limited to 'gstring.c')
-rw-r--r-- | gstring.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -578,24 +578,26 @@ get_length_upper_bound (const gchar* fmt, va_list *args) return len; } -char* +extern gchar* g_vsprintf (const gchar *fmt, va_list *args, va_list *args2); +gchar* g_vsprintf (const gchar *fmt, - va_list *args, - va_list *args2) + va_list *args, + va_list *args2) { static gchar *buf = NULL; - static gint alloc = 0; + static guint alloc = 0; + guint len; - gint len = get_length_upper_bound (fmt, args); + len = get_length_upper_bound (fmt, args); if (len >= alloc) { if (buf) g_free (buf); - alloc = nearest_pow (MAX(len + 1, 1024 + 1)); + alloc = nearest_pow (MAX (len + 1, 1024 + 1)); - buf = g_new (char, alloc); + buf = g_new (gchar, alloc); } vsprintf (buf, fmt, *args2); |