Patch from Matthias Clasen (#59806)

Wed Sep 19 14:17:31 2001  Owen Taylor  <otaylor@redhat.com>

	Patch from Matthias Clasen (#59806)

	* configure.in: Check for vasprintf().

	* glib/gmem.[ch]: Add g_mem_vtable_is_set() to be used
	for efficiency hacks to avoid extra copies when not
	needed.

	* glib/gstrfuncs.c: Use vasprintf() to implement
	g_strdup_printf() when available.

	* glib/gmessages.c (g_logv): Avoid using
	printf_string_upper_bound() when we have have vsnprintf.

	* glib/gmessages.c (printf_string_upper_bound): Don't
	segfault when warning about positional parameters.
This commit is contained in:
Owen Taylor
2001-09-19 18:43:22 +00:00
committed by Owen Taylor
parent 4d892e879e
commit 5c12c0acf1
12 changed files with 187 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ struct _GMemVTable
gsize n_bytes);
};
void g_mem_set_vtable (GMemVTable *vtable);
gboolean g_mem_vtable_is_set (void);
/* Memory profiler and checker, has to be enabled via g_mem_set_vtable()
*/