gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog doc/C/NOTES server/asobj/gen-as...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog doc/C/NOTES server/asobj/gen-as...
Date: Mon, 05 May 2008 16:58:53 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/05/05 16:58:53

Modified files:
        .              : ChangeLog 
        doc/C          : NOTES 
        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: add support for static methods and
          properties.
        * doc/C/NOTES: add note about static props and methods in the new
          classes in flash package.
        * server/asobj/flash/: regenerated classes.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6506&r2=1.6507
http://cvs.savannah.gnu.org/viewcvs/gnash/doc/C/NOTES?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/gen-asclass.pl?cvsroot=gnash&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/display/BitmapData_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/external/ExternalInterface_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/filters/DisplacementMapFilter_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/ColorTransform_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Matrix_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Point_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Rectangle_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/geom/Transform_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/net/FileReferenceList_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/net/FileReference_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/flash/text/TextRenderer_as.cpp?cvsroot=gnash&r1=1.3&r2=1.4

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6506
retrieving revision 1.6507
diff -u -b -r1.6506 -r1.6507
--- ChangeLog   5 May 2008 15:35:02 -0000       1.6506
+++ ChangeLog   5 May 2008 16:58:49 -0000       1.6507
@@ -1,5 +1,13 @@
 2008-05-05 Sandro Santilli <address@hidden>
 
+       * server/asobj/gen-asclass.pl: add support for static methods and
+         properties.
+       * doc/C/NOTES: add note about static props and methods in the new
+         classes in flash package.
+       * server/asobj/flash/: regenerated classes.
+
+2008-05-05 Sandro Santilli <address@hidden>
+
        * server/asobj/Global.cpp: call flash_package_init for SWF8 up.
        * server/asobj/gen-asclass.pl: don't attach interface to class,
          don't use statics for GcResources.

Index: doc/C/NOTES
===================================================================
RCS file: /sources/gnash/gnash/doc/C/NOTES,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- doc/C/NOTES 5 May 2008 08:45:05 -0000       1.4
+++ doc/C/NOTES 5 May 2008 16:58:51 -0000       1.5
@@ -732,12 +732,12 @@
 Point.y
 Point.add()
 Point.clone()
-Point.distance()
+Point.distance() static
 Point.equals()
-Point.interpolate()
+Point.interpolate() static
 Point.normalize()
 Point.offset()
-Point.polar()
+Point.polar() static
 Point.subtract()
 Point.toString()
 
@@ -815,14 +815,14 @@
 
 # flash.external.ExternalInterface
 ExternalInterface class
-ExternalInterface.available
-ExternalInterface.addCallback()
-ExternalInterface.call()
+ExternalInterface.available static 
+ExternalInterface.addCallback() static
+ExternalInterface.call() static
 
 # flash.text.TextRenderer
 TextRenderer class
-TextRenderer.maxLevel
-TextRenderer.setAdvancedAntialiasingTable()
+TextRenderer.maxLevel static
+TextRenderer.setAdvancedAntialiasingTable() static
 
 # flash.net.FileReference
 FileReference class
@@ -866,7 +866,7 @@
 BitmapData.getPixel()
 BitmapData.getPixel32()
 BitmapData.hitTest()
-BitmapData.loadBitmap()
+BitmapData.loadBitmap() static
 BitmapData.merge()
 BitmapData.noise()
 BitmapData.paletteMap()

Index: server/asobj/gen-asclass.pl
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/gen-asclass.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- server/asobj/gen-asclass.pl 5 May 2008 15:35:03 -0000       1.9
+++ server/asobj/gen-asclass.pl 5 May 2008 16:58:51 -0000       1.10
@@ -135,6 +135,38 @@
 
     }
 
+    ## Loop through the list of static methods.  Generate code, stored in
+    ## $declarations, $registrations, and $implementations.  $declarations
+    ## contains the declaration code for all methods, etc.  These will
+    ## be printed later, in the section delimited with EOF.  You may
+    ## change the output of these three looped sections.
+    my ($static_declarations, $static_registrations, $static_implementations);
+    foreach my $m (@{$args{static_methods}}) {
+
+        ## Where you see 'qq|' and '|', read '"' and '"'.  Using the quote
+        ## operator eliminates the need to escape literal quotes.  Thus,
+        ##   qq|This is an "example".\n|  ==  "This is an \"example\".\n"
+        ## A '.' concatenates a string.
+
+        $static_declarations .=
+          qq|\nstatic as_value $args{lc}_| .$m. qq|(const fn_call& fn);|;
+
+        $static_registrations .=
+          qq|\n    o.init_member("$m", new builtin_function($args{lc}_$m));|;
+
+        $static_implementations .=
+          qq|\nstatic as_value\n$args{lc}_| .$m.
+          qq|(const fn_call& fn)
+{
+       boost::intrusive_ptr<$args{lc}_as> ptr = 
ensureType<$args{lc}_as>(fn.this_ptr);
+       UNUSED(ptr);
+       LOG_ONCE( log_unimpl (__FUNCTION__) );
+       return as_value();
+}
+|;
+
+    }
+
     ## Loop through the list of properties.  Generate code, stored in
     ## $declarations, $registrations, and $implementations.  $declarations
     ## contains the declaration code for all methods, etc.  These will
@@ -166,6 +198,37 @@
 
     }
 
+    ## Loop through the list of static properties.  Generate code, stored in
+    ## $declarations, $registrations, and $implementations.  $declarations
+    ## contains the declaration code for all methods, etc.  These will
+    ## be printed later, in the section delimited with EOF.  You may
+    ## change the output of these three looped sections.
+    foreach my $p (@{$args{static_properties}}) {
+
+        ## Where you see 'qq|' and '|', read '"' and '"'.  Using the quote
+        ## operator eliminates the need to escape literal quotes.  Thus,
+        ##   qq|This is an "example".\n|  ==  "This is an \"example\".\n"
+        ## A '.' concatenates a string.
+
+        $static_declarations .=
+          qq|\nstatic as_value $args{lc}_| .$p. "_getset". qq|(const fn_call& 
fn);|;
+
+        $static_registrations .=
+                 qq|\n    o.init_property("$p", $args{lc}_${p}_getset, 
$args{lc}_${p}_getset);|;
+
+        $static_implementations .=
+          qq|\nstatic as_value\n$args{lc}_| .$p. "_getset" .
+          qq|(const fn_call& fn)
+{
+       boost::intrusive_ptr<$args{lc}_as> ptr = 
ensureType<$args{lc}_as>(fn.this_ptr);
+       UNUSED(ptr);
+       LOG_ONCE( log_unimpl (__FUNCTION__) );
+       return as_value();
+}
+|;
+
+    }
+
     ## The text between the EOFs will be printed in the C++ source file.
     print $fh <<EOF;
 
@@ -186,6 +249,8 @@
 
 namespace gnash {
 $declarations
+$static_declarations
+
 as_value $args{lc}_ctor(const fn_call& fn);
 
 static void
@@ -196,7 +261,7 @@
 static void
 attach$args{class}StaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   $static_registrations
 }
 
 static as_object*
@@ -228,6 +293,8 @@
 };
 
 $implementations
+$static_implementations
+
 as_value
 $args{lc}_ctor(const fn_call& fn)
 {
@@ -327,7 +394,23 @@
     my %args = @_;
     my @want;
     foreach my $row (@{$args{notes}}) {
-        push @want, $1 if ($row =~ /^$args{class}\.(\w+)$/);
+       if ($row =~ /^$args{class}\.(\w+)$/) {
+               push @want, $1;
+               notify(" Property $1");
+       }
+    }
+    return address@hidden;
+}
+
+## Take static property names out of notefile data.
+sub get_static_properties {
+    my %args = @_;
+    my @want;
+    foreach my $row (@{$args{notes}}) {
+       if ($row =~ /^$args{class}\.(\w+) static$/) {
+               push @want, $1;
+               notify(" Static property $1");
+       }
     }
     return address@hidden;
 }
@@ -339,7 +422,25 @@
 
     ## Note that case should not be converted, as SWF7 is case-sensitive
     foreach my $row (@{$args{notes}}) {
-        push @want, $1 if ($row =~ /^$args{class}\.(\w+)\(\)$/);
+       if ($row =~ /^$args{class}\.(\w+)\(\)$/) {
+               push @want, $1;
+               notify(" Method $1");
+       }
+    }
+    return address@hidden;
+}
+
+## Take all static method names out of notefile data.
+sub get_static_methods {
+    my %args = @_;
+    my @want;
+
+    ## Note that case should not be converted, as SWF7 is case-sensitive
+    foreach my $row (@{$args{notes}}) {
+       if ($row =~ /^$args{class}\.(\w+)\(\) static$/) {
+               push @want, $1;
+               notify(" Static Method $1");
+       }
     }
     return address@hidden;
 }
@@ -360,8 +461,11 @@
     close $fh;
 
     my $methods = get_methods(%args, notes => address@hidden);
+    my $static_methods = get_static_methods(%args, notes => address@hidden);
     my $props   = get_properties(%args, notes => address@hidden);
-    return { methods => $methods, properties => $props };
+    my $static_props   = get_static_properties(%args, notes => address@hidden);
+    return { methods => $methods, properties => $props,
+       static_methods => $static_methods, static_properties => $static_props };
 }
 
 ########################### Documentation ############################

Index: server/asobj/flash/display/BitmapData_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/display/BitmapData_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/display/BitmapData_as.cpp        5 May 2008 15:35:04 
-0000       1.3
+++ server/asobj/flash/display/BitmapData_as.cpp        5 May 2008 16:58:51 
-0000       1.4
@@ -48,7 +48,6 @@
 static as_value BitmapData_getPixel(const fn_call& fn);
 static as_value BitmapData_getPixel32(const fn_call& fn);
 static as_value BitmapData_hitTest(const fn_call& fn);
-static as_value BitmapData_loadBitmap(const fn_call& fn);
 static as_value BitmapData_merge(const fn_call& fn);
 static as_value BitmapData_noise(const fn_call& fn);
 static as_value BitmapData_paletteMap(const fn_call& fn);
@@ -62,6 +61,9 @@
 static as_value BitmapData_rectangle_getset(const fn_call& fn);
 static as_value BitmapData_transparent_getset(const fn_call& fn);
 static as_value BitmapData_width_getset(const fn_call& fn);
+
+static as_value BitmapData_loadBitmap(const fn_call& fn);
+
 as_value BitmapData_ctor(const fn_call& fn);
 
 static void
@@ -81,7 +83,6 @@
     o.init_member("getPixel", new builtin_function(BitmapData_getPixel));
     o.init_member("getPixel32", new builtin_function(BitmapData_getPixel32));
     o.init_member("hitTest", new builtin_function(BitmapData_hitTest));
-    o.init_member("loadBitmap", new builtin_function(BitmapData_loadBitmap));
     o.init_member("merge", new builtin_function(BitmapData_merge));
     o.init_member("noise", new builtin_function(BitmapData_noise));
     o.init_member("paletteMap", new builtin_function(BitmapData_paletteMap));
@@ -100,7 +101,8 @@
 static void
 attachBitmapDataStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
+    o.init_member("loadBitmap", new builtin_function(BitmapData_loadBitmap));
 }
 
 static as_object*
@@ -259,15 +261,6 @@
 }
 
 static as_value
-BitmapData_loadBitmap(const fn_call& fn)
-{
-       boost::intrusive_ptr<BitmapData_as> ptr = 
ensureType<BitmapData_as>(fn.this_ptr);
-       UNUSED(ptr);
-       LOG_ONCE( log_unimpl (__FUNCTION__) );
-       return as_value();
-}
-
-static as_value
 BitmapData_merge(const fn_call& fn)
 {
        boost::intrusive_ptr<BitmapData_as> ptr = 
ensureType<BitmapData_as>(fn.this_ptr);
@@ -384,6 +377,17 @@
        return as_value();
 }
 
+
+static as_value
+BitmapData_loadBitmap(const fn_call& fn)
+{
+       boost::intrusive_ptr<BitmapData_as> ptr = 
ensureType<BitmapData_as>(fn.this_ptr);
+       UNUSED(ptr);
+       LOG_ONCE( log_unimpl (__FUNCTION__) );
+       return as_value();
+}
+
+
 as_value
 BitmapData_ctor(const fn_call& fn)
 {

Index: server/asobj/flash/external/ExternalInterface_as.cpp
===================================================================
RCS file: 
/sources/gnash/gnash/server/asobj/flash/external/ExternalInterface_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/external/ExternalInterface_as.cpp        5 May 2008 
15:35:04 -0000       1.3
+++ server/asobj/flash/external/ExternalInterface_as.cpp        5 May 2008 
16:58:51 -0000       1.4
@@ -34,23 +34,23 @@
 
 namespace gnash {
 
+
 static as_value ExternalInterface_addCallback(const fn_call& fn);
 static as_value ExternalInterface_call(const fn_call& fn);
-static as_value ExternalInterface_available_getset(const fn_call& fn);
+
 as_value ExternalInterface_ctor(const fn_call& fn);
 
 static void
 attachExternalInterfaceInterface(as_object& o)
 {
-    o.init_member("addCallback", new 
builtin_function(ExternalInterface_addCallback));
-    o.init_member("call", new builtin_function(ExternalInterface_call));
-    o.init_property("available", ExternalInterface_available_getset, 
ExternalInterface_available_getset);
 }
 
 static void
 attachExternalInterfaceStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
+    o.init_member("addCallback", new 
builtin_function(ExternalInterface_addCallback));
+    o.init_member("call", new builtin_function(ExternalInterface_call));
 }
 
 static as_object*
@@ -82,6 +82,7 @@
 };
 
 
+
 static as_value
 ExternalInterface_addCallback(const fn_call& fn)
 {
@@ -100,14 +101,6 @@
        return as_value();
 }
 
-static as_value
-ExternalInterface_available_getset(const fn_call& fn)
-{
-       boost::intrusive_ptr<ExternalInterface_as> ptr = 
ensureType<ExternalInterface_as>(fn.this_ptr);
-       UNUSED(ptr);
-       LOG_ONCE( log_unimpl (__FUNCTION__) );
-       return as_value();
-}
 
 as_value
 ExternalInterface_ctor(const fn_call& fn)

Index: server/asobj/flash/filters/DisplacementMapFilter_as.cpp
===================================================================
RCS file: 
/sources/gnash/gnash/server/asobj/flash/filters/DisplacementMapFilter_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/filters/DisplacementMapFilter_as.cpp     5 May 2008 
15:35:04 -0000       1.3
+++ server/asobj/flash/filters/DisplacementMapFilter_as.cpp     5 May 2008 
16:58:51 -0000       1.4
@@ -44,6 +44,8 @@
 static as_value DisplacementMapFilter_mode_getset(const fn_call& fn);
 static as_value DisplacementMapFilter_scaleX_getset(const fn_call& fn);
 static as_value DisplacementMapFilter_scaleY_getset(const fn_call& fn);
+
+
 as_value DisplacementMapFilter_ctor(const fn_call& fn);
 
 static void
@@ -64,7 +66,7 @@
 static void
 attachDisplacementMapFilterStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
 }
 
 static as_object*
@@ -186,6 +188,8 @@
        return as_value();
 }
 
+
+
 as_value
 DisplacementMapFilter_ctor(const fn_call& fn)
 {

Index: server/asobj/flash/geom/ColorTransform_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/ColorTransform_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/geom/ColorTransform_as.cpp       5 May 2008 15:35:04 
-0000       1.3
+++ server/asobj/flash/geom/ColorTransform_as.cpp       5 May 2008 16:58:52 
-0000       1.4
@@ -45,6 +45,8 @@
 static as_value ColorTransform_redMultiplier_getset(const fn_call& fn);
 static as_value ColorTransform_redOffset_getset(const fn_call& fn);
 static as_value ColorTransform_rgb_getset(const fn_call& fn);
+
+
 as_value ColorTransform_ctor(const fn_call& fn);
 
 static void
@@ -66,7 +68,7 @@
 static void
 attachColorTransformStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
 }
 
 static as_object*
@@ -197,6 +199,8 @@
        return as_value();
 }
 
+
+
 as_value
 ColorTransform_ctor(const fn_call& fn)
 {

Index: server/asobj/flash/geom/Matrix_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Matrix_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/geom/Matrix_as.cpp       5 May 2008 15:35:04 -0000       
1.3
+++ server/asobj/flash/geom/Matrix_as.cpp       5 May 2008 16:58:52 -0000       
1.4
@@ -52,6 +52,8 @@
 static as_value Matrix_d_getset(const fn_call& fn);
 static as_value Matrix_tx_getset(const fn_call& fn);
 static as_value Matrix_ty_getset(const fn_call& fn);
+
+
 as_value Matrix_ctor(const fn_call& fn);
 
 static void
@@ -80,7 +82,7 @@
 static void
 attachMatrixStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
 }
 
 static as_object*
@@ -274,6 +276,8 @@
        return as_value();
 }
 
+
+
 as_value
 Matrix_ctor(const fn_call& fn)
 {

Index: server/asobj/flash/geom/Point_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Point_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/geom/Point_as.cpp        5 May 2008 15:35:04 -0000       
1.3
+++ server/asobj/flash/geom/Point_as.cpp        5 May 2008 16:58:52 -0000       
1.4
@@ -36,17 +36,19 @@
 
 static as_value Point_add(const fn_call& fn);
 static as_value Point_clone(const fn_call& fn);
-static as_value Point_distance(const fn_call& fn);
 static as_value Point_equals(const fn_call& fn);
-static as_value Point_interpolate(const fn_call& fn);
 static as_value Point_normalize(const fn_call& fn);
 static as_value Point_offset(const fn_call& fn);
-static as_value Point_polar(const fn_call& fn);
 static as_value Point_subtract(const fn_call& fn);
 static as_value Point_toString(const fn_call& fn);
 static as_value Point_length_getset(const fn_call& fn);
 static as_value Point_x_getset(const fn_call& fn);
 static as_value Point_y_getset(const fn_call& fn);
+
+static as_value Point_distance(const fn_call& fn);
+static as_value Point_interpolate(const fn_call& fn);
+static as_value Point_polar(const fn_call& fn);
+
 as_value Point_ctor(const fn_call& fn);
 
 static void
@@ -54,12 +56,9 @@
 {
     o.init_member("add", new builtin_function(Point_add));
     o.init_member("clone", new builtin_function(Point_clone));
-    o.init_member("distance", new builtin_function(Point_distance));
     o.init_member("equals", new builtin_function(Point_equals));
-    o.init_member("interpolate", new builtin_function(Point_interpolate));
     o.init_member("normalize", new builtin_function(Point_normalize));
     o.init_member("offset", new builtin_function(Point_offset));
-    o.init_member("polar", new builtin_function(Point_polar));
     o.init_member("subtract", new builtin_function(Point_subtract));
     o.init_member("toString", new builtin_function(Point_toString));
     o.init_property("length", Point_length_getset, Point_length_getset);
@@ -70,7 +69,10 @@
 static void
 attachPointStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
+    o.init_member("distance", new builtin_function(Point_distance));
+    o.init_member("interpolate", new builtin_function(Point_interpolate));
+    o.init_member("polar", new builtin_function(Point_polar));
 }
 
 static as_object*
@@ -121,7 +123,7 @@
 }
 
 static as_value
-Point_distance(const fn_call& fn)
+Point_equals(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -130,7 +132,7 @@
 }
 
 static as_value
-Point_equals(const fn_call& fn)
+Point_normalize(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -139,7 +141,7 @@
 }
 
 static as_value
-Point_interpolate(const fn_call& fn)
+Point_offset(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -148,7 +150,7 @@
 }
 
 static as_value
-Point_normalize(const fn_call& fn)
+Point_subtract(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -157,7 +159,7 @@
 }
 
 static as_value
-Point_offset(const fn_call& fn)
+Point_toString(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -166,7 +168,7 @@
 }
 
 static as_value
-Point_polar(const fn_call& fn)
+Point_length_getset(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -175,7 +177,7 @@
 }
 
 static as_value
-Point_subtract(const fn_call& fn)
+Point_x_getset(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -184,7 +186,7 @@
 }
 
 static as_value
-Point_toString(const fn_call& fn)
+Point_y_getset(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -192,8 +194,9 @@
        return as_value();
 }
 
+
 static as_value
-Point_length_getset(const fn_call& fn)
+Point_distance(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -202,7 +205,7 @@
 }
 
 static as_value
-Point_x_getset(const fn_call& fn)
+Point_interpolate(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -211,7 +214,7 @@
 }
 
 static as_value
-Point_y_getset(const fn_call& fn)
+Point_polar(const fn_call& fn)
 {
        boost::intrusive_ptr<Point_as> ptr = ensureType<Point_as>(fn.this_ptr);
        UNUSED(ptr);
@@ -219,6 +222,7 @@
        return as_value();
 }
 
+
 as_value
 Point_ctor(const fn_call& fn)
 {

Index: server/asobj/flash/geom/Rectangle_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Rectangle_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/geom/Rectangle_as.cpp    5 May 2008 15:35:04 -0000       
1.3
+++ server/asobj/flash/geom/Rectangle_as.cpp    5 May 2008 16:58:52 -0000       
1.4
@@ -60,6 +60,8 @@
 static as_value Rectangle_width_getset(const fn_call& fn);
 static as_value Rectangle_x_getset(const fn_call& fn);
 static as_value Rectangle_y_getset(const fn_call& fn);
+
+
 as_value Rectangle_ctor(const fn_call& fn);
 
 static void
@@ -96,7 +98,7 @@
 static void
 attachRectangleStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
 }
 
 static as_object*
@@ -362,6 +364,8 @@
        return as_value();
 }
 
+
+
 as_value
 Rectangle_ctor(const fn_call& fn)
 {

Index: server/asobj/flash/geom/Transform_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/geom/Transform_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/geom/Transform_as.cpp    5 May 2008 15:35:04 -0000       
1.3
+++ server/asobj/flash/geom/Transform_as.cpp    5 May 2008 16:58:52 -0000       
1.4
@@ -39,6 +39,8 @@
 static as_value Transform_concatenatedMatrix_getset(const fn_call& fn);
 static as_value Transform_matrix_getset(const fn_call& fn);
 static as_value Transform_pixelBounds_getset(const fn_call& fn);
+
+
 as_value Transform_ctor(const fn_call& fn);
 
 static void
@@ -54,7 +56,7 @@
 static void
 attachTransformStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
 }
 
 static as_object*
@@ -131,6 +133,8 @@
        return as_value();
 }
 
+
+
 as_value
 Transform_ctor(const fn_call& fn)
 {

Index: server/asobj/flash/net/FileReferenceList_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/net/FileReferenceList_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/net/FileReferenceList_as.cpp     5 May 2008 15:35:04 
-0000       1.3
+++ server/asobj/flash/net/FileReferenceList_as.cpp     5 May 2008 16:58:52 
-0000       1.4
@@ -38,6 +38,8 @@
 static as_value FileReferenceList_browse(const fn_call& fn);
 static as_value FileReferenceList_removeListener(const fn_call& fn);
 static as_value FileReferenceList_fileList_getset(const fn_call& fn);
+
+
 as_value FileReferenceList_ctor(const fn_call& fn);
 
 static void
@@ -52,7 +54,7 @@
 static void
 attachFileReferenceListStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
 }
 
 static as_object*
@@ -120,6 +122,8 @@
        return as_value();
 }
 
+
+
 as_value
 FileReferenceList_ctor(const fn_call& fn)
 {

Index: server/asobj/flash/net/FileReference_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/net/FileReference_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/net/FileReference_as.cpp 5 May 2008 15:35:04 -0000       
1.3
+++ server/asobj/flash/net/FileReference_as.cpp 5 May 2008 16:58:52 -0000       
1.4
@@ -46,6 +46,8 @@
 static as_value FileReference_name_getset(const fn_call& fn);
 static as_value FileReference_size_getset(const fn_call& fn);
 static as_value FileReference_type_getset(const fn_call& fn);
+
+
 as_value FileReference_ctor(const fn_call& fn);
 
 static void
@@ -68,7 +70,7 @@
 static void
 attachFileReferenceStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
 }
 
 static as_object*
@@ -208,6 +210,8 @@
        return as_value();
 }
 
+
+
 as_value
 FileReference_ctor(const fn_call& fn)
 {

Index: server/asobj/flash/text/TextRenderer_as.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/flash/text/TextRenderer_as.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- server/asobj/flash/text/TextRenderer_as.cpp 5 May 2008 15:35:04 -0000       
1.3
+++ server/asobj/flash/text/TextRenderer_as.cpp 5 May 2008 16:58:53 -0000       
1.4
@@ -34,21 +34,23 @@
 
 namespace gnash {
 
+
 static as_value TextRenderer_setAdvancedAntialiasingTable(const fn_call& fn);
 static as_value TextRenderer_maxLevel_getset(const fn_call& fn);
+
 as_value TextRenderer_ctor(const fn_call& fn);
 
 static void
 attachTextRendererInterface(as_object& o)
 {
-    o.init_member("setAdvancedAntialiasingTable", new 
builtin_function(TextRenderer_setAdvancedAntialiasingTable));
-    o.init_property("maxLevel", TextRenderer_maxLevel_getset, 
TextRenderer_maxLevel_getset);
 }
 
 static void
 attachTextRendererStaticProperties(as_object& o)
 {
-       // TODO: add static properties here
+   
+    o.init_member("setAdvancedAntialiasingTable", new 
builtin_function(TextRenderer_setAdvancedAntialiasingTable));
+    o.init_property("maxLevel", TextRenderer_maxLevel_getset, 
TextRenderer_maxLevel_getset);
 }
 
 static as_object*
@@ -80,6 +82,7 @@
 };
 
 
+
 static as_value
 TextRenderer_setAdvancedAntialiasingTable(const fn_call& fn)
 {
@@ -98,6 +101,7 @@
        return as_value();
 }
 
+
 as_value
 TextRenderer_ctor(const fn_call& fn)
 {




reply via email to

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