[MPlayer-cvslog] r30999 - in trunk/libmenu: menu_chapsel.c menu_cmdlist.c menu_console.c menu_dvbin.c menu_filesel.c menu_param.c menu_pt.c menu_txt.c
diego
subversion at mplayerhq.hu
Sun Apr 4 18:11:20 CEST 2010
Author: diego
Date: Sun Apr 4 18:11:20 2010
New Revision: 30999
Log:
Mark cfg_fields m_option_t array as const.
Modified:
trunk/libmenu/menu_chapsel.c
trunk/libmenu/menu_cmdlist.c
trunk/libmenu/menu_console.c
trunk/libmenu/menu_dvbin.c
trunk/libmenu/menu_filesel.c
trunk/libmenu/menu_param.c
trunk/libmenu/menu_pt.c
trunk/libmenu/menu_txt.c
Modified: trunk/libmenu/menu_chapsel.c
==============================================================================
--- trunk/libmenu/menu_chapsel.c Sun Apr 4 18:08:15 2010 (r30998)
+++ trunk/libmenu/menu_chapsel.c Sun Apr 4 18:11:20 2010 (r30999)
@@ -61,7 +61,7 @@ static struct menu_priv_s cfg_dflt = {
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
MENU_LIST_PRIV_FIELDS,
{ "title", ST_OFF (title), CONF_TYPE_STRING, 0, 0, 0, NULL },
{ "auto-close", ST_OFF (auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
Modified: trunk/libmenu/menu_cmdlist.c
==============================================================================
--- trunk/libmenu/menu_cmdlist.c Sun Apr 4 18:08:15 2010 (r30998)
+++ trunk/libmenu/menu_cmdlist.c Sun Apr 4 18:11:20 2010 (r30999)
@@ -59,7 +59,7 @@ static struct menu_priv_s cfg_dflt = {
MENU_LIST_PRIV_DFLT,
};
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
MENU_LIST_PRIV_FIELDS,
{ "title",M_ST_OFF(struct menu_priv_s,p.title), CONF_TYPE_STRING, 0, 0, 0, NULL },
{ NULL, NULL, NULL, 0,0,0,NULL }
Modified: trunk/libmenu/menu_console.c
==============================================================================
--- trunk/libmenu/menu_console.c Sun Apr 4 18:08:15 2010 (r30998)
+++ trunk/libmenu/menu_console.c Sun Apr 4 18:11:20 2010 (r30999)
@@ -110,7 +110,7 @@ static struct menu_priv_s cfg_dflt = {
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
{ "prompt", ST_OFF(mp_prompt), CONF_TYPE_STRING, M_OPT_MIN, 1, 0, NULL },
{ "child-prompt", ST_OFF(child_prompt), CONF_TYPE_STRING, M_OPT_MIN, 1, 0, NULL },
{ "buffer-lines", ST_OFF(buf_lines), CONF_TYPE_INT, M_OPT_MIN, 5, 0, NULL },
Modified: trunk/libmenu/menu_dvbin.c
==============================================================================
--- trunk/libmenu/menu_dvbin.c Sun Apr 4 18:08:15 2010 (r30998)
+++ trunk/libmenu/menu_dvbin.c Sun Apr 4 18:11:20 2010 (r30999)
@@ -64,7 +64,7 @@ struct menu_priv_s {
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s, m)
#define mpriv (menu->priv)
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
MENU_LIST_PRIV_FIELDS,
{ "title", ST_OFF(title), CONF_TYPE_STRING, 0, 0, 0, NULL },
{ "auto-close", ST_OFF(auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
Modified: trunk/libmenu/menu_filesel.c
==============================================================================
--- trunk/libmenu/menu_filesel.c Sun Apr 4 18:08:15 2010 (r30998)
+++ trunk/libmenu/menu_filesel.c Sun Apr 4 18:11:20 2010 (r30999)
@@ -81,7 +81,7 @@ static struct menu_priv_s cfg_dflt = {
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
MENU_LIST_PRIV_FIELDS,
{ "path", ST_OFF(path), CONF_TYPE_STRING, 0, 0, 0, NULL },
{ "title", ST_OFF(title), CONF_TYPE_STRING, 0, 0, 0, NULL },
Modified: trunk/libmenu/menu_param.c
==============================================================================
--- trunk/libmenu/menu_param.c Sun Apr 4 18:08:15 2010 (r30998)
+++ trunk/libmenu/menu_param.c Sun Apr 4 18:11:20 2010 (r30999)
@@ -69,7 +69,7 @@ static struct menu_priv_s cfg_dflt = {
1
};
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
MENU_LIST_PRIV_FIELDS,
{ "title", M_ST_OFF(menu_list_priv_t,title), CONF_TYPE_STRING, 0, 0, 0, NULL },
{ "na", M_ST_OFF(struct menu_priv_s,na), CONF_TYPE_STRING, 0, 0, 0, NULL },
Modified: trunk/libmenu/menu_pt.c
==============================================================================
--- trunk/libmenu/menu_pt.c Sun Apr 4 18:08:15 2010 (r30998)
+++ trunk/libmenu/menu_pt.c Sun Apr 4 18:11:20 2010 (r30999)
@@ -60,7 +60,7 @@ static struct menu_priv_s cfg_dflt = {
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
MENU_LIST_PRIV_FIELDS,
{ "title", ST_OFF(title), CONF_TYPE_STRING, 0, 0, 0, NULL },
{ "auto-close", ST_OFF(auto_close), CONF_TYPE_FLAG, 0, 0, 1, NULL },
Modified: trunk/libmenu/menu_txt.c
==============================================================================
--- trunk/libmenu/menu_txt.c Sun Apr 4 18:08:15 2010 (r30998)
+++ trunk/libmenu/menu_txt.c Sun Apr 4 18:11:20 2010 (r30999)
@@ -56,7 +56,7 @@ static struct menu_priv_s cfg_dflt = {
#define ST_OFF(m) M_ST_OFF(struct menu_priv_s,m)
-static m_option_t cfg_fields[] = {
+static const m_option_t cfg_fields[] = {
{ "minbor", ST_OFF(minb), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
{ "hspace", ST_OFF(hspace), CONF_TYPE_INT, M_OPT_MIN, 0, 0, NULL },
{ "file", ST_OFF(file), CONF_TYPE_STRING, 0, 0, 0, NULL },
More information about the MPlayer-cvslog
mailing list