mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 07:08:54 +02:00
got rid of outdated dmalloc support. provide g_try_malloc() and
Thu Dec 28 10:21:46 2000 Tim Janik <timj@gtk.org> * gmem.[hc]: got rid of outdated dmalloc support. provide g_try_malloc() and g_try_realloc() which _may_ fail and return NULL. nuked g_mem_check(), provided GMemVTable for memory function virtualization, alterable at program startup with g_mem_set_vtable(). provided glib_mem_profiler_table and g_mem_profile() to support limited profiling information out of the box (uses mprotect() for free()ed areas on linux). provide globally visible G_MEM_ALIGN. buncha cleanups. * docs/macros.txt: file to get a clue about the various configuration macros. * docs/debugging.txt: explain debugging traps. * configure.in: got rid of --enable-mem-check and --enable-mem-profile, define GLIB_SIZEOF_VOID_P and GLIB_SIZEOF_LONG. check malloc prototypes and define SANE_MALLOC_PROTOS is we can use them. <boy, is this file a mess> * gutils.c, gscanner.c: fix up compatibility warnings, use g_message(). Thu Dec 28 11:36:44 2000 Tim Janik <timj@gtk.org> * gbsearcharray.c (upper_power2): disable G_BSEARCH_ALIGN_POWER2 fucntionality if DISABLE_MEM_POOLS is defined. * gtype.c: honour DISABLE_MEM_POOLS. * gsignal.c (g_signal_init): flag signal key bsearch array with G_BSEARCH_ALIGN_POWER2 to avoid excessive growth time. honour DISABLE_MEM_POOLS. * gparam.h: added G_PARAM_READWRITE alias for (G_PARAM_READABLE | G_PARAM_WRITABLE).
This commit is contained in:
8
gutils.c
8
gutils.c
@@ -383,9 +383,9 @@ g_basename (const gchar *file_name)
|
||||
|
||||
if (first_call)
|
||||
{
|
||||
g_warning("g_basename is deprecated. Use g_path_get_basename instead.");
|
||||
g_warning("Watch out! You have to g_free the string returned by "
|
||||
"g_path_get_basename.");
|
||||
g_message ("g_basename is deprecated. Use g_path_get_basename instead. "
|
||||
"Beware that the string returned by g_path_get_basename() has "
|
||||
" to be g_free()ed.");
|
||||
first_call = FALSE;
|
||||
}
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
@@ -512,7 +512,7 @@ g_dirname (const gchar *file_name)
|
||||
|
||||
if (first_call)
|
||||
{
|
||||
g_warning("g_dirname is deprecated. Use g_path_get_dirname instead.");
|
||||
g_message ("g_dirname() is deprecated. Use g_path_get_dirname() instead.");
|
||||
first_call = FALSE;
|
||||
}
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
|
Reference in New Issue
Block a user