[MPlayer-cvslog] r25271 - in trunk/gui: app.c app.h

reimar subversion at mplayerhq.hu
Sun Dec 2 22:41:52 CET 2007


Author: reimar
Date: Sun Dec  2 22:41:51 2007
New Revision: 25271

Log:
evNames / evBoxs should be "static const"


Modified:
   trunk/gui/app.c
   trunk/gui/app.h

Modified: trunk/gui/app.c
==============================================================================
--- trunk/gui/app.c	(original)
+++ trunk/gui/app.c	Sun Dec  2 22:41:51 2007
@@ -14,7 +14,7 @@
 #include "mplayer/gmplayer.h"
 #include "interface.h"
 
-evName evNames[] =
+static const evName evNames[] =
  {
   { evNone,              "evNone"              },
   { evPlay,              "evPlay"              },
@@ -66,7 +66,7 @@ evName evNames[] =
   { evSetAspect,	 "evSetAspect"	       }
  };
 
-int evBoxs = sizeof( evNames ) / sizeof( evName );
+static const int evBoxs = sizeof( evNames ) / sizeof( evName );
 
 // ---
 

Modified: trunk/gui/app.h
==============================================================================
--- trunk/gui/app.h	(original)
+++ trunk/gui/app.h	Sun Dec  2 22:41:51 2007
@@ -97,9 +97,6 @@ typedef struct
  const char * name;
 } evName;
 
-extern int evBoxs;
-extern evName evNames[];
-
 #define itNULL      0
 #define itButton    101 // button
 #define itHPotmeter 102 // horizontal potmeter



More information about the MPlayer-cvslog mailing list