From 8061694c496094015bfd3959cbece7ab158ef6ef Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 16 Sep 2014 15:39:59 -0600 Subject: [PATCH] goption: Add G_OPTION_FLAG_NONE This is helpful to better document code, as G_OPTION_FLAG_NONE is more readable than 0. --- glib/goption.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/goption.h b/glib/goption.h index 9e9ca1a..ab12a27 100644 --- a/glib/goption.h +++ b/glib/goption.h @@ -53,6 +53,7 @@ typedef struct _GOptionEntry GOptionEntry; /** * 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_IN_MAIN: The option appears in the main section of the * `--help` output, even if it is defined in a group. @@ -79,6 +80,7 @@ typedef struct _GOptionEntry GOptionEntry; */ typedef enum { + G_OPTION_FLAG_NONE = 0, G_OPTION_FLAG_HIDDEN = 1 << 0, G_OPTION_FLAG_IN_MAIN = 1 << 1, G_OPTION_FLAG_REVERSE = 1 << 2, -- 2.7.4