[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/asobj/gen-asclass.pl ser...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/asobj/gen-asclass.pl ser... |
Date: |
Mon, 05 May 2008 18:53:32 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/05/05 18:53:32
Modified files:
. : ChangeLog
server/asobj : gen-asclass.pl
server/asobj/flash/display: BitmapData_as.cpp
server/asobj/flash/external: ExternalInterface_as.cpp
server/asobj/flash/filters: DisplacementMapFilter_as.cpp
server/asobj/flash/geom: ColorTransform_as.cpp Matrix_as.cpp
Point_as.cpp Rectangle_as.cpp
Transform_as.cpp
server/asobj/flash/net: FileReferenceList_as.cpp
FileReference_as.cpp
server/asobj/flash/text: TextRenderer_as.cpp
Log message:
* server/asobj/gen-asclass.pl: getClassInterface MUST return a static
or 'instanceof' will never work correctly!
* server/asobj/flash: regenerated classes...
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6510&r2=1.6511
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/gen-asclass.pl?cvsroot=gnash&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/display/BitmapData_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/external/ExternalInterface_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/filters/DisplacementMapFilter_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/ColorTransform_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Matrix_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Point_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Rectangle_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Transform_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/net/FileReferenceList_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/net/FileReference_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/text/TextRenderer_as.cpp?cvsroot=gnash&r1=1.4&r2=1.5
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6510
retrieving revision 1.6511
diff -u -b -r1.6510 -r1.6511
--- ChangeLog 5 May 2008 18:50:08 -0000 1.6510
+++ ChangeLog 5 May 2008 18:53:30 -0000 1.6511
@@ -1,3 +1,9 @@
+2008-05-05 Sandro Santilli <address@hidden>
+
+ * server/asobj/gen-asclass.pl: getClassInterface MUST return a static
+ or 'instanceof' will never work correctly!
+ * server/asobj/flash: regenerated classes...
+
2008-05-05 Udo Giacomozzi <address@hidden>
* generic_character.cpp, sprite_instance.cpp, character.h, dlist.h,
Index: server/asobj/gen-asclass.pl
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/gen-asclass.pl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- server/asobj/gen-asclass.pl 5 May 2008 16:58:51 -0000 1.10
+++ server/asobj/gen-asclass.pl 5 May 2008 18:53:31 -0000 1.11
@@ -244,6 +244,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -267,11 +268,19 @@
static as_object*
get$args{class}Interface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attach$args{class}Interface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/display/BitmapData_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/display/BitmapData_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/display/BitmapData_as.cpp 5 May 2008 16:58:51
-0000 1.4
+++ server/asobj/flash/display/BitmapData_as.cpp 5 May 2008 18:53:31
-0000 1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -108,11 +109,19 @@
static as_object*
getBitmapDataInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachBitmapDataInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/external/ExternalInterface_as.cpp
===================================================================
RCS file:
/sources/gnash/gnash/server/asobj/flash/external/ExternalInterface_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/external/ExternalInterface_as.cpp 5 May 2008
16:58:51 -0000 1.4
+++ server/asobj/flash/external/ExternalInterface_as.cpp 5 May 2008
18:53:31 -0000 1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -56,11 +57,19 @@
static as_object*
getExternalInterfaceInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachExternalInterfaceInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/filters/DisplacementMapFilter_as.cpp
===================================================================
RCS file:
/sources/gnash/gnash/server/asobj/flash/filters/DisplacementMapFilter_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/filters/DisplacementMapFilter_as.cpp 5 May 2008
16:58:51 -0000 1.4
+++ server/asobj/flash/filters/DisplacementMapFilter_as.cpp 5 May 2008
18:53:31 -0000 1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -72,11 +73,19 @@
static as_object*
getDisplacementMapFilterInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachDisplacementMapFilterInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/geom/ColorTransform_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/ColorTransform_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/geom/ColorTransform_as.cpp 5 May 2008 16:58:52
-0000 1.4
+++ server/asobj/flash/geom/ColorTransform_as.cpp 5 May 2008 18:53:31
-0000 1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -74,11 +75,19 @@
static as_object*
getColorTransformInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachColorTransformInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/geom/Matrix_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Matrix_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/geom/Matrix_as.cpp 5 May 2008 16:58:52 -0000
1.4
+++ server/asobj/flash/geom/Matrix_as.cpp 5 May 2008 18:53:32 -0000
1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -88,11 +89,19 @@
static as_object*
getMatrixInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachMatrixInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/geom/Point_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Point_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/geom/Point_as.cpp 5 May 2008 16:58:52 -0000
1.4
+++ server/asobj/flash/geom/Point_as.cpp 5 May 2008 18:53:32 -0000
1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -78,11 +79,19 @@
static as_object*
getPointInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachPointInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/geom/Rectangle_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Rectangle_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/geom/Rectangle_as.cpp 5 May 2008 16:58:52 -0000
1.4
+++ server/asobj/flash/geom/Rectangle_as.cpp 5 May 2008 18:53:32 -0000
1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -104,11 +105,19 @@
static as_object*
getRectangleInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachRectangleInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/geom/Transform_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Transform_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/geom/Transform_as.cpp 5 May 2008 16:58:52 -0000
1.4
+++ server/asobj/flash/geom/Transform_as.cpp 5 May 2008 18:53:32 -0000
1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -62,11 +63,19 @@
static as_object*
getTransformInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachTransformInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/net/FileReferenceList_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/net/FileReferenceList_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/net/FileReferenceList_as.cpp 5 May 2008 16:58:52
-0000 1.4
+++ server/asobj/flash/net/FileReferenceList_as.cpp 5 May 2008 18:53:32
-0000 1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -60,11 +61,19 @@
static as_object*
getFileReferenceListInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachFileReferenceListInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/net/FileReference_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/net/FileReference_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/net/FileReference_as.cpp 5 May 2008 16:58:52 -0000
1.4
+++ server/asobj/flash/net/FileReference_as.cpp 5 May 2008 18:53:32 -0000
1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -76,11 +77,19 @@
static as_object*
getFileReferenceInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachFileReferenceInterface(*o);
+
+ }
+
return o.get();
}
Index: server/asobj/flash/text/TextRenderer_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/text/TextRenderer_as.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- server/asobj/flash/text/TextRenderer_as.cpp 5 May 2008 16:58:53 -0000
1.4
+++ server/asobj/flash/text/TextRenderer_as.cpp 5 May 2008 18:53:32 -0000
1.5
@@ -29,6 +29,7 @@
#include "builtin_function.h" // need builtin_function
#include "GnashException.h" // for ActionException
#include "Object.h" // for AS inheritance
+#include "VM.h" // for addStatics
#include <sstream>
@@ -56,11 +57,19 @@
static as_object*
getTextRendererInterface()
{
- boost::intrusive_ptr<as_object> o;
+ static boost::intrusive_ptr<as_object> o;
+
+ if ( ! o )
+ {
// TODO: check if this class should inherit from Object
// or from a different class
o = new as_object(getObjectInterface());
+ VM::get().addStatic(o.get());
+
attachTextRendererInterface(*o);
+
+ }
+
return o.get();
}