diff options
author | 2013-01-11 07:32:46 +0000 | |
---|---|---|
committer | 2013-01-11 07:32:46 +0000 | |
commit | 0e19f641d3186cdbf51f8ca857e2b07ab95779c2 (patch) | |
tree | 234109de1123b13f217494af4b3f8efad346d5cc /src/lib/util/options.h | |
parent | 111157ca09a9ff60fe4a9ba49173c315e94314fa (diff) |
Cleanups and version bumpmame0148
Diffstat (limited to 'src/lib/util/options.h')
-rw-r--r-- | src/lib/util/options.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/lib/util/options.h b/src/lib/util/options.h index 6a107cbfad4..8d8ea78a303 100644 --- a/src/lib/util/options.h +++ b/src/lib/util/options.h @@ -51,24 +51,24 @@ //************************************************************************** // option types -const UINT32 OPTION_TYPE_MASK = 0x0007; // up to 8 different types +const UINT32 OPTION_TYPE_MASK = 0x0007; // up to 8 different types enum { - OPTION_INVALID, // invalid - OPTION_HEADER, // a header item - OPTION_COMMAND, // a command - OPTION_BOOLEAN, // boolean option - OPTION_INTEGER, // integer option - OPTION_FLOAT, // floating-point option - OPTION_STRING // string option + OPTION_INVALID, // invalid + OPTION_HEADER, // a header item + OPTION_COMMAND, // a command + OPTION_BOOLEAN, // boolean option + OPTION_INTEGER, // integer option + OPTION_FLOAT, // floating-point option + OPTION_STRING // string option }; // option priorities -const int OPTION_PRIORITY_DEFAULT = 0; // defaults are at 0 priority -const int OPTION_PRIORITY_LOW = 50; // low priority -const int OPTION_PRIORITY_NORMAL = 100; // normal priority -const int OPTION_PRIORITY_HIGH = 150; // high priority -const int OPTION_PRIORITY_MAXIMUM = 255; // maximum priority +const int OPTION_PRIORITY_DEFAULT = 0; // defaults are at 0 priority +const int OPTION_PRIORITY_LOW = 50; // low priority +const int OPTION_PRIORITY_NORMAL = 100; // normal priority +const int OPTION_PRIORITY_HIGH = 150; // high priority +const int OPTION_PRIORITY_MAXIMUM = 255; // maximum priority @@ -79,10 +79,10 @@ const int OPTION_PRIORITY_MAXIMUM = 255; // maximum priority // static structure describing a single option with its description and default value struct options_entry { - const char * name; // name on the command line - const char * defvalue; // default value of this argument - UINT32 flags; // flags to describe the option - const char * description; // description for -showusage + const char * name; // name on the command line + const char * defvalue; // default value of this argument + UINT32 flags; // flags to describe the option + const char * description; // description for -showusage }; @@ -124,17 +124,17 @@ public: private: // internal state - entry * m_next; // link to the next data - UINT32 m_flags; // flags from the entry - UINT32 m_seqid; // sequence ID; bumped on each change - bool m_error_reported; // have we reported an error on this option yet? - int m_priority; // priority of the data set - const char * m_description; // description for this item - astring m_name[4]; // up to 4 names for the item - astring m_data; // data for this item - astring m_defdata; // default data for this item - astring m_minimum; // minimum value - astring m_maximum; // maximum value + entry * m_next; // link to the next data + UINT32 m_flags; // flags from the entry + UINT32 m_seqid; // sequence ID; bumped on each change + bool m_error_reported; // have we reported an error on this option yet? + int m_priority; // priority of the data set + const char * m_description; // description for this item + astring m_name[4]; // up to 4 names for the item + astring m_data; // data for this item + astring m_defdata; // default data for this item + astring m_minimum; // minimum value + astring m_maximum; // maximum value }; // construction/destruction @@ -196,11 +196,11 @@ private: bool validate_and_set_data(entry &curentry, const char *newdata, int priority, astring &error_string); // internal state - entry * m_entrylist; // head of list of entries - entry ** m_entrylist_tailptr; // pointer to tail of entry list - tagmap_t<entry *> m_entrymap; // map for fast lookup - astring m_command; // command found - static const char *const s_option_unadorned[]; // array of unadorned option "names" + entry * m_entrylist; // head of list of entries + entry ** m_entrylist_tailptr; // pointer to tail of entry list + tagmap_t<entry *> m_entrymap; // map for fast lookup + astring m_command; // command found + static const char *const s_option_unadorned[]; // array of unadorned option "names" }; |