gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/server/Makefile.am te...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/server/Makefile.am te...
Date: Mon, 21 Apr 2008 12:06:51 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/04/21 12:06:51

Modified files:
        .              : ChangeLog 
        testsuite/server: Makefile.am 
Added files:
        testsuite/server: ClassSizes.cpp 

Log message:
                  Add a simple prog to report common class sizes.
                  It's not a real test so won't be run, but will
                  be built on 'make check' or you can build
                  manually (make ClassSizes) to see.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6337&r2=1.6338
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/Makefile.am?cvsroot=gnash&r1=1.37&r2=1.38
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/server/ClassSizes.cpp?cvsroot=gnash&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6337
retrieving revision 1.6338
diff -u -b -r1.6337 -r1.6338
--- ChangeLog   21 Apr 2008 11:54:32 -0000      1.6337
+++ ChangeLog   21 Apr 2008 12:06:51 -0000      1.6338
@@ -1,3 +1,11 @@
+2008-04-21 Sandro Santilli <address@hidden>
+
+       * testsuite/server/: ClassSizes.cpp, Makefile.am:
+         Add a simple prog to report common class sizes.
+         It's not a real test so won't be run, but will
+         be built on 'make check' or you can build
+         manually (make ClassSizes) to see.
+
 2008-04-21 Benjamin Wolsey <address@hidden>
 
        * server/: (many files) GNASH_USE_GC is defined in smart_ptr.h,

Index: testsuite/server/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/server/Makefile.am,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -b -r1.37 -r1.38
--- testsuite/server/Makefile.am        4 Mar 2008 10:55:57 -0000       1.37
+++ testsuite/server/Makefile.am        21 Apr 2008 12:06:51 -0000      1.38
@@ -43,6 +43,7 @@
        as_prop_flagsTest \
        DisplayListTest \
        AsValueTest \
+       ClassSizes \
        $(NULL)
 
 CLEANFILES = \
@@ -108,6 +109,11 @@
        $(GNASH_LIBS) \
        $(NULL)
 
+ClassSizes_SOURCES = ClassSizes.cpp
+ClassSizes_LDADD = \
+       $(GNASH_LIBS) \
+       $(NULL)
+
 TEST_DRIVERS = ../simple.exp
 TEST_CASES = \
        $(check_PROGRAMS) \

Index: testsuite/server/ClassSizes.cpp
===================================================================
RCS file: testsuite/server/ClassSizes.cpp
diff -N testsuite/server/ClassSizes.cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/server/ClassSizes.cpp     21 Apr 2008 12:06:51 -0000      1.1
@@ -0,0 +1,52 @@
+// 
+//   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+// 
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 3 of the License, or
+// (at your option) any later version.
+// 
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+// 
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+#ifdef HAVE_CONFIG_H
+#include "gnashconfig.h"
+#endif
+
+#include "as_value.h"
+#include "as_object.h"
+#include "Property.h"
+#include "PropertyList.h"
+#include "sprite_instance.h"
+#include "character.h"
+
+#include <iostream>
+#include <sstream>
+#include <cassert>
+#include <cmath>
+#include <string>
+
+#include "check.h"
+
+using namespace gnash;
+
+int
+main(int /*argc*/, char** /*argv*/)
+{
+       std::cout << "sizeof(as_value): " << (sizeof(as_value)) << std::endl;
+
+       std::cout << "sizeof(Property): " << (sizeof(Property)) << std::endl;
+       std::cout << "sizeof(PropertyList): " << (sizeof(PropertyList)) << 
std::endl;
+
+       std::cout << "sizeof(GcResource): " << (sizeof(GcResource)) << 
std::endl;
+       std::cout << "sizeof(as_object): " << (sizeof(as_object)) << std::endl;
+       std::cout << "sizeof(character): " << (sizeof(character)) << std::endl;
+       std::cout << "sizeof(sprite_instance): " << (sizeof(sprite_instance)) 
<< std::endl;
+}
+




reply via email to

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