mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-29 11:00:02 +01:00
goption: Add G_OPTION_FLAG_NONE
This is helpful to better document code, as G_OPTION_FLAG_NONE is more readable than 0.
This commit is contained in:
parent
84ec6b4d78
commit
8061694c49
@ -53,6 +53,7 @@ typedef struct _GOptionEntry GOptionEntry;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* GOptionFlags:
|
* GOptionFlags:
|
||||||
|
* @G_OPTION_FLAG_NONE: No flags. Since: 2.42.
|
||||||
* @G_OPTION_FLAG_HIDDEN: The option doesn't appear in `--help` output.
|
* @G_OPTION_FLAG_HIDDEN: The option doesn't appear in `--help` output.
|
||||||
* @G_OPTION_FLAG_IN_MAIN: The option appears in the main section of the
|
* @G_OPTION_FLAG_IN_MAIN: The option appears in the main section of the
|
||||||
* `--help` output, even if it is defined in a group.
|
* `--help` output, even if it is defined in a group.
|
||||||
@ -79,6 +80,7 @@ typedef struct _GOptionEntry GOptionEntry;
|
|||||||
*/
|
*/
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
G_OPTION_FLAG_NONE = 0,
|
||||||
G_OPTION_FLAG_HIDDEN = 1 << 0,
|
G_OPTION_FLAG_HIDDEN = 1 << 0,
|
||||||
G_OPTION_FLAG_IN_MAIN = 1 << 1,
|
G_OPTION_FLAG_IN_MAIN = 1 << 1,
|
||||||
G_OPTION_FLAG_REVERSE = 1 << 2,
|
G_OPTION_FLAG_REVERSE = 1 << 2,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user