[glib] goption: Add G_OPTION_FLAG_NONE
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] goption: Add G_OPTION_FLAG_NONE
- Date: Tue, 16 Sep 2014 21:51:49 +0000 (UTC)
commit 8061694c496094015bfd3959cbece7ab158ef6ef
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Sep 16 15:39:59 2014 -0600
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 files changed, 2 insertions(+), 0 deletions(-)
---
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]