diff options
author | wm4 <wm4@nowhere> | 2013-10-24 20:00:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-10-24 22:50:13 +0200 |
commit | 4cd143e4d81f062ee89cdd4f8121157044e7238c (patch) | |
tree | 24543d98fd79befe47b6752322bd05f62f8e7542 /mpvcore/m_config.h | |
parent | a217c08b179d635f07a0f43c33c8cf3ca8e78400 (diff) | |
download | mpv-4cd143e4d81f062ee89cdd4f8121157044e7238c.tar.bz2 mpv-4cd143e4d81f062ee89cdd4f8121157044e7238c.tar.xz |
m_config: store m_config_options in an array instead of a list
Might reduce memory overhead, and is also less annoying.
Since pointers to m_config_options are kept around, this assumes
they're added only during initialization. Otherwise you'd get
dangling pointers.
Diffstat (limited to 'mpvcore/m_config.h')
-rw-r--r-- | mpvcore/m_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/m_config.h b/mpvcore/m_config.h index 07d27ac505..f16d1ea7fe 100644 --- a/mpvcore/m_config.h +++ b/mpvcore/m_config.h @@ -36,7 +36,6 @@ struct m_obj_desc; // Config option struct m_config_option { - struct m_config_option *next; bool is_generated : 1; // Full name (ie option-subopt). char *name; @@ -51,6 +50,7 @@ struct m_config_option { typedef struct m_config { // Registered options. struct m_config_option *opts; // all options, even suboptions + int num_opts; // List of defined profiles. struct m_profile *profiles; |