diff options
author | 2015-07-20 08:11:41 +0200 | |
---|---|---|
committer | 2015-07-20 08:11:41 +0200 | |
commit | 4bcb0c13f50ddb1cd3fd0341b4bb31d9c3c7fc7a (patch) | |
tree | 55eccacfca0e69435d0d4e6615205310ca11f271 /src/lib/util/options.c | |
parent | d132946c6f45aa8d271c6180e86f72dd08243048 (diff) | |
parent | 229785f695b26c702c8490792611f59d0366a933 (diff) |
Merge pull request #5 from mamedev/master
Sync to base master
Diffstat (limited to 'src/lib/util/options.c')
-rw-r--r-- | src/lib/util/options.c | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/src/lib/util/options.c b/src/lib/util/options.c index 62c3cc0379a..69e7189f50b 100644 --- a/src/lib/util/options.c +++ b/src/lib/util/options.c @@ -709,10 +709,15 @@ void core_options::remove_entry(core_options::entry &delentry) m_entrylist.remove(delentry); } - -//------------------------------------------------- -// copyfrom - copy options from another set -//------------------------------------------------- +/** + * @fn void core_options::copyfrom(const core_options &src) + * + * @brief ------------------------------------------------- + * copyfrom - copy options from another set + * -------------------------------------------------. + * + * @param src Source for the. + */ void core_options::copyfrom(const core_options &src) { @@ -724,12 +729,21 @@ void core_options::copyfrom(const core_options &src) append_entry(*global_alloc(entry(curentry->name(), curentry->description(), curentry->flags(), curentry->default_value()))); } - -//------------------------------------------------- -// validate_and_set_data - make sure the data is -// of the appropriate type and within range, -// then set it -//------------------------------------------------- +/** + * @fn bool core_options::validate_and_set_data(core_options::entry &curentry, const char *newdata, int priority, std::string &error_string) + * + * @brief ------------------------------------------------- + * validate_and_set_data - make sure the data is of the appropriate type and within + * range, then set it + * -------------------------------------------------. + * + * @param [in,out] curentry The curentry. + * @param newdata The newdata. + * @param priority The priority. + * @param [in,out] error_string The error string. + * + * @return true if it succeeds, false if it fails. + */ bool core_options::validate_and_set_data(core_options::entry &curentry, const char *newdata, int priority, std::string &error_string) { |