mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
glib, gobject: Annotate deprecated types and enumerators
Use the new `GLIB_DEPRECATED_{TYPE,ENUMERATOR}*` macros to annotate types and enumerators as deprecated, rather than using `G_DISABLE_DEPRECATED`. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -46,7 +46,7 @@ G_BEGIN_DECLS
|
||||
* @G_SPAWN_ERROR_ACCES: execv() returned `EACCES`
|
||||
* @G_SPAWN_ERROR_PERM: execv() returned `EPERM`
|
||||
* @G_SPAWN_ERROR_TOO_BIG: execv() returned `E2BIG`
|
||||
* @G_SPAWN_ERROR_2BIG: deprecated alias for %G_SPAWN_ERROR_TOO_BIG
|
||||
* @G_SPAWN_ERROR_2BIG: deprecated alias for %G_SPAWN_ERROR_TOO_BIG (deprecated since GLib 2.32)
|
||||
* @G_SPAWN_ERROR_NOEXEC: execv() returned `ENOEXEC`
|
||||
* @G_SPAWN_ERROR_NAMETOOLONG: execv() returned `ENAMETOOLONG`
|
||||
* @G_SPAWN_ERROR_NOENT: execv() returned `ENOENT`
|
||||
@@ -73,9 +73,7 @@ typedef enum
|
||||
G_SPAWN_ERROR_ACCES, /* execv() returned EACCES */
|
||||
G_SPAWN_ERROR_PERM, /* execv() returned EPERM */
|
||||
G_SPAWN_ERROR_TOO_BIG,/* execv() returned E2BIG */
|
||||
#ifndef G_DISABLE_DEPRECATED
|
||||
G_SPAWN_ERROR_2BIG = G_SPAWN_ERROR_TOO_BIG,
|
||||
#endif
|
||||
G_SPAWN_ERROR_2BIG GLIB_DEPRECATED_ENUMERATOR_IN_2_32_FOR(G_SPAWN_ERROR_TOO_BIG) = G_SPAWN_ERROR_TOO_BIG,
|
||||
G_SPAWN_ERROR_NOEXEC, /* execv() returned ENOEXEC */
|
||||
G_SPAWN_ERROR_NAMETOOLONG, /* "" "" ENAMETOOLONG */
|
||||
G_SPAWN_ERROR_NOENT, /* "" "" ENOENT */
|
||||
|
Reference in New Issue
Block a user