mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-14 19:48:05 +02:00
Deprecate g_atexit
This function was just not a good idea to begin with. Its documentation gives plenty of reason not to use it.
This commit is contained in:
parent
3569af4af1
commit
269acbe703
@ -251,6 +251,9 @@ g_memmove (gpointer dest,
|
|||||||
* As can be seen from the above, for portability it's best to avoid
|
* As can be seen from the above, for portability it's best to avoid
|
||||||
* calling g_atexit() (or atexit()) except in the main executable of a
|
* calling g_atexit() (or atexit()) except in the main executable of a
|
||||||
* program.
|
* program.
|
||||||
|
*
|
||||||
|
* Deprecated:2.32: It is best to avoid g_atexit(), for the reasons
|
||||||
|
* outlined above.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
g_atexit (GVoidFunc func)
|
g_atexit (GVoidFunc func)
|
||||||
|
@ -214,7 +214,6 @@ gchar *g_format_size (guint64 size);
|
|||||||
#ifndef G_DISABLE_DEPRECATED
|
#ifndef G_DISABLE_DEPRECATED
|
||||||
GLIB_DEPRECATED_FOR(g_format_size)
|
GLIB_DEPRECATED_FOR(g_format_size)
|
||||||
gchar *g_format_size_for_display (goffset size);
|
gchar *g_format_size_for_display (goffset size);
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GVoidFunc:
|
* GVoidFunc:
|
||||||
@ -234,6 +233,7 @@ typedef void (*GVoidFunc) (void);
|
|||||||
* (if there is any in the implementation) and doesn't encounter
|
* (if there is any in the implementation) and doesn't encounter
|
||||||
* missing include files.
|
* missing include files.
|
||||||
*/
|
*/
|
||||||
|
GLIB_DEPRECATED
|
||||||
void g_atexit (GVoidFunc func);
|
void g_atexit (GVoidFunc func);
|
||||||
|
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
@ -249,6 +249,8 @@ int atexit (void (*)(void));
|
|||||||
#define g_atexit(func) atexit(func)
|
#define g_atexit(func) atexit(func)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* G_DISABLE_DEPRECATED */
|
||||||
|
|
||||||
#ifndef __GTK_DOC_IGNORE__
|
#ifndef __GTK_DOC_IGNORE__
|
||||||
#ifdef G_OS_WIN32
|
#ifdef G_OS_WIN32
|
||||||
#define g_find_program_in_path g_find_program_in_path_utf8
|
#define g_find_program_in_path g_find_program_in_path_utf8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user