changeset 18032:de6740c3ab2a

10l: huge amount of constant crap in data segment
author rfelker
date Mon, 03 Apr 2006 06:38:55 +0000
parents 6cf40de0bd39
children 3aff7d2edf43
files libmpdemux/frequencies.c libmpdemux/frequencies.h libmpdemux/tv.h
diffstat 3 files changed, 23 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/frequencies.c	Mon Apr 03 06:27:15 2006 +0000
+++ b/libmpdemux/frequencies.c	Mon Apr 03 06:38:55 2006 +0000
@@ -6,7 +6,7 @@
 /* --------------------------------------------------------------------- */
 
 /* US broadcast */
-static struct CHANLIST ntsc_bcast[] = {
+static const struct CHANLIST ntsc_bcast[] = {
     { "2",	 55250 },
     { "3",	 61250 },
     { "4",	 67250 },
@@ -93,7 +93,7 @@
 };
 
 /* US cable */
-static struct CHANLIST ntsc_cable[] = {
+static const struct CHANLIST ntsc_cable[] = {
     { "1",	 73250 },
     { "2",	 55250 },
     { "3",	 61250 },
@@ -234,7 +234,7 @@
 };
 
 /* US HRC */
-static struct CHANLIST ntsc_hrc[] = {
+static const struct CHANLIST ntsc_hrc[] = {
     { "1",	  72000 },
     { "2",	  54000 }, 
     { "3",	  60000 }, 
@@ -377,7 +377,7 @@
 /* --------------------------------------------------------------------- */
 
 /* JP broadcast */
-static struct CHANLIST ntsc_bcast_jp[] = {
+static const struct CHANLIST ntsc_bcast_jp[] = {
     { "1",   91250 },
     { "2",   97250 },
     { "3",  103250 },
@@ -445,7 +445,7 @@
 };
 
 /* JP cable */
-static struct CHANLIST ntsc_cable_jp[] = {
+static const struct CHANLIST ntsc_cable_jp[] = {
     { "13",	109250 },
     { "14",	115250 },
     { "15",	121250 },
@@ -503,7 +503,7 @@
 /* --------------------------------------------------------------------- */
 
 /* australia */
-static struct CHANLIST pal_australia[] = {
+static const struct CHANLIST pal_australia[] = {
     { "0",	 46250 },
     { "1",	 57250 },
     { "2",	 64250 },
@@ -717,14 +717,14 @@
     { "68",  847250 },	\
     { "69",  855250 }
 
-static struct CHANLIST europe_west[] = {
+static const struct CHANLIST europe_west[] = {
     FREQ_CCIR_I_III,
     FREQ_CCIR_SL_SH,
     FREQ_CCIR_H,
     FREQ_UHF
 };
 
-static struct CHANLIST europe_east[] = {
+static const struct CHANLIST europe_east[] = {
     FREQ_OIRT_I_III,
     FREQ_OIRT_SL_SH,
     FREQ_CCIR_I_III,
@@ -733,7 +733,7 @@
     FREQ_UHF
 };
 
-static struct CHANLIST pal_italy[] = {
+static const struct CHANLIST pal_italy[] = {
     { "A",	 53750 },
     { "B",	 62250 },
     { "C",	 82250 },
@@ -747,7 +747,7 @@
     FREQ_UHF
 };
 
-static struct CHANLIST pal_ireland[] = {
+static const struct CHANLIST pal_ireland[] = {
     { "0",    45750 },
     { "1",    53750 },
     { "2",    61750 },
@@ -760,7 +760,7 @@
     FREQ_UHF,
 };
 
-static struct CHANLIST secam_france[] = {
+static const struct CHANLIST secam_france[] = {
     { "K01",    47750 },
     { "K02",    55750 },
     { "K03",    60500 },
@@ -811,7 +811,7 @@
 
 /* --------------------------------------------------------------------- */
 
-static struct CHANLIST pal_newzealand[] = {
+static const struct CHANLIST pal_newzealand[] = {
     { "1", 	  45250 }, 
     { "2",	  55250 }, 
     { "3",	  62250 },
@@ -829,7 +829,7 @@
 /* --------------------------------------------------------------------- */
 
 /* China broadcast */
-static struct CHANLIST pal_bcast_cn[] = {
+static const struct CHANLIST pal_bcast_cn[] = {
     { "1",	49750 },
     { "2",	57750 },
     { "3",	65750 },
@@ -929,7 +929,7 @@
 /* --------------------------------------------------------------------- */
 /* South Africa Broadcast */
 
-static struct CHANLIST pal_bcast_za[] ={
+static const struct CHANLIST pal_bcast_za[] ={
     { "1", 175250 },
     { "2", 183250 },
     { "3", 191250 },
@@ -943,7 +943,7 @@
 
 /* --------------------------------------------------------------------- */
 
-static struct CHANLIST argentina[] = {
+static const struct CHANLIST argentina[] = {
     { "001",   56250 },
     { "002",   62250 },
     { "003",   68250 },
@@ -1041,7 +1041,7 @@
 
 /* --------------------------------------------------------------------- */
 
-static struct CHANLIST russia[] = {
+static const struct CHANLIST russia[] = {
     {"1",     49750 },
     {"2",     59250 },
     {"3",     77250 },
@@ -1144,7 +1144,7 @@
 };
 /* --------------------------------------------------------------------- */
 
-struct CHANLISTS chanlists[] = {
+const struct CHANLISTS chanlists[] = {
     { "us-bcast",         ntsc_bcast,        CHAN_COUNT(ntsc_bcast)        },
     { "us-cable",         ntsc_cable,        CHAN_COUNT(ntsc_cable)        },
     { "us-cable-hrc",     ntsc_hrc,          CHAN_COUNT(ntsc_hrc)          },
--- a/libmpdemux/frequencies.h	Mon Apr 03 06:27:15 2006 +0000
+++ b/libmpdemux/frequencies.h	Mon Apr 03 06:38:55 2006 +0000
@@ -89,21 +89,21 @@
 /* --------------------------------------------------------------------- */
 
 struct CHANLIST {
-    char *name;
+    char  name[8];
     int   freq;
 };
 
 struct CHANLISTS {
-    char             *name;
-    struct CHANLIST  *list;
-    int               count;
+    char                   *name;
+    const struct CHANLIST  *list;
+    int                    count;
 };
 
 #define CHAN_COUNT(x) (sizeof(x)/sizeof(struct CHANLIST))
 
 /* --------------------------------------------------------------------- */
 
-extern struct CHANLISTS   chanlists[];
+extern const struct CHANLISTS   chanlists[];
 //extern struct STRTAB chanlist_names[];
 
 extern int                chantab;
--- a/libmpdemux/tv.h	Mon Apr 03 06:27:15 2006 +0000
+++ b/libmpdemux/tv.h	Mon Apr 03 06:38:55 2006 +0000
@@ -82,7 +82,7 @@
     /* specific */
     int			norm;
     int			chanlist;
-    struct CHANLIST	*chanlist_s;
+    const struct CHANLIST *chanlist_s;
     int			channel;
 } tvi_handle_t;