mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-24 11:18:56 +01:00
Remove definition of g_hash_table_freeze and g_hash_table_thaw. Instead
2001-04-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * ghash.c, ghash.h: Remove definition of g_hash_table_freeze and g_hash_table_thaw. Instead added G_DISABLE_DEPRECATED-guarded macros to ghash.h to go along the lines of the standard. * gscanner.c, gscanner.h: Dito for g_scanner_freeze_symbol_table and g_scanner_thaw_symbol_table. * gutils.c, gutils.h: Dito for g_dirname. g_basename is still defined in gutils.c, but declared ing gutils.h only G_DISABLE_DEPRECATED-guarded.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
4f5ea7fce3
commit
d52e5cd5cf
6
gutils.h
6
gutils.h
@@ -149,12 +149,16 @@ gboolean g_path_is_absolute (const gchar *file_name);
|
||||
/* In case of absolute paths, skip the root part */
|
||||
G_CONST_RETURN gchar* g_path_skip_root (const gchar *file_name);
|
||||
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
|
||||
/* These two functions are deprecated and will be removed in the next
|
||||
* major release of GLib. Use g_path_get_dirname/g_path_get_basename
|
||||
* instead. Whatch out! The string returned by g_path_get_basename
|
||||
* must be g_freed, while the string returned by g_basename must not.*/
|
||||
G_CONST_RETURN gchar* g_basename (const gchar *file_name);
|
||||
gchar* g_dirname (const gchar *file_name);
|
||||
#define g_dirname g_path_get_dirname
|
||||
|
||||
#endif /* G_DISABLE_DEPRECATED */
|
||||
|
||||
/* The returned strings are newly allocated with g_malloc() */
|
||||
gchar* g_get_current_dir (void);
|
||||
|
||||
Reference in New Issue
Block a user