Web lists-archives.com

[MPlayer-dev-eng] [PATCH] libmenu: constify infos




Hi,

This patch moves 1kb of data to rodata.

- Lauri
Index: libmenu/menu_chapsel.c
===================================================================
--- libmenu/menu_chapsel.c	(revision 37696)
+++ libmenu/menu_chapsel.c	(working copy)
@@ -54,7 +54,7 @@
   char* fmt_with_time;
 };
 
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
   MENU_LIST_PRIV_DFLT,
   "Select chapter",
   0,
Index: libmenu/menu_cmdlist.c
===================================================================
--- libmenu/menu_cmdlist.c	(revision 37696)
+++ libmenu/menu_cmdlist.c	(working copy)
@@ -55,7 +55,7 @@
 
 #define ST_OFF(m) M_ST_OFF(struct menu_priv_s, m)
 
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
   MENU_LIST_PRIV_DFLT,
 };
 
Index: libmenu/menu_console.c
===================================================================
--- libmenu/menu_console.c	(revision 37696)
+++ libmenu/menu_console.c	(working copy)
@@ -81,7 +81,7 @@
   int raw_child;
 };
 
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
   NULL,
   0,
   0,
Index: libmenu/menu_dvbin.c
===================================================================
--- libmenu/menu_dvbin.c	(revision 37696)
+++ libmenu/menu_dvbin.c	(working copy)
@@ -73,7 +73,7 @@
 };
 
 
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
   MENU_LIST_PRIV_DFLT,
   "Select a channel: ",
   "channels.conf",
Index: libmenu/menu_filesel.c
===================================================================
--- libmenu/menu_filesel.c	(revision 37696)
+++ libmenu/menu_filesel.c	(working copy)
@@ -71,7 +71,7 @@
   char* filter;
 };
 
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
   MENU_LIST_PRIV_DFLT,
   NULL,
 
Index: libmenu/menu_param.c
===================================================================
--- libmenu/menu_param.c	(revision 37696)
+++ libmenu/menu_param.c	(working copy)
@@ -62,7 +62,7 @@
   int hide_na;
 };
 
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
   MENU_LIST_PRIV_DFLT,
   NULL,
   0,
Index: libmenu/menu_pt.c
===================================================================
--- libmenu/menu_pt.c	(revision 37696)
+++ libmenu/menu_pt.c	(working copy)
@@ -53,7 +53,7 @@
   int auto_close;
 };
 
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
   MENU_LIST_PRIV_DFLT,
   "Jump to",
   0
Index: libmenu/menu_txt.c
===================================================================
--- libmenu/menu_txt.c	(revision 37696)
+++ libmenu/menu_txt.c	(working copy)
@@ -46,7 +46,7 @@
   char* file;
 };
 
-static struct menu_priv_s cfg_dflt = {
+static const struct menu_priv_s cfg_dflt = {
   NULL,
   0,
   0,
_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@xxxxxxxxxxxx
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng