gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog configure.ac plugin/plugin.cpp ... [relea


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog configure.ac plugin/plugin.cpp ... [release_0_8_1]
Date: Sat, 18 Aug 2007 12:37:19 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Branch:         release_0_8_1
Changes by:     Sandro Santilli <strk>  07/08/18 12:37:18

Modified files:
        .              : ChangeLog configure.ac 
        plugin         : plugin.cpp 
        server/vm      : VM.cpp 

Log message:
        Patch #6154 by Benjamin Wolsey <address@hidden>
        
         * configure.ac: define flash player version macros
           for compatibility detectors.
         * plugin/plugin.cpp: build the flash player version
           using provided macros.
         * server/vm/VM.cpp: buil flash player version using
           provided macros.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&only_with_tag=release_0_8_1&r1=1.3971.2.32&r2=1.3971.2.33
http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&only_with_tag=release_0_8_1&r1=1.396.2.4&r2=1.396.2.5
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/plugin.cpp?cvsroot=gnash&only_with_tag=release_0_8_1&r1=1.81.2.1&r2=1.81.2.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/vm/VM.cpp?cvsroot=gnash&only_with_tag=release_0_8_1&r1=1.12.2.1&r2=1.12.2.2

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3971.2.32
retrieving revision 1.3971.2.33
diff -u -b -r1.3971.2.32 -r1.3971.2.33
--- ChangeLog   18 Aug 2007 11:57:57 -0000      1.3971.2.32
+++ ChangeLog   18 Aug 2007 12:37:17 -0000      1.3971.2.33
@@ -1,3 +1,12 @@
+2007-08-18 Benjamin Wolsey <address@hidden>
+
+       * configure.ac: define flash player version macros
+         for compatibility detectors.
+       * plugin/plugin.cpp: build the flash player version
+         using provided macros.
+       * server/vm/VM.cpp: buil flash player version using
+         provided macros.
+
 2007-08-18 Sandro Santilli <address@hidden>
 
        * server/as_object.h (ensureType): fix printing of *source* type

Index: configure.ac
===================================================================
RCS file: /sources/gnash/gnash/configure.ac,v
retrieving revision 1.396.2.4
retrieving revision 1.396.2.5
diff -u -b -r1.396.2.4 -r1.396.2.5
--- configure.ac        16 Aug 2007 23:25:54 -0000      1.396.2.4
+++ configure.ac        18 Aug 2007 12:37:18 -0000      1.396.2.5
@@ -15,7 +15,7 @@
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 dnl  
 
-dnl $Id: configure.ac,v 1.396.2.4 2007/08/16 23:25:54 strk Exp $
+dnl $Id: configure.ac,v 1.396.2.5 2007/08/18 12:37:18 strk Exp $
 
 AC_PREREQ(2.50)
 AC_INIT(gnash, 0.8.1)
@@ -26,6 +26,13 @@
 AC_CANONICAL_BUILD
 AC_CANONICAL_HOST
 
+dnl Set the default values for Flash Version. These are converted into
+dnl various strings to make JavaScript or ActionScript detectors
+dnl recognize Gnash as a Flash Player.
+AC_DEFINE([DEFAULT_FLASH_MAJOR_VERSION], ["8"], [Default Flash major version])
+AC_DEFINE([DEFAULT_FLASH_MINOR_VERSION], ["0"], [Default Flash minor version])
+AC_DEFINE([DEFAULT_FLASH_REV_NUMBER], ["99"], [Default Flash revision number])
+
 dnl Some things you can only do by looking at the platform name.
 case "${host}" in
   powerpc-apple-darwin*)

Index: plugin/plugin.cpp
===================================================================
RCS file: /sources/gnash/gnash/plugin/plugin.cpp,v
retrieving revision 1.81.2.1
retrieving revision 1.81.2.2
diff -u -b -r1.81.2.1 -r1.81.2.2
--- plugin/plugin.cpp   17 Aug 2007 14:02:39 -0000      1.81.2.1
+++ plugin/plugin.cpp   18 Aug 2007 12:37:18 -0000      1.81.2.2
@@ -15,7 +15,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-/* $Id: plugin.cpp,v 1.81.2.1 2007/08/17 14:02:39 strk Exp $ */
+/* $Id: plugin.cpp,v 1.81.2.2 2007/08/18 12:37:18 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -30,7 +30,9 @@
 //Some javascript plugin detectors use the description
 //to decide the flash version to display. They expect the
 //form (major version).(minor version) r(revision).
-#define FLASH_VERSION "8.0 r99."
+//e.g. "8.0 r99."
+#define FLASH_VERSION DEFAULT_FLASH_MAJOR_VERSION"."\
+       DEFAULT_FLASH_MINOR_VERSION" r"DEFAULT_FLASH_REV_NUMBER"."
 
 #define PLUGIN_DESCRIPTION \
   "Shockwave Flash "FLASH_VERSION" Gnash "VERSION", the GNU Flash Player. \
@@ -59,6 +61,7 @@
 #include <vector>
 #include <iostream>
 
+
 // Mozilla SDK headers
 #include "prinit.h"
 #include "prlock.h"

Index: server/vm/VM.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/vm/VM.cpp,v
retrieving revision 1.12.2.1
retrieving revision 1.12.2.2
diff -u -b -r1.12.2.1 -r1.12.2.2
--- server/vm/VM.cpp    17 Aug 2007 14:02:40 -0000      1.12.2.1
+++ server/vm/VM.cpp    18 Aug 2007 12:37:18 -0000      1.12.2.2
@@ -16,7 +16,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-/* $Id: VM.cpp,v 1.12.2.1 2007/08/17 14:02:40 strk Exp $ */
+/* $Id: VM.cpp,v 1.12.2.2 2007/08/18 12:37:18 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -110,9 +110,11 @@
        //    the last ,0 is necessary, even if it doesn't appear
        //    to mean anything.
        //    
-       // TODO: use config.h for the default, query RcInit file for an override
+       // TODO: query RcInit file for an override
        //
-#define FLASH_VERSION "GSH 8,0,99,0"
+#define FLASH_VERSION "GSH "DEFAULT_FLASH_MAJOR_VERSION","\
+        DEFAULT_FLASH_MINOR_VERSION","DEFAULT_FLASH_REV_NUMBER",0"
+
        static const std::string version(FLASH_VERSION);
        return version;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]