diff options
-rwxr-xr-x | agg/prj/build.lst | 2 | ||||
-rw-r--r-- | cppunit/cppunit-1.8.0-r1.patch | 8106 | ||||
-rw-r--r-- | cppunit/makefile.mk | 76 | ||||
-rw-r--r-- | cppunit/prj/build.lst | 2 | ||||
-rw-r--r-- | cppunit/prj/d.lst | 77 | ||||
-rw-r--r-- | hyphen/hyphen-2.4.patch | 3 | ||||
-rw-r--r-- | hyphen/prj/build.lst | 2 | ||||
-rw-r--r-- | icc/README | 8 | ||||
-rw-r--r-- | icc/SampleICC-1.3.2-bendian.patch | 5133 | ||||
-rw-r--r-- | icc/SampleICC-1.3.2.patch | 96 | ||||
-rw-r--r-- | icc/makefile.mk | 5 | ||||
-rw-r--r-- | icc/prj/build.lst | 2 | ||||
-rw-r--r-- | libegg/prj/build.lst | 2 | ||||
-rw-r--r-- | libegg/source/eggtrayicon.c | 48 | ||||
-rw-r--r-- | libtextcat/libtextcat-2.2.patch | 3 | ||||
-rw-r--r-- | libtextcat/prj/build.lst | 2 | ||||
-rw-r--r-- | libwpd/prj/build.lst | 2 | ||||
-rw-r--r-- | libxmlsec/prj/build.lst | 2 | ||||
-rw-r--r-- | lpsolve/prj/build.lst | 2 | ||||
-rw-r--r-- | openssl/makefile.mk | 6 | ||||
-rw-r--r-- | redland/prj/build.lst | 2 | ||||
-rw-r--r-- | redland/raptor/raptor-1.4.18.patch.dmake | 4 | ||||
-rw-r--r-- | redland/rasqal/rasqal-0.9.16.patch.dmake | 3 | ||||
-rw-r--r-- | redland/redland/redland-1.0.8.patch.dmake | 3 |
24 files changed, 504 insertions, 13087 deletions
diff --git a/agg/prj/build.lst b/agg/prj/build.lst index d1456c605f32..57a09328f82a 100755 --- a/agg/prj/build.lst +++ b/agg/prj/build.lst @@ -1,4 +1,4 @@ -ag agg : sal xml2cmp soltools NULL +ag agg : soltools stlport NULL ag agg usr1 - all ag_mkout NULL ag agg\inc get - all ag_inc NULL ag agg\prj get - all ag_prj NULL diff --git a/cppunit/cppunit-1.8.0-r1.patch b/cppunit/cppunit-1.8.0-r1.patch index 426051d6288d..b632c03596a8 100644 --- a/cppunit/cppunit-1.8.0-r1.patch +++ b/cppunit/cppunit-1.8.0-r1.patch @@ -1,12 +1,12 @@ --- misc/cppunit-1.8.0/AUTHORS 2002-03-26 09:29:58.000000000 +0100 -+++ misc/build/cppunit-1.8.0/AUTHORS 2008-12-09 08:01:30.000000000 +0100 ++++ misc/build/cppunit-1.8.0/AUTHORS 2009-09-12 14:15:35.015625000 +0200 @@ -5,3 +5,4 @@ Baptiste Lepilleur <gaiacrtn@free.fr> <blep@sourceforge.net> Bastiaan Bakker <bastiaan.bakker@lifeline.nl> Steve Robbins <smr99@sourceforge.net> +Lars Langhans <lla@openoffice.org> --- misc/cppunit-1.8.0/ChangeLog 2002-04-11 11:53:02.000000000 +0200 -+++ misc/build/cppunit-1.8.0/ChangeLog 2008-12-09 08:08:42.000000000 +0100 ++++ misc/build/cppunit-1.8.0/ChangeLog 2009-09-12 14:15:35.031250000 +0200 @@ -1,3 +1,9 @@ +2008-12-09 Lars Langhans <lla@openoffice.org> + * create with some source files a new library @@ -18,7 +18,7 @@ * doc/FAQ: removed question about the Exception::operator =() problem. --- misc/cppunit-1.8.0/INSTALL 2001-07-06 19:48:28.000000000 +0200 -+++ misc/build/cppunit-1.8.0/INSTALL 2008-12-09 09:39:09.000000000 +0100 ++++ misc/build/cppunit-1.8.0/INSTALL 2009-09-12 14:15:35.062500000 +0200 @@ -1,6 +1,12 @@ Basic Installation ================== @@ -33,15 +33,15 @@ The `configure' shell script attempts to guess correct values for --- misc/cppunit-1.8.0/include/cppunit/Asserter.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/Asserter.h 2008-02-27 17:09:30.000000000 +0100 -@@ -4,6 +4,7 @@ - #include <cppunit/Portability.h> ++++ misc/build/cppunit-1.8.0/include/cppunit/Asserter.h 2009-09-12 14:15:35.078125000 +0200 +@@ -5,6 +5,7 @@ #include <cppunit/SourceLine.h> #include <string> -+#include <rtl/ustring.hxx> ++ namespace CppUnit { + @@ -44,8 +45,8 @@ /*! Throws a Exception with the specified message and location. @@ -65,7 +65,7 @@ + + // LLA: test, if it's possible to use a DEFINE twice ;-) + void CPPUNIT_API failIf( bool shouldFail, -+ rtl::OUString const& message, ++ const char* message, + SourceLine const& sourceLine = SourceLine() ); /*! Throws a NotEqualException with the specified message and location. @@ -109,7 +109,7 @@ } // namespace Asserter } // namespace CppUnit --- misc/cppunit-1.8.0/include/cppunit/Exception.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/Exception.h 2008-02-27 17:10:36.000000000 +0100 ++++ misc/build/cppunit-1.8.0/include/cppunit/Exception.h 2009-09-12 14:15:35.093750000 +0200 @@ -21,7 +21,7 @@ class Type { @@ -180,7 +180,7 @@ } // namespace CppUnit --- misc/cppunit-1.8.0/include/cppunit/NotEqualException.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/NotEqualException.h 2008-02-27 17:11:12.000000000 +0100 ++++ misc/build/cppunit-1.8.0/include/cppunit/NotEqualException.h 2009-09-12 14:15:35.093750000 +0200 @@ -19,16 +19,16 @@ * \param additionalMessage Additionnal information provided to further qualify * the inequality. @@ -206,30 +206,47 @@ NotEqualException( const NotEqualException &other ); --- misc/cppunit-1.8.0/include/cppunit/Portability.h 2002-03-25 19:41:39.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/Portability.h 2008-02-27 17:12:24.000000000 +0100 -@@ -3,11 +3,11 @@ - - /* include platform specific config */ - #if defined(__BORLANDC__) --# include <cppunit/config-bcb5.h> -+# include <cppunit/portability/config-bcb5.h> - #elif defined (_MSC_VER) --# include <cppunit/config-msvc6.h> -+# include <cppunit/portability/config-msvc6.h> - #else --# include <cppunit/config-auto.h> -+# include <cppunit/portability/config-auto.h> ++++ misc/build/cppunit-1.8.0/include/cppunit/Portability.h 2009-09-12 14:15:35.109375000 +0200 +@@ -28,7 +28,7 @@ + #define CPPUNIT_ENABLE_CU_TEST_MACROS 0 #endif - +-/* Define to 1 if the preprocessor expands (#foo) to "foo" (quotes incl.) ++/* Define to 1 if the preprocessor expands (#foo) to "foo" (quotes incl.) + I don't think there is any C preprocess that does NOT support this! */ + #ifndef CPPUNIT_HAVE_CPP_SOURCE_ANNOTATION + #define CPPUNIT_HAVE_CPP_SOURCE_ANNOTATION 1 +@@ -51,11 +51,11 @@ + #if CPPUNIT_HAVE_SSTREAM + # include <sstream> + namespace CppUnit { +- class OStringStream : public std::ostringstream ++ class OStringStream : public std::ostringstream + { + }; + } +-#else ++#else + #if CPPUNIT_HAVE_CLASS_STRSTREAM + # include <string> + # if CPPUNIT_HAVE_STRSTREAM +@@ -65,7 +65,7 @@ + # endif + + namespace CppUnit { +- class OStringStream : public std::ostrstream ++ class OStringStream : public std::ostrstream + { + public: + std::string str() --- misc/cppunit-1.8.0/include/cppunit/Test.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/Test.h 2008-02-27 17:09:20.000000000 +0100 -@@ -3,14 +3,15 @@ - ++++ misc/build/cppunit-1.8.0/include/cppunit/Test.h 2009-09-12 14:15:35.125000000 +0200 +@@ -4,13 +4,15 @@ #include <cppunit/Portability.h> #include <string> -+#include <cppunit/autoregister/htestresult.h> ++typedef void* hTestResult; ++ namespace CppUnit { -class TestResult; @@ -242,7 +259,7 @@ * All test objects should be a subclass of Test. Some test objects, * TestCase for example, represent one individual test. Other test * objects, such as TestSuite, are comprised of several tests. -@@ -27,7 +28,7 @@ +@@ -27,7 +29,7 @@ /*! \brief Run the test, collecting results. */ @@ -252,13 +269,12 @@ /*! \brief Return the number of test cases invoked by run(). * --- misc/cppunit-1.8.0/include/cppunit/TestAssert.h 2002-04-04 17:39:37.000000000 +0200 -+++ misc/build/cppunit-1.8.0/include/cppunit/TestAssert.h 2008-02-27 17:12:12.000000000 +0100 -@@ -5,9 +5,12 @@ ++++ misc/build/cppunit-1.8.0/include/cppunit/TestAssert.h 2009-09-12 14:15:35.156250000 +0200 +@@ -5,9 +5,10 @@ #include <cppunit/Exception.h> #include <cppunit/Asserter.h> -+#include <cppunit/checkboom.hxx> - +- namespace CppUnit { + @@ -266,7 +282,7 @@ /*! \brief Traits used by CPPUNIT_ASSERT_EQUAL(). * * Here is an example of specialization of that traits: -@@ -31,83 +34,83 @@ +@@ -31,83 +32,83 @@ * }; * \endcode */ @@ -419,7 +435,7 @@ /* A set of macros which allow us to get the line number * and file name at the point of an error. -@@ -118,15 +121,22 @@ +@@ -118,15 +119,22 @@ /** Assertions that a condition is \c true. * \ingroup Assertions */ @@ -450,7 +466,7 @@ #endif /** Assertion with a user specified message. -@@ -136,25 +146,33 @@ +@@ -136,25 +144,33 @@ * \param condition If this condition evaluates to \c false then the * test failed. */ @@ -493,7 +509,7 @@ #else /** Asserts that two values are equals. * \ingroup Assertions -@@ -173,9 +191,9 @@ +@@ -173,9 +189,9 @@ * removed by specializing the CppUnit::assertion_traits. */ #define CPPUNIT_ASSERT_EQUAL(expected,actual) \ @@ -506,7 +522,7 @@ /** Asserts that two values are equals, provides additional messafe on failure. * \ingroup Assertions -@@ -196,20 +214,20 @@ +@@ -196,20 +212,20 @@ * removed by specializing the CppUnit::assertion_traits. */ #define CPPUNIT_ASSERT_EQUAL_MESSAGE(message,expected,actual) \ @@ -535,7 +551,7 @@ // Backwards compatibility -@@ -223,7 +241,6 @@ +@@ -223,7 +239,6 @@ #endif @@ -544,7 +560,7 @@ #endif // CPPUNIT_TESTASSERT_H --- misc/cppunit-1.8.0/include/cppunit/TestCaller.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/TestCaller.h 2008-02-27 17:09:40.000000000 +0100 ++++ misc/build/cppunit-1.8.0/include/cppunit/TestCaller.h 2009-09-12 14:15:35.171875000 +0200 @@ -111,7 +111,7 @@ * \param name name of this TestCaller * \param test the method this TestCaller calls in runTest() @@ -573,17 +589,16 @@ m_ownFixture( true ), m_fixture( fixture ), --- misc/cppunit-1.8.0/include/cppunit/TestCase.h 2002-03-27 18:56:45.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/TestCase.h 2008-02-27 17:11:00.000000000 +0100 -@@ -3,15 +3,13 @@ ++++ misc/build/cppunit-1.8.0/include/cppunit/TestCase.h 2009-09-12 14:15:35.187500000 +0200 +@@ -3,15 +3,12 @@ #include <cppunit/Portability.h> #include <cppunit/Test.h> -#include <cppunit/TestAssert.h> #include <cppunit/TestFixture.h> #include <string> -- -+#include <cppunit/autoregister/htestresult.h> +- namespace CppUnit { -class TestResult; @@ -592,7 +607,7 @@ /*! \brief A single test object. * -@@ -28,25 +26,25 @@ +@@ -28,25 +25,25 @@ { public: @@ -623,7 +638,7 @@ private: TestCase( const TestCase &other ); --- misc/cppunit-1.8.0/include/cppunit/TestFailure.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/TestFailure.h 2008-02-27 17:09:50.000000000 +0100 ++++ misc/build/cppunit-1.8.0/include/cppunit/TestFailure.h 2009-09-12 14:15:35.187500000 +0200 @@ -4,6 +4,16 @@ #include <cppunit/Portability.h> #include <string> @@ -674,7 +689,7 @@ private: TestFailure( const TestFailure &other ); --- misc/cppunit-1.8.0/include/cppunit/TestFixture.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/TestFixture.h 2008-02-27 17:10:26.000000000 +0100 ++++ misc/build/cppunit-1.8.0/include/cppunit/TestFixture.h 2009-09-12 14:15:35.203125000 +0200 @@ -74,11 +74,6 @@ * } * \endcode @@ -688,8 +703,8 @@ class CPPUNIT_API TestFixture { --- misc/cppunit-1.8.0/include/cppunit/TestSuite.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/TestSuite.h 2008-02-27 17:11:24.000000000 +0100 -@@ -4,17 +4,20 @@ ++++ misc/build/cppunit-1.8.0/include/cppunit/TestSuite.h 2009-09-12 14:15:35.218750000 +0200 +@@ -4,9 +4,11 @@ #include <cppunit/Portability.h> #if CPPUNIT_NEED_DLL_DECL @@ -701,8 +716,7 @@ #include <cppunit/Test.h> #include <vector> - #include <string> -+#include <cppunit/autoregister/htestresult.h> +@@ -14,7 +16,7 @@ namespace CppUnit { @@ -711,7 +725,7 @@ #if CPPUNIT_NEED_DLL_DECL template class CPPUNIT_API std::vector<Test *>; -@@ -35,7 +38,6 @@ +@@ -35,7 +37,6 @@ * Note that TestSuites assume lifetime * control for any tests added to them. * @@ -719,7 +733,7 @@ * \see Test * \see TestCaller */ -@@ -44,10 +46,10 @@ +@@ -44,10 +45,10 @@ class CPPUNIT_API TestSuite : public Test { public: @@ -732,7 +746,7 @@ int countTestCases() const; std::string getName() const; std::string toString() const; -@@ -71,7 +73,9 @@ +@@ -71,7 +72,9 @@ #if CPPUNIT_NEED_DLL_DECL @@ -742,75 +756,9 @@ +#endif #endif // CPPUNIT_TESTSUITE_H ---- misc/cppunit-1.8.0/include/cppunit/additionalfunc.hxx 2008-12-10 20:46:05.823290260 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/additionalfunc.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,61 @@ --dummy -+#ifndef ADDITIONALFUNC_HXX -+#define ADDITIONALFUNC_HXX -+ -+#include "cppunit/autoregister/registertestfunction.h" -+#include "sal/types.h" -+ -+extern "C" void SAL_CALL RegisterAdditionalFunctions(FktRegFuncPtr _pFunc); -+ -+#define NOADDITIONAL \ -+void RegisterAdditionalFunctions(FktRegFuncPtr){} -+ -+namespace { -+ -+enum T2_OSType { -+ T2_OS_WNT32 = 1, -+ T2_OS_UNIX, -+ T2_OS_OS2 -+}; -+ -+inline T2_OSType getOSType() -+{ -+#if defined WNT -+ return T2_OS_WNT32; -+#elif defined OS2 -+ return T2_OS_OS2; -+#else -+ return T2_OS_UNIX; -+#endif -+} -+ -+} -+ -+#define TESTSHL2_UNO_BOOTSTRAP(file) \ -+void RegisterAdditionalFunctions(FktRegFuncPtr _pFunc) \ -+{ \ -+ com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory> xMS; \ -+ com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > xComponentContext; \ -+ try { \ -+ if (strlen(#file) > 0) { \ -+ ::rtl::OUString iniFile(rtl::OUString::createFromAscii(#file)); \ -+ if (getOSType() == T2_OS_WNT32 || getOSType() == T2_OS_OS2) { \ -+ iniFile += ::rtl::OUString::createFromAscii(".ini"); \ -+ } else { \ -+ iniFile += ::rtl::OUString::createFromAscii("rc"); \ -+ } \ -+ xComponentContext = cppu::defaultBootstrap_InitialComponentContext(iniFile); \ -+ } else { \ -+ xComponentContext = cppu::defaultBootstrap_InitialComponentContext(); \ -+ } \ -+ xMS.set(xComponentContext->getServiceManager(), com::sun::star::uno::UNO_QUERY); \ -+ comphelper::setProcessServiceFactory(xMS); \ -+ } \ -+ catch (::com::sun::star::uno::Exception e ) { \ -+ rtl::OString aError; \ -+ aError = rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US); \ -+ printf("Error at UNO bootstrap time caught: %s\nMust quit.\n", aError.getStr()); \ -+ exit(1); \ -+ } \ -+} -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit: additionalfunc.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/autoregister/callbackfunc_fktptr.h 2008-12-10 20:46:05.931077489 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/autoregister/callbackfunc_fktptr.h 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,63 @@ +--- misc/cppunit-1.8.0/include/cppunit/callbackfunc_fktptr.h 2009-09-14 08:43:30.656250000 +0200 ++++ misc/build/cppunit-1.8.0/include/cppunit/callbackfunc_fktptr.h 2009-09-12 15:11:06.859375000 +0200 +@@ -1 +1,50 @@ -dummy +/************************************************************************* + * @@ -845,8 +793,6 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: additionalfunc.hxx.dummy. +#ifndef _callbackfunc_fktptr_h +#define _callbackfunc_fktptr_h + -+#include <sal/types.h> -+ +#ifdef __cplusplus +extern "C" { +#endif @@ -857,400 +803,99 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: additionalfunc.hxx.dummy. +typedef void* hTest; +typedef void* hException; + -+typedef sal_Int32 (* FktPtr_CallbackDispatch)(int x, ...); -+ -+//# typedef void (* FktPtr_TestResult_startTest)(hTestResult, hTest ); -+//# typedef void (* FktPtr_TestResult_addFailure)( hTestResult, hTest , hException pException ); -+//# typedef void (* FktPtr_TestResult_addError)( hTestResult, hTest , hException pException ); -+//# typedef void (* FktPtr_TestResult_endTest)( hTestResult, hTest ); -+//# typedef bool (* FktPtr_TestResult_shouldStop)(hTestResult); -+//# -+//# // Additional functions -+//# typedef void (* FktPtr_TestResult_addInfo)( hTestResult, hTest, const char* ); -+//# typedef void (* FktPtr_TestResult_enterNode)( hTestResult, const char* ); -+//# typedef void (* FktPtr_TestResult_leaveNode)( hTestResult, const char* ); ++typedef long (* FktPtr_CallbackDispatch)(int x, ...); + +#ifdef __cplusplus +} +#endif + +#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/autoregister: callbackfunc_fktptr.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/autoregister/callbackstructure.h 2008-12-10 20:46:06.013912039 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/autoregister/callbackstructure.h 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,89 @@ +--- misc/cppunit-1.8.0/include/cppunit/config-auto.h 2009-09-12 15:20:48.250000000 +0200 ++++ misc/build/cppunit-1.8.0/include/cppunit/config-auto.h 2009-09-12 14:15:35.234375000 +0200 +@@ -1 +1,64 @@ -dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef _callbackstructure_h -+#define _callbackstructure_h -+ -+#include <sal/types.h> -+#include <cppunit/autoregister/callbackfunc_fktptr.h> -+#include <cppunit/autoregister/registerfunc.h> -+#include <cppunit/autoregister/registertestfunction.h> -+#include <cppunit/cmdlinebits.hxx> -+ -+// this structure will filled by the testshl tool and hand to the testdll -+ -+struct CallbackStructure -+{ -+ // a version number, if we want to change/expand this struct -+ sal_Int32 nVersion; -+ sal_Int64 nMagic; -+ -+ FktRegFuncPtr aRegisterFunction; -+ -+ FktPtr_CallbackDispatch aCallbackDispatch; -+ -+ //# FktPtr_TestResult_startTest aStartTest; -+ //# FktPtr_TestResult_addFailure aAddFailure; -+ //# FktPtr_TestResult_addError aAddError; -+ //# FktPtr_TestResult_endTest aEndTest; -+ //# FktPtr_TestResult_shouldStop aShouldStop; -+ //# -+ //# FktPtr_TestResult_addInfo aAddInfo; -+ //# FktPtr_TestResult_enterNode aEnterNode; -+ //# FktPtr_TestResult_leaveNode aLeaveNode; -+ -+ const char* psForward; -+ CmdLineBits nBits; -+ -+ // void* pJobList; -+ -+ sal_Int64 nMagic2; -+ -+ CallbackStructure() -+ :nVersion(1), -+ nMagic(SAL_CONST_INT64(0x0123456789abcdef)), -+ aRegisterFunction(NULL), -+ aCallbackDispatch(NULL), -+ /* aStartTest(NULL), -+ aAddFailure(NULL), -+ aAddError(NULL), -+ aEndTest(NULL), -+ aShouldStop(NULL), -+ aAddInfo(NULL), -+ aEnterNode(NULL), -+ aLeaveNode(NULL), */ -+ psForward(NULL), -+ nBits(0), -+ /* pJobList(NULL), */ -+ nMagic2(0) -+ {} -+}; ++#ifndef _INCLUDE_CPPUNIT_CONFIG_AUTO_H ++#define _INCLUDE_CPPUNIT_CONFIG_AUTO_H 1 ++ ++/* include/cppunit/config-auto.h. Generated automatically at end of configure. */ ++/* config/config.h. Generated automatically by configure. */ ++/* config/config.h.in. Generated automatically from configure.in by autoheader. */ + ++/* define if library uses std::string::compare(string,pos,n) */ ++#ifndef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST ++#define CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST 1 +#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/autoregister: callbackstructure.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/autoregister/htestresult.h 2008-12-10 20:46:06.090738039 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/autoregister/htestresult.h 2008-02-27 17:17:34.000000000 +0100 -@@ -1 +1,6 @@ --dummy -+#ifndef _htestresult_h -+#define _htestresult_h -+ -+typedef void* hTestResult; + ++/* define if the library defines sstream */ ++#ifndef CPPUNIT_HAVE_SSTREAM ++#define CPPUNIT_HAVE_SSTREAM 1 +#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/autoregister: htestresult.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/autoregister/registerfunc.h 2008-12-10 20:46:06.135034318 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/autoregister/registerfunc.h 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,50 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef _registerfunc_h -+#define _registerfunc_h -+ -+#include <sal/types.h> -+#include <cppunit/autoregister/htestresult.h> -+#include <cppunit/autoregister/callbackfunc_fktptr.h> -+#include <cppunit/autoregister/testfunc.h> -+ -+struct CallbackStructure; -+ -+// this function is used to register one function into a Container in the testshl tool. -+extern "C" void SAL_CALL registerFunction(FktPtr aFunc, const char* aFuncName); -+ -+// this function is the register function for auto registering -+ -+extern "C" void SAL_CALL registerAllTestFunction(CallbackStructure* ); -+typedef void (* FktRegAllPtr)(CallbackStructure*); -+ + ++/* Define if you have the <cmath> header file. */ ++#ifndef CPPUNIT_HAVE_CMATH ++#define CPPUNIT_HAVE_CMATH 1 +#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/autoregister: registerfunc.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/autoregister/registertestfunction.h 2008-12-10 20:46:06.214882818 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/autoregister/registertestfunction.h 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,54 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef _registertestfunction_h -+#define _registertestfunction_h -+ -+#include <sal/types.h> -+#include <cppunit/autoregister/testfunc.h> + -+#ifdef __cplusplus -+extern "C" { ++/* Define if you have the <dlfcn.h> header file. */ ++#ifndef CPPUNIT_HAVE_DLFCN_H ++#define CPPUNIT_HAVE_DLFCN_H 1 +#endif -+ -+// function ptr, to register a function -+typedef void (* FktRegFuncPtr)(FktPtr aFunc, const char* aFuncName); -+ -+// this function is used in the testdll to register the given function -+// into the testshl -+extern "C" void SAL_CALL RegisterTestFunctions(FktRegFuncPtr aFunc); + -+#ifdef __cplusplus -+} ++/* define to 1 if the compiler implements namespaces */ ++#ifndef CPPUNIT_HAVE_NAMESPACES ++#define CPPUNIT_HAVE_NAMESPACES 1 +#endif + ++/* define if the compiler supports Run-Time Type Identification */ ++#ifndef CPPUNIT_HAVE_RTTI ++#define CPPUNIT_HAVE_RTTI 0 +#endif + -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit/autoregister: registertestfunction.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/autoregister/testfunc.h 2008-12-10 20:46:06.292344601 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/autoregister/testfunc.h 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,47 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef _testfunc_h -+#define _testfunc_h -+ -+#include <cppunit/autoregister/htestresult.h> -+ -+#ifdef __cplusplus -+extern "C" { ++/* define if the compiler has stringstream */ ++#ifndef CPPUNIT_HAVE_SSTREAM ++#define CPPUNIT_HAVE_SSTREAM 1 +#endif -+ -+// typedef for a testfunction -+typedef void (* FktPtr)(hTestResult); + -+#ifdef __cplusplus -+} ++/* Define if you have the <strstream> header file. */ ++#ifndef CPPUNIT_HAVE_STRSTREAM ++#define CPPUNIT_HAVE_STRSTREAM 1 +#endif + ++/* Name of package */ ++#ifndef CPPUNIT_PACKAGE ++#define CPPUNIT_PACKAGE "cppunit" +#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/autoregister: testfunc.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/checkboom.hxx 2008-12-10 20:46:06.371034174 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/checkboom.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,40 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef CHECKBOOM_HXX -+#define CHECKBOOM_HXX -+ -+#include <string> -+#include <rtl/ustring.hxx> -+ -+void CheckBoom(bool bCondition, std::string const& msg); -+void CheckBoom(bool bCondition, rtl::OUString const& msg); + ++/* Define to 1 to use type_info::name() for class names */ ++#ifndef CPPUNIT_USE_TYPEINFO_NAME ++#define CPPUNIT_USE_TYPEINFO_NAME CPPUNIT_HAVE_RTTI +#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit: checkboom.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/cmdlinebits.hxx 2008-12-10 20:46:06.465888459 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/cmdlinebits.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,52 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef CMDLINEBITS_HXX -+#define CMDLINEBITS_HXX -+ -+#include <sal/types.h> -+ -+typedef sal_uInt32 CmdLineBits; -+const char* getForwardString(); -+ -+#include <stdarg.h> -+ -+enum T_Print_Params { -+ T_INFO = 1, -+ T_VERBOSE, -+ T_DEBUG, -+ T_ERROR -+}; -+ -+// void t_print(const char*); -+void t_print(const char*, ...); -+void t_print(T_Print_Params, const char*, ...); + ++/* Version number of package */ ++#ifndef CPPUNIT_VERSION ++#define CPPUNIT_VERSION "1.8.0" ++#endif ++ ++/* _INCLUDE_CPPUNIT_CONFIG_AUTO_H */ +#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. +--- misc/cppunit-1.8.0/include/cppunit/config-msvc6.h 2002-03-25 19:41:39.000000000 +0100 ++++ misc/build/cppunit-1.8.0/include/cppunit/config-msvc6.h 2009-09-12 14:15:35.250000000 +0200 +@@ -21,12 +21,10 @@ + #define CPPUNIT_HAVE_NAMESPACES 1 + #endif + +-/* define if the compiler supports Run-Time Type Identification */ + #ifndef CPPUNIT_HAVE_RTTI +-#define CPPUNIT_HAVE_RTTI 1 ++#define CPPUNIT_HAVE_RTTI 0 + #endif + +-/* Define to 1 to use type_info::name() for class names */ + #ifndef CPPUNIT_USE_TYPEINFO_NAME + #define CPPUNIT_USE_TYPEINFO_NAME CPPUNIT_HAVE_RTTI + #endif --- misc/cppunit-1.8.0/include/cppunit/extensions/AutoRegisterSuite.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/extensions/AutoRegisterSuite.h 2008-02-27 17:16:16.000000000 +0100 ++++ misc/build/cppunit-1.8.0/include/cppunit/extensions/AutoRegisterSuite.h 2009-09-12 14:15:35.265625000 +0200 @@ -1,6 +1,7 @@ #ifndef CPPUNIT_EXTENSIONS_AUTOREGISTERSUITE_H #define CPPUNIT_EXTENSIONS_AUTOREGISTERSUITE_H @@ -1290,7 +935,7 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. } // namespace CppUnit --- misc/cppunit-1.8.0/include/cppunit/extensions/HelperMacros.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/extensions/HelperMacros.h 2008-02-27 17:17:12.000000000 +0100 ++++ misc/build/cppunit-1.8.0/include/cppunit/extensions/HelperMacros.h 2009-09-12 14:15:35.281250000 +0200 @@ -132,6 +132,14 @@ } \ }; \ @@ -1361,8 +1006,8 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. #endif // CPPUNIT_EXTENSIONS_HELPERMACROS_H --- misc/cppunit-1.8.0/include/cppunit/extensions/TestFactoryRegistry.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/extensions/TestFactoryRegistry.h 2008-02-27 17:16:38.000000000 +0100 -@@ -4,14 +4,18 @@ ++++ misc/build/cppunit-1.8.0/include/cppunit/extensions/TestFactoryRegistry.h 2009-09-12 14:15:35.296875000 +0200 +@@ -4,13 +4,16 @@ #include <cppunit/Portability.h> #if CPPUNIT_NEED_DLL_DECL @@ -1375,13 +1020,11 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. #include <cppunit/extensions/TestFactory.h> #include <map> #include <string> ++#include <cppunit/Test.h> -+#include <cppunit/autoregister/htestresult.h> -+ namespace CppUnit { - class TestSuite; -@@ -79,7 +83,7 @@ +@@ -79,7 +82,7 @@ * \param name Name of the registry. It is the name of TestSuite returned by * makeTest(). */ @@ -1390,7 +1033,7 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. /// Destructor. virtual ~TestFactoryRegistry(); -@@ -105,6 +109,7 @@ +@@ -105,6 +108,7 @@ * specified name. */ static TestFactoryRegistry &getRegistry( const std::string &name ); @@ -1398,7 +1041,7 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. /** Adds the registered tests to the specified suite. * \param suite Suite the tests are added to. -@@ -116,9 +121,12 @@ +@@ -116,9 +120,12 @@ * \param factory Factory to register. * \deprecated Use registerFactory( TestFactory *) instead. */ @@ -1412,7 +1055,7 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. /** Adds the specified TestFactory to the registry. * * \param factory Factory to register. -@@ -141,8 +149,10 @@ +@@ -141,8 +148,10 @@ #if CPPUNIT_NEED_DLL_DECL @@ -1424,7 +1067,7 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. #endif // CPPUNIT_EXTENSIONS_TESTFACTORYREGISTRY_H --- misc/cppunit-1.8.0/include/cppunit/extensions/TestSuiteBuilder.h 2002-03-28 16:47:07.000000000 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/extensions/TestSuiteBuilder.h 2008-02-27 17:17:22.000000000 +0100 ++++ misc/build/cppunit-1.8.0/include/cppunit/extensions/TestSuiteBuilder.h 2009-09-12 14:15:35.312500000 +0200 @@ -34,11 +34,11 @@ } #endif @@ -1476,9 +1119,9 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. } private: ---- misc/cppunit-1.8.0/include/cppunit/externcallbackfunc.hxx 2008-12-10 20:46:06.550085206 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/externcallbackfunc.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,58 @@ +--- misc/cppunit-1.8.0/include/cppunit/externcallbackfunc.hxx 2009-09-14 08:43:30.703125000 +0200 ++++ misc/build/cppunit-1.8.0/include/cppunit/externcallbackfunc.hxx 2009-09-12 15:12:02.703125000 +0200 +@@ -1 +1,39 @@ -dummy +/************************************************************************* + * @@ -1513,1478 +1156,15 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: cmdlinebits.hxx.dummy. +#ifndef _externcallbackfunc_hxx +#define _externcallbackfunc_hxx + -+#include <cppunit/autoregister/callbackfunc_fktptr.h> ++#include <cppunit/callbackfunc_fktptr.h> + +// these pointers have they origin in 'tresregister.cxx' +extern FktPtr_CallbackDispatch pCallbackFunc; + -+//# extern FktPtr_TestResult_startTest pTestResult_StartTest; -+//# extern FktPtr_TestResult_addFailure pTestResult_AddFailure; -+//# extern FktPtr_TestResult_addError pTestResult_AddError; -+//# extern FktPtr_TestResult_endTest pTestResult_EndTest; -+//# extern FktPtr_TestResult_addInfo pTestResult_AddInfo; -+ -+// these pointers have they origin in 'tresregister.cxx' -+// extern FktPtr_TestResult_Starter pTestResult_Starter; -+ -+//# extern FktPtr_TestResult_startTest pTestResult_StartTest; -+//# extern FktPtr_TestResult_addFailure pTestResult_AddFailure; -+//# extern FktPtr_TestResult_addError pTestResult_AddError; -+//# extern FktPtr_TestResult_endTest pTestResult_EndTest; -+//# extern FktPtr_TestResult_addInfo pTestResult_AddInfo; -+//# -+//# extern FktPtr_TestResult_enterNode pTestResult_EnterNode; -+//# extern FktPtr_TestResult_leaveNode pTestResult_LeaveNode; -+//# -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit: externcallbackfunc.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/joblist.hxx 2008-12-10 20:46:06.643901729 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/joblist.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,99 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef CPPUNIT_JOBLIST_HXX -+#define CPPUNIT_JOBLIST_HXX -+ -+#include <vector> -+#include <string> -+#include <hash_map> -+#include "sal/types.h" -+ -+// #include <cppunit/nocopy.hxx> -+ -+/* -+ struct eqstr -+ { -+ bool operator()( std::string const & s1, std::string const& s2 ) const -+ { -+ return ( s1 == s2 ); -+ } -+ }; -+*/ -+ -+/* -+ struct hashstr -+ { -+ sal_uInt32 operator()( std::string const & str ) const -+ { -+ return str.hashCode(); -+ } -+ }; -+*/ -+typedef std::hash_map< std::string, int > HashMap; -+ -+// typedef std::vector<std::string> StringList; -+ -+#define JOB_UNKNOWN 0 -+#define JOB_NOT_FOUND 1 -+#define JOB_PASSED 2 -+#define JOB_FAILED 3 -+#define JOB_ACCESS 4 -+ -+#define JOB_EXCLUDE_LIST 0x1000 -+#define JOB_ONLY_LIST 0x1001 -+ -+typedef sal_Int16 JobType; -+ -+class JobList /* : NOCOPY */ -+{ -+ HashMap m_aJobList; -+ char** ppsJobList; -+ -+ // returns true if the given List contains unxlngi or unxsols or wntmsci... -+ bool isInCurrentEnvironment(std::string const& _sString); -+ std::string trim(std::string const& _sStringToTrim); -+ -+public: -+ JobList(); -+ ~JobList(); -+ -+ bool readfile(std::string const& _sFilename, JobType _nJobType); -+ const char** getList() const {return (const char**)ppsJobList;} -+ -+ int getJobListEntry(std::string const& _sIndexName); -+ void setJobListEntry(std::string const& _sIndexName, int _nValue); -+ -+ int size() {return m_aJobList.size();} -+ HashMap const& getHashMap() {return m_aJobList;} -+}; -+ -+#endif -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit: joblist.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/nocopy.hxx 2008-12-10 20:46:06.720535461 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/nocopy.hxx 2008-02-27 17:08:42.000000000 +0100 -@@ -1 +1,13 @@ --dummy -+#ifndef NOCOPY_HXX -+#define NOCOPY_HXX -+ -+// prevent illegal copies -+class NOCOPY -+{ -+ NOCOPY(NOCOPY const&); -+ NOCOPY& operator=(NOCOPY const&); -+public: -+ NOCOPY(){} -+}; -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit: nocopy.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/portability/config-auto.h 2008-12-10 20:46:06.802507987 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/portability/config-auto.h 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,64 @@ --dummy -+#ifndef _INCLUDE_CPPUNIT_CONFIG_AUTO_H -+#define _INCLUDE_CPPUNIT_CONFIG_AUTO_H 1 -+ -+/* include/cppunit/config-auto.h. Generated automatically at end of configure. */ -+/* config/config.h. Generated automatically by configure. */ -+/* config/config.h.in. Generated automatically from configure.in by autoheader. */ -+ -+/* define if library uses std::string::compare(string,pos,n) */ -+#ifndef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST -+#define CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST 1 -+#endif -+ -+/* define if the library defines sstream */ -+#ifndef CPPUNIT_HAVE_SSTREAM -+#define CPPUNIT_HAVE_SSTREAM 1 -+#endif -+ -+/* Define if you have the <cmath> header file. */ -+#ifndef CPPUNIT_HAVE_CMATH -+#define CPPUNIT_HAVE_CMATH 1 -+#endif -+ -+/* Define if you have the <dlfcn.h> header file. */ -+#ifndef CPPUNIT_HAVE_DLFCN_H -+#define CPPUNIT_HAVE_DLFCN_H 1 -+#endif -+ -+/* define to 1 if the compiler implements namespaces */ -+#ifndef CPPUNIT_HAVE_NAMESPACES -+#define CPPUNIT_HAVE_NAMESPACES 1 -+#endif -+ -+/* define if the compiler supports Run-Time Type Identification */ -+#ifndef CPPUNIT_HAVE_RTTI -+#define CPPUNIT_HAVE_RTTI 0 -+#endif -+ -+/* define if the compiler has stringstream */ -+#ifndef CPPUNIT_HAVE_SSTREAM -+#define CPPUNIT_HAVE_SSTREAM 1 -+#endif -+ -+/* Define if you have the <strstream> header file. */ -+#ifndef CPPUNIT_HAVE_STRSTREAM -+#define CPPUNIT_HAVE_STRSTREAM 1 -+#endif -+ -+/* Name of package */ -+#ifndef CPPUNIT_PACKAGE -+#define CPPUNIT_PACKAGE "cppunit" -+#endif -+ -+/* Define to 1 to use type_info::name() for class names */ -+#ifndef CPPUNIT_USE_TYPEINFO_NAME -+#define CPPUNIT_USE_TYPEINFO_NAME CPPUNIT_HAVE_RTTI -+#endif -+ -+/* Version number of package */ -+#ifndef CPPUNIT_VERSION -+#define CPPUNIT_VERSION "1.8.0" -+#endif -+ -+/* _INCLUDE_CPPUNIT_CONFIG_AUTO_H */ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/portability: config-auto.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/portability/config-bcb5.h 2008-12-10 20:46:05.287223886 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/portability/config-bcb5.h 2008-02-27 17:15:52.000000000 +0100 -@@ -1 +1,48 @@ --dummy -+#ifndef _INCLUDE_CPPUNIT_CONFIG_BCB5_H -+#define _INCLUDE_CPPUNIT_CONFIG_BCB5_H 1 -+ -+#define HAVE_CMATH 1 -+ -+/* include/cppunit/config-bcb5.h. Manually adapted from -+ include/cppunit/config-auto.h */ -+ -+/* define if library uses std::string::compare(string,pos,n) */ -+#ifndef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST -+#define CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST 1 -+#endif -+ -+/* Define if you have the <dlfcn.h> header file. */ -+#ifdef CPPUNIT_HAVE_DLFCN_H -+#undef CPPUNIT_HAVE_DLFCN_H -+#endif -+ -+/* define to 1 if the compiler implements namespaces */ -+#ifndef CPPUNIT_HAVE_NAMESPACES -+#define CPPUNIT_HAVE_NAMESPACES 1 -+#endif -+ -+/* define if the compiler supports Run-Time Type Identification */ -+#ifndef CPPUNIT_HAVE_RTTI -+#define CPPUNIT_HAVE_RTTI 1 -+#endif -+ -+/* Define to 1 to use type_info::name() for class names */ -+#ifndef CPPUNIT_USE_TYPEINFO_NAME -+#define CPPUNIT_USE_TYPEINFO_NAME CPPUNIT_HAVE_RTTI -+#endif -+ -+#define CPPUNIT_HAVE_SSTREAM 1 -+ -+/* Name of package */ -+#ifndef CPPUNIT_PACKAGE -+#define CPPUNIT_PACKAGE "cppunit" -+#endif -+ -+/* Version number of package */ -+#ifndef CPPUNIT_VERSION -+#define CPPUNIT_VERSION "1.5.5" -+#endif -+ -+ -+/* _INCLUDE_CPPUNIT_CONFIG_BCB5_H */ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/portability: config-bcb5.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/portability/config-msvc6.h 2008-12-10 20:46:05.392326519 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/portability/config-msvc6.h 2008-02-27 17:15:40.000000000 +0100 -@@ -1 +1,62 @@ --dummy -+#ifndef _INCLUDE_CPPUNIT_CONFIG_MSVC6_H -+#define _INCLUDE_CPPUNIT_CONFIG_MSVC6_H 1 -+ -+#define HAVE_CMATH 1 -+ -+/* include/cppunit/config-msvc6.h. Manually adapted from -+ include/cppunit/config-auto.h */ -+ -+/* define if library uses std::string::compare(string,pos,n) */ -+#ifdef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST -+#undef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST -+#endif -+ -+/* Define if you have the <dlfcn.h> header file. */ -+#ifdef CPPUNIT_HAVE_DLFCN_H -+#undef CPPUNIT_HAVE_DLFCN_H -+#endif -+ -+/* define to 1 if the compiler implements namespaces */ -+#ifndef CPPUNIT_HAVE_NAMESPACES -+#define CPPUNIT_HAVE_NAMESPACES 1 -+#endif -+ -+#ifndef CPPUNIT_HAVE_RTTI -+#define CPPUNIT_HAVE_RTTI 0 -+#endif -+ -+#ifndef CPPUNIT_USE_TYPEINFO_NAME -+#define CPPUNIT_USE_TYPEINFO_NAME CPPUNIT_HAVE_RTTI -+#endif -+ -+#define CPPUNIT_HAVE_SSTREAM 1 -+ -+/* Name of package */ -+#ifndef CPPUNIT_PACKAGE -+#define CPPUNIT_PACKAGE "cppunit" -+#endif -+ -+#undef CPPUNIT_API -+ -+// define CPPUNIT_DLL_BUILD when building CppUnit dll. -+#ifdef CPPUNIT_BUILD_DLL -+#define CPPUNIT_API __declspec(dllexport) -+#endif -+ -+// define CPPUNIT_DLL when linking to CppUnit dll. -+#ifdef CPPUNIT_DLL -+#define CPPUNIT_API __declspec(dllimport) -+#endif -+ -+#ifdef CPPUNIT_API -+#undef CPPUNIT_NEED_DLL_DECL -+#define CPPUNIT_NEED_DLL_DECL 1 -+#endif -+ -+#if _MSC_VER > 1000 // VC++ -+#pragma warning( disable : 4786 ) // disable warning debug symbol > 255... -+#endif // _MSC_VER > 1000 -+ -+ -+/* _INCLUDE_CPPUNIT_CONFIG_MSVC6_H */ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/portability: config-msvc6.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/SynchronizedObject.h 2008-12-10 20:46:04.893658092 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/SynchronizedObject.h 2008-02-27 17:14:06.000000000 +0100 -@@ -1 +1,82 @@ --dummy -+#ifndef CPPUNIT_SYNCHRONIZEDOBJECT_H -+#define CPPUNIT_SYNCHRONIZEDOBJECT_H -+ -+#include <cppunit/Portability.h> -+#include <cppunit/nocopy.hxx> -+ -+namespace CppUnit -+{ -+ -+/*! \brief Base class for synchronized object. -+ * -+ * Synchronized object are object which members are used concurrently by mutiple -+ * threads. -+ * -+ * This class define the class SynchronizationObject which must be subclassed -+ * to implement an actual lock. -+ * -+ * Each instance of this class holds a pointer on a lock object. -+ * -+ * See src/msvc6/MfcSynchronizedObject.h for an example. -+ */ -+class CPPUNIT_API SynchronizedObject -+{ -+public: -+ /*! \brief Abstract synchronization object (mutex) -+ */ -+ class SynchronizationObject -+ { -+ public: -+ SynchronizationObject() {} -+ virtual ~SynchronizationObject() {} -+ -+ virtual void lock() {} -+ virtual void unlock() {} -+ }; -+ -+ /*! Constructs a SynchronizedObject object. -+ */ -+ SynchronizedObject( SynchronizationObject *syncObject =0 ); -+ -+ /// Destructor. -+ virtual ~SynchronizedObject(); -+ -+protected: -+ /*! \brief Locks a synchronization object in the current scope. -+ */ -+ class ExclusiveZone : NOCOPY -+ { -+ SynchronizationObject *m_syncObject; -+ -+ public: -+ ExclusiveZone( SynchronizationObject *syncObject ) -+ : m_syncObject( syncObject ) -+ { -+ m_syncObject->lock(); -+ } -+ -+ ~ExclusiveZone() -+ { -+ m_syncObject->unlock (); -+ } -+ }; -+ -+ virtual void setSynchronizationObject( SynchronizationObject *syncObject ); -+ -+protected: -+ SynchronizationObject *m_syncObject; -+ -+private: -+ /// Prevents the use of the copy constructor. -+ SynchronizedObject( const SynchronizedObject © ); -+ -+ /// Prevents the use of the copy operator. -+ void operator =( const SynchronizedObject © ); -+}; -+ -+ -+ -+} // namespace CppUnit -+ -+ -+#endif // CPPUNIT_SYNCHRONIZEDOBJECT_H -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: SynchronizedObject.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/TestListener.h 2008-12-10 20:46:04.938237839 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/TestListener.h 2008-02-27 17:14:38.000000000 +0100 -@@ -1 +1,62 @@ --dummy -+#ifndef CPPUNIT_TESTLISTENER_H // -*- C++ -*- -+#define CPPUNIT_TESTLISTENER_H -+ -+#include <cppunit/Portability.h> -+ -+ -+namespace CppUnit { -+ -+class Exception; -+class Test; -+class TestFailure; -+ -+ -+/*! \brief Listener for test progress and result. -+ * \ingroup TrackingTestExecution -+ * -+ * Implementing the Observer pattern a TestListener may be registered -+ * to a TestResult to obtain information on the testing progress. Use -+ * specialized sub classes of TestListener for text output -+ * (TextTestProgressListener). Do not use the Listener for the test -+ * result output, use a subclass of Outputter instead. -+ * -+ * The test framework distinguishes between failures and errors. -+ * A failure is anticipated and checked for with assertions. Errors are -+ * unanticipated problems signified by exceptions that are not generated -+ * by the framework. -+ * -+ * \see TestResult -+ */ -+class CPPUNIT_API TestListener -+{ -+public: -+ virtual ~TestListener() {} -+ -+ /// Called when just before a TestCase is run. -+ virtual void startTest( Test *test ) =0 ; -+ -+ /*! Called when a failure occurs while running a test. -+ * \see TestFailure. -+ * \warning \a failure is a temporary object that is destroyed after the -+ * method call. Use TestFailure::clone() to create a duplicate. -+ */ -+ virtual void addFailure( const TestFailure &failure ) =0; -+ -+ /// Called just after a TestCase was run (even if a failure occured). -+ virtual void endTest( Test *test ) =0; -+ -+ // additional info -+ virtual void addInfo(Test *test, const char*) =0; -+ -+ // info in which node we are -+ // helper functions to create tree structures -+ // old: virtual void enterNode( const char* ) =0; -+ // old: virtual void leaveNode( const char* ) =0; -+}; -+ -+ -+} // namespace CppUnit -+ -+#endif // CPPUNIT_TESTLISTENER_H -+ -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: TestListener.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/TestResult.h 2008-12-10 20:46:05.070889564 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/TestResult.h 2008-02-27 17:13:08.000000000 +0100 -@@ -1 +1,123 @@ --dummy -+#ifndef CPPUNIT_TESTRESULT_H -+#define CPPUNIT_TESTRESULT_H -+ -+#include <cppunit/Portability.h> -+ -+#if CPPUNIT_NEED_DLL_DECL -+#ifdef _MSC_VER -+#pragma warning( push ) -+#pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z -+#endif -+#endif -+ -+#include <cppunit/result/SynchronizedObject.h> -+#include <vector> -+#include <string> -+#include <deque> -+//!io #include <iostream> -+ -+#include "cppunit/result/optionhelper.hxx" -+#include "cppunit/TestFailure.h" -+ -+class Outputter; -+namespace CppUnit { -+ -+class Exception; -+class Test; -+// class TestFailure; -+class TestListener; -+ -+#if CPPUNIT_NEED_DLL_DECL -+ template class CPPUNIT_API std::deque<TestListener *>; -+#endif -+ -+/*! \brief Manages TestListener. -+ * \ingroup TrackingTestExecution -+ * -+ * A single instance of this class is used when running the test. It is usually -+ * created by the test runner (TestRunner). -+ * -+ * This class shouldn't have to be inherited from. Use a TestListener -+ * or one of its subclasses to be informed of the ongoing tests. -+ * Use a Outputter to receive a test summary once it has finished -+ * -+ * TestResult supplies a template method 'setSynchronizationObject()' -+ * so that subclasses can provide mutual exclusion in the face of multiple -+ * threads. This can be useful when tests execute in one thread and -+ * they fill a subclass of TestResult which effects change in another -+ * thread. To have mutual exclusion, override setSynchronizationObject() -+ * and make sure that you create an instance of ExclusiveZone at the -+ * beginning of each method. -+ * -+ * \see Test, TestListener, TestResultCollector, Outputter. -+ */ -+class CPPUNIT_API TestResult : protected SynchronizedObject -+{ -+protected: -+ OptionHelper m_aOptionHelper; -+ -+public: -+ TestResult( GetOpt & _aOptions, SynchronizationObject *syncObject = 0 ); -+ virtual ~TestResult(); -+ -+ virtual void addListener( TestListener *listener ); -+ virtual void removeListener( TestListener *listener ); -+ -+ virtual void reset(); -+ virtual void stop(); -+ -+ virtual bool shouldStop() const; -+ -+ virtual void startTest( Test *test ); -+ virtual void addError( Test *test, Exception *e, ErrorType::num eType=ErrorType::ET_ERROR); -+ virtual void addFailure( Test *test, Exception *e ); -+ virtual void endTest( Test *test ); -+ -+ // LLA: additionals -+ virtual void addInfo(Test *test, const char *sInfo); -+ -+ virtual void enterNode(const char* Node); -+ virtual void leaveNode(const char* Node); -+ virtual std::string getNodeName(); -+ -+ // if true, execution is allowed. -+ virtual bool isAllowedToExecute(std::string const & sName); -+ bool isOnlyShowJobs() {return m_aOptionHelper.isOnlyShowJobs();} -+ bool isOptionWhereAmI(); -+ -+ virtual void print(Outputter &); -+ void setExitValue(int _nValue) {m_nExitValue = _nValue;} -+ int getExitValue() {return m_nExitValue;} -+ -+protected: -+ void addFailure( const TestFailure &failure ); -+ -+protected: -+ typedef std::deque<TestListener *> TestListeners; -+ TestListeners m_listeners; -+ bool m_stop; -+ -+ // this vector is used to expand the test name with a current node name -+ std::vector<std::string> m_aCurrentNodeNames; -+ -+ //# std::vector<std::string> m_aNodes; -+ -+private: -+ TestResult( const TestResult &other ); -+ TestResult &operator =( const TestResult &other ); -+ int m_nExitValue; -+}; -+ -+ -+} // namespace CppUnit -+ -+ -+#if CPPUNIT_NEED_DLL_DECL -+#ifdef _MSC_VER -+#pragma warning( pop ) -+#endif -+#endif -+ -+#endif // CPPUNIT_TESTRESULT_H -+ -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: TestResult.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/TestResultCollector.h 2008-12-10 20:46:05.024473262 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/TestResultCollector.h 2008-02-27 17:14:48.000000000 +0100 -@@ -1 +1,165 @@ --dummy -+#ifndef CPPUNIT_TESTRESULTCOLLECTOR_H -+#define CPPUNIT_TESTRESULTCOLLECTOR_H -+ -+#include <cppunit/Portability.h> -+ -+#if CPPUNIT_NEED_DLL_DECL -+#ifdef _MSC_VER -+#pragma warning( push ) -+#pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z -+#endif -+#endif -+ -+#include <cppunit/result/TestResult.h> -+#include <cppunit/result/TestSucessListener.h> -+#include <deque> -+#include <vector> -+ -+namespace CppUnit -+{ -+ -+ -+#if CPPUNIT_NEED_DLL_DECL -+ template class CPPUNIT_API std::deque<TestFailure *>; -+ template class CPPUNIT_API std::deque<Test *>; -+#endif -+ -+ -+/*! \brief Collects test result. -+ * \ingroup WritingTestResult -+ * \ingroup BrowsingCollectedTestResult -+ * -+ * A TestResultCollector is a TestListener which collects the results of executing -+ * a test case. It is an instance of the Collecting Parameter pattern. -+ * -+ * The test framework distinguishes between failures and errors. -+ * A failure is anticipated and checked for with assertions. Errors are -+ * unanticipated problems signified by exceptions that are not generated -+ * by the framework. -+ * \see TestListener, TestFailure. -+ */ -+ -+class OneStringContainer -+{ -+ std::string m_sName; -+protected: -+ OneStringContainer() {} -+public: -+ OneStringContainer(std::string const& _sName) -+ :m_sName(_sName){} -+ std::string getString() const {return m_sName;} -+ virtual ~OneStringContainer(){} -+}; -+ -+// ----------------------------------------------------------------------------- -+class TestEnvelope : public OneStringContainer -+{ -+ Test* m_pTest; -+public: -+ TestEnvelope():m_pTest(NULL){} -+ -+ TestEnvelope(Test* _pTest, std::string const& _sName) -+ : OneStringContainer(_sName), -+ m_pTest(_pTest) -+ {} -+ -+ Test* getTest() {return m_pTest;} -+ virtual ~TestEnvelope(){} -+ -+}; -+ -+// ----------------------------------------------------------------------------- -+class TestInfo : public TestEnvelope -+{ -+public: -+ TestInfo(Test* _pTest, std::string const& _sName) -+ :TestEnvelope(_pTest, _sName) -+ {} -+}; -+ -+// ----------------------------------------------------------------------------- -+class TestFailureEnvelope : public OneStringContainer -+{ -+ TestFailure* m_pTestFailure; -+public: -+ TestFailureEnvelope():m_pTestFailure(NULL){} -+ -+ TestFailureEnvelope(TestFailure* _pTestFailure, std::string const& _sName) -+ :OneStringContainer(_sName), -+ m_pTestFailure(_pTestFailure) -+ {} -+ -+ TestFailure* getTestFailure() {return m_pTestFailure;} -+ virtual ~TestFailureEnvelope(){} -+ -+}; -+// ----------------------------------------------------------------------------- -+ -+class CPPUNIT_API TestResultCollector : public TestSucessListener -+{ -+ TestResult* m_pResult; -+public: -+ typedef std::deque<TestFailureEnvelope *> TestFailures; -+ typedef std::deque<TestEnvelope *> Tests; -+ typedef std::vector<TestInfo *> TestInfos; -+ -+ -+ /*! Constructs a TestResultCollector object. -+ */ -+ TestResultCollector( TestResult *_pResult, SynchronizationObject *syncObject = 0 ); -+ -+ /// Destructor. -+ virtual ~TestResultCollector(); -+ -+ void startTest( Test *test ); -+ void endTest( Test *test ); -+ -+ void addFailure( const TestFailure &failure ); -+ -+ virtual void reset(); -+ -+ virtual int runTests() const; -+ virtual int testErrors() const; -+ virtual int testFailures() const; -+ virtual int testFailuresTotal() const; -+ -+ virtual const TestFailures& failures() const; -+ virtual const Tests &tests() const; -+ virtual std::string getInfo(Test*); -+ -+ virtual void addInfo(Test *test, const char *sInfo); -+ -+ // virtual void enterNode(const char* Node); -+ // virtual void leaveNode(const char* Node); -+ -+protected: -+ Tests m_tests; -+ TestFailures m_failures; -+ TestInfos m_aInfos; -+ -+ int m_testErrors; -+ -+ // this vector is used to expand the test name with a current node name -+ // std::vector<std::string> m_aCurrentNodeNames; -+ // std::string getNodeName(); -+private: -+ /// Prevents the use of the copy constructor. -+ TestResultCollector( const TestResultCollector © ); -+ -+ /// Prevents the use of the copy operator. -+ void operator =( const TestResultCollector © ); -+}; -+ -+ -+ -+} // namespace CppUnit -+ -+ -+#if CPPUNIT_NEED_DLL_DECL -+#ifdef _MSC_VER -+#pragma warning( pop ) -+#endif -+#endif -+ -+ -+#endif // CPPUNIT_TESTRESULTCOLLECTOR_H -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: TestResultCollector.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/TestSucessListener.h 2008-12-10 20:46:05.161106554 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/TestSucessListener.h 2008-02-27 17:14:16.000000000 +0100 -@@ -1 +1,40 @@ --dummy -+#ifndef CPPUNIT_TESTSUCESSLISTENER_H -+#define CPPUNIT_TESTSUCESSLISTENER_H -+ -+#include <cppunit/result/SynchronizedObject.h> -+#include <cppunit/result/TestListener.h> -+ -+ -+namespace CppUnit -+{ -+ -+/*! \brief TestListener that checks if any test case failed. -+ * \ingroup TrackingTestExecution -+ */ -+class CPPUNIT_API TestSucessListener : public TestListener, -+ public SynchronizedObject -+{ -+public: -+ /*! Constructs a TestSucessListener object. -+ */ -+ TestSucessListener( SynchronizationObject *syncObject = 0 ); -+ -+ /// Destructor. -+ virtual ~TestSucessListener(); -+ -+ virtual void reset(); -+ -+ void addFailure( const TestFailure &failure ); -+ -+ /// Returns whether the entire test was successful or not. -+ virtual bool wasSuccessful() const; -+ -+private: -+ bool m_sucess; -+}; -+ -+ -+} // namespace CppUnit -+ -+ -+#endif // CPPUNIT_TESTSUCESSLISTENER_H -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: TestSucessListener.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/TextTestResult.h 2008-12-10 20:46:05.242583534 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/TextTestResult.h 2008-02-27 17:14:28.000000000 +0100 -@@ -1 +1,62 @@ --dummy -+#ifndef CPPUNIT_TEXTTESTRESULT_H -+#define CPPUNIT_TEXTTESTRESULT_H -+ -+#include <cppunit/result/TestResult.h> -+#include <cppunit/result/TestResultCollector.h> -+#include <ostream> -+ -+class GetOpt; -+namespace CppUnit { -+ -+class SourceLine; -+class Exception; -+class Test; -+ -+/*! \brief Holds printable test result (DEPRECATED). -+ * \ingroup TrackingTestExecution -+ * -+ * deprecated Use class TextTestProgressListener and TextOutputter instead. -+ */ -+class CPPUNIT_API TextTestResult : public TestResult -+/* public TestResultCollector*/ -+{ -+ TestResultCollector m_aResulter; -+public: -+ TextTestResult(GetOpt& _aOptions); -+ -+ virtual void addFailure( const TestFailure &failure ); -+ virtual void startTest( Test *test ); -+ virtual void endTest( Test *test ); -+ -+ virtual void print( std::ostream &stream ); -+protected: -+ -+ virtual void printFailures( std::ostream &stream ); -+ virtual void printHeader( std::ostream &stream ); -+ -+ virtual void printFailure( TestFailure *failure, -+ int failureNumber, -+ std::ostream &stream ); -+ virtual void printFailureListMark( int failureNumber, -+ std::ostream &stream ); -+ virtual void printFailureTestName( TestFailure *failure, -+ std::ostream &stream ); -+ virtual void printFailureType( TestFailure *failure, -+ std::ostream &stream ); -+ virtual void printFailureLocation( SourceLine sourceLine, -+ std::ostream &stream ); -+ virtual void printFailureDetail( Exception *thrownException, -+ std::ostream &stream ); -+ virtual void printFailureWarning( std::ostream &stream ); -+ virtual void printStatistics( std::ostream &stream ); -+}; -+ -+/** insertion operator for easy output */ -+std::ostream &operator <<( std::ostream &stream, -+ TextTestResult &result ); -+ -+} // namespace CppUnit -+ -+#endif // CPPUNIT_TEXTTESTRESULT_H -+ -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: TextTestResult.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/callbackfunc.h 2008-12-10 20:46:06.881445744 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/callbackfunc.h 2008-02-27 17:15:00.000000000 +0100 -@@ -1 +1,25 @@ --dummy -+#ifndef _callbackfunc_h -+#define _callbackfunc_h -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+ // this is the entry point from the DLL back to the executable. -+ sal_Int32 CallbackDispatch(int x, ...); -+ -+//# void TestResult_startTest(hTestResult _pResult, hTest _pTest); -+//# void TestResult_addFailure( hTestResult _pResult, hTest _pTest, hException _pException ); -+//# void TestResult_addError( hTestResult _pResult, hTest _pTest, hException _pException ); -+//# void TestResult_endTest( hTestResult _pResult, hTest _pTest ); -+//# bool TestResult_shouldStop(hTestResult _pResult); -+//# void TestResult_addInfo( hTestResult _pResult, hTest _pTest, const char* _sInfo ); -+//# -+//# void TestResult_enterNode( hTestResult _pResult, const char* _sInfo ); -+//# void TestResult_leaveNode( hTestResult _pResult, const char* _sInfo ); -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: callbackfunc.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/emacsTestResult.hxx 2008-12-10 20:46:06.924792880 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/emacsTestResult.hxx 2008-12-10 20:42:43.000000000 +0100 -@@ -1 +1,82 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef cppunit_emacstestresult_h -+#define cppunit_emacstestresult_h -+ -+#include <cppunit/result/TestResult.h> -+#include <cppunit/result/TestResultCollector.h> -+#include <ostream> -+#include "testshl/getopt.hxx" -+ -+class Outputter; -+namespace CppUnit { -+ -+class SourceLine; -+class Exception; -+class Test; -+ -+/*! \brief Holds printable test result (DEPRECATED). -+ * \ingroup TrackingTestExecution -+ * -+ * deprecated Use class TextTestProgressListener and TextOutputter instead. -+ */ -+ class CPPUNIT_API emacsTestResult : public TestResult -+ -+/* ,public TestResultCollector*/ -+ { -+ GetOpt & m_aOptions; -+ // OptionHelper m_aOptionHelper; -+ TestResultCollector m_aResulter; -+ -+ public: -+ emacsTestResult(GetOpt & _aOptions); -+ -+ // virtual void addFailure( const TestFailure &failure ); -+ // virtual void startTest( Test *test ); -+ // virtual void endTest( Test *test ); -+ -+ virtual void print( Outputter &stream ); -+ -+ protected: -+ virtual void printHeader( Outputter &stream ); -+ // virtual void printTestLine( Outputter &stream, Test* pTest, std::string const& _sNodeName, std::string const& _sInfo); -+ virtual void printFailureLine( Outputter &stream, TestFailure* pFailure, std::string const& _sNodeName ); -+ }; -+ -+/** insertion operator for easy output */ -+// std::ostream &operator <<( std::ostream &stream, -+// emacsTestResult &result ); -+ -+} // namespace CppUnit -+ -+#endif // CPPUNIT_testshlTESTRESULT_H -+ -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: emacsTestResult.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/log.hxx 2008-12-10 20:46:07.004030154 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/log.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,106 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+#ifndef __QADEV_REGSCAN_LOG_HXX__ -+#define __QADEV_REGSCAN_LOG_HXX__ -+ -+#include <time.h> -+#include <rtl/ustring.hxx> -+#include <rtl/strbuf.hxx> -+#include <sal/types.h> -+#include <osl/thread.h> -+#include <osl/file.hxx> -+ -+#include <cppunit/nocopy.hxx> -+ -+//!io #include <iostream> -+#include <vector> -+ -+// using namespace std; -+ -+ -+/** -+ * Log derives the interface of the ::osl::File class ( is-a relation ). -+ * Its members (has-a relation) are the (full qualified)name of the log -+ * and an OStringBuffer which represents the content of the logfile. -+ * It provides the functionality of easy-to-use open and write logs -+ */ -+//: Log -+class Log : NOCOPY { -+ -+ ::osl::File* m_logfile; // fileobject -+ rtl::OUString m_logurl; // url of log -+ rtl::OStringBuffer m_buf; // content of log -+ -+ Log(); -+ -+public: -+ -+ //> c'tor -+ /** -+ * constructors argument is a full qualified UNC path -+ * @param OUString logfile ( full qualified UNC path ) -+ */ -+ Log( const rtl::OUString& logURL ) -+ : m_logfile( new ::osl::File( logURL )) -+ , m_logurl(logURL) -+ {} ///< c'tor -+ -+ //> d'tor -+ virtual ~Log() -+ { -+ m_logfile->close(); -+ delete( m_logfile ); -+ } ///< d'tor -+ -+ //> inline methods -+ // returns a reference to name instance -+ inline rtl::OUString getLogURL() { return m_logurl; } -+ inline rtl::OString getName() { return rtl::OUStringToOString( -+ m_logurl, RTL_TEXTENCODING_ASCII_US ); } -+ ///< inline methods -+ -+ // open logfile for overwrite (default) or append -+ ::osl::FileBase::RC open( sal_Bool append = sal_False ); -+ ::osl::FileBase::RC close() { return m_logfile->close(); } -+ -+ -+ // write methods without (default) or with echo on display -+ ::osl::FileBase::RC write( const sal_Char* buf, sal_Bool v = sal_False ); -+ ::osl::FileBase::RC write( const rtl::OString& buf, -+ sal_Bool v = sal_False ); -+ //! ::osl::FileBase::RC write( rtl::OStringBuffer& buf, -+ //! sal_Bool v = sal_False ); -+ ::osl::FileBase::RC write( const rtl::OUString& buf, -+ rtl_TextEncoding enc = RTL_TEXTENCODING_ASCII_US, -+ sal_Bool v = sal_False ); -+ -+}; ///:~ Log -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: log.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/optionhelper.hxx 2008-12-10 20:46:07.084399993 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/optionhelper.hxx 2008-12-10 20:42:43.000000000 +0100 -@@ -1 +1,98 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef optionhelper_hxx -+#define optionhelper_hxx -+ -+#include <string> -+ -+#include <sal/types.h> -+ -+#include "cppunit/nocopy.hxx" -+#include "testshl/getopt.hxx" -+#include "cppunit/joblist.hxx" -+ -+// ----------------------------------------------------------------------------- -+ -+typedef std::vector<rtl::OString> OStringList; -+ -+//!? Better: OptionHelper -+class OptionHelper : NOCOPY -+{ -+ GetOpt & m_aOption; -+ JobList m_aJobOnlyList; -+ JobList m_aJobExcludeList; -+ OStringList m_aJobFilter; -+ -+ std::string m_sProjectId; -+ std::string m_sBuildId; -+ -+ std::string getProjectId() const; -+ std::string getBuildId() const; -+ std::string createDateTag(std::string const& _sProjectId, std::string const& _sBuildId); -+ -+ void handleJobs(); -+public: -+ OptionHelper(GetOpt & _aOption) -+ :m_aOption(_aOption) -+ { -+ if (m_aOption.hasOpt("-projectid")) -+ m_sProjectId = m_aOption.getOpt("-projectid"); -+ -+ if (m_aOption.hasOpt("-buildid")) -+ m_sBuildId = m_aOption.getOpt("-buildid"); -+ -+ handleJobs(); -+ } -+ -+ static std::string integerToAscii(sal_Int32 nValue); -+ static std::string twoDigits(std::string const& _sValue); -+ -+ std::string createDateTag(); -+ bool showErrors(); -+ bool showTests(); -+ -+ JobList getJobOnlyList() {return m_aJobOnlyList;} -+ JobList getJobExcludeList() {return m_aJobExcludeList;} -+ -+ bool isAllowedToExecute(std::string const& _sNode, std::string const& _sName); -+ -+ bool isOnlyShowJobs() {return m_aOption.hasOpt("-onlyshowjobs") == sal_True ? true : false;} -+ GetOpt& getOptions() {return m_aOption;} -+ bool isVerbose() {return m_aOption.hasOpt("-verbose") == sal_True ? true : false;} -+ bool isOptionWhereAmI() {return m_aOption.hasOpt("-whereami") == sal_True ? true : false;} -+}; -+ -+// ----------------------------------------------------------------------------- -+ -+ -+#endif -+ -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: optionhelper.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/outputter.hxx 2008-12-10 20:46:07.186579135 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/outputter.hxx 2008-12-10 20:42:43.000000000 +0100 -@@ -1 +1,85 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// -+ -+#ifndef outputter_hxx -+#define outputter_hxx -+ -+#include <string> -+#include <ostream> -+#include <memory> -+#include "testshl/log.hxx" -+#include <sal/types.h> -+#include "cppunit/nocopy.hxx" -+ -+// #include <fstream> -+ -+class Outputter : NOCOPY -+{ -+ std::auto_ptr<Log> m_pLog; -+ std::ostream* m_pStream; -+ -+ void writeToAll(const sal_Char* _pStr); -+public: -+ class endl -+ { -+ char c; -+ public: -+ endl():c('\0'){} -+ }; -+public: -+ Outputter(Log * _pLog ) -+ :m_pLog(_pLog), -+ m_pStream(NULL) {} -+ -+ Outputter(std::ostream& _aStream) -+ :m_pLog(NULL), -+ m_pStream(&_aStream) {} -+ -+ ~Outputter(); -+ -+ void write(const sal_Char*); -+ void write(std::string const&); -+ void write(sal_Int32); -+ // void write(double); -+}; -+ -+Outputter& operator <<( Outputter &stream, const sal_Char* ); -+Outputter& operator <<( Outputter &stream, std::string const& ); -+Outputter& operator <<( Outputter &stream, sal_Int32 ); -+// Outputter& operator <<( Outputter &stream, double ); -+ -+Outputter& operator <<( Outputter &stream, Outputter::endl const&); -+ -+// Outputter& operator <<( Outputter &stream, const char* ); -+ -+#endif -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: outputter.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/result/testshlTestResult.h 2008-12-10 20:46:07.267386761 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/result/testshlTestResult.h 2008-12-10 20:42:43.000000000 +0100 -@@ -1 +1,72 @@ --dummy -+#ifndef cppunit_testshltestresult_h -+#define cppunit_testshltestresult_h -+ -+#include <map> -+#include <cppunit/result/TestResult.h> -+#include <cppunit/result/TestResultCollector.h> -+#include <ostream> -+#include "testshl/getopt.hxx" -+ -+class Outputter; -+ -+namespace CppUnit { -+ -+class SourceLine; -+class Exception; -+class Test; -+ -+struct ltstr -+{ -+ bool operator()(const CppUnit::Test* p1, const CppUnit::Test* p2) const -+ { -+ return p1 < p2; -+ } -+}; -+typedef std::map<CppUnit::Test*, bool, ltstr> TestPtrList; -+ -+ -+/*! \brief Holds printable test result (DEPRECATED). -+ * \ingroup TrackingTestExecution -+ * -+ * deprecated Use class TextTestProgressListener and TextOutputter instead. -+ */ -+ class CPPUNIT_API testshlTestResult : public TestResult -+ -+/* ,public TestResultCollector*/ -+ { -+ GetOpt & m_aOptions; -+ // OptionHelper m_aOptionHelper; -+ TestResultCollector m_aResulter; -+ -+ public: -+ testshlTestResult(GetOpt & _aOptions); -+ virtual ~testshlTestResult(); -+ -+ // virtual void addFailure( const TestFailure &failure ); -+ // virtual void startTest( Test *test ); -+ // virtual void endTest( Test *test ); -+ -+ virtual void print( Outputter &stream ); -+ -+ protected: -+ virtual void printHeader( Outputter &stream ); -+ -+ void printLines(Outputter &stream, HashMap & _aJobList); -+ void printFailedTests(Outputter &stream, TestPtrList &aFailedTests); -+ void printTestLines(Outputter &stream, TestPtrList &aFailedTests); -+ void printUnknownLines(Outputter &stream, HashMap & _aJobList); -+ -+ virtual void printTestLine( Outputter &stream, Test* pTest, std::string const& _sNodeName, std::string const& _sInfo); -+ virtual void printFailureLine( Outputter &stream, TestFailure* pFailure, std::string const& _sNodeName ); -+ virtual void printUnknownLine( Outputter &stream, std::string const& _sTestName); -+ }; -+ -+/** insertion operator for easy output */ -+ Outputter &operator <<( Outputter &stream, -+ testshlTestResult &result ); -+ -+} // namespace CppUnit -+ -+#endif // CPPUNIT_testshlTESTRESULT_H -+ -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit/result: testshlTestResult.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/signaltest.h 2008-12-10 20:46:07.349658445 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/signaltest.h 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,65 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef SIGNALTEST_H -+#define SIGNALTEST_H -+ -+#include <string> -+#include "cppunit/Test.h" -+#include <cppunit/autoregister/htestresult.h> -+ -+namespace CppUnit -+{ -+ -+class CPPUNIT_API SignalTest : public Test -+{ -+public: -+ -+ SignalTest( std::string const& Name ); -+ -+ ~SignalTest(); -+ -+ virtual void run(hTestResult pResult); -+ virtual int countTestCases() const; -+ std::string getName() const; -+ std::string toString() const; -+ -+private: -+ SignalTest( const SignalTest &other ); -+ SignalTest &operator=( const SignalTest &other ); -+ -+private: -+ const std::string m_sName; -+}; -+ -+} // namespace CppUnit -+ -+ +#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit: signaltest.h.dummy. ---- misc/cppunit-1.8.0/include/cppunit/simpleheader.hxx 2008-12-10 20:46:07.425092111 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/simpleheader.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,45 @@ +--- misc/cppunit-1.8.0/include/cppunit/tagvalues.hxx 2009-09-14 08:43:30.609375000 +0200 ++++ misc/build/cppunit-1.8.0/include/cppunit/tagvalues.hxx 2009-09-12 15:14:27.812500000 +0200 +@@ -1 +1,94 @@ -dummy +/************************************************************************* + * @@ -3016,124 +1196,10 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: signaltest.h.dummy. + * + ************************************************************************/ + -+#ifndef CPPUNIT_SIMPLEHEADER_HXX -+#define CPPUNIT_SIMPLEHEADER_HXX -+ -+// This file contains only the cppunit header files, for simplification. -+ -+#include <cppunit/TestFixture.h> -+#include <cppunit/TestCaller.h> -+#include <cppunit/TestSuite.h> -+#include <cppunit/TestAssert.h> -+#include <cppunit/autoregister/registertestfunction.h> -+#include <cppunit/extensions/HelperMacros.h> -+#include <cppunit/additionalfunc.hxx> -+#include <cppunit/cmdlinebits.hxx> -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit: simpleheader.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/stringhelper.hxx 2008-12-10 20:46:07.500255274 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/stringhelper.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,42 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef STRINGHELPER_HXX -+#define STRINGHELPER_HXX -+ -+#include <rtl/ustring.hxx> -+#include <rtl/string.hxx> -+ -+inline void operator <<= (rtl::OString& _rAsciiString, const rtl::OUString& _rUnicodeString) -+{ -+ _rAsciiString = rtl::OUStringToOString(_rUnicodeString,RTL_TEXTENCODING_ASCII_US); -+} -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit: stringhelper.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/taghelper.hxx 2008-12-10 20:46:07.588895546 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/taghelper.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,91 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef TAGHELPER_HXX -+#define TAGHELPER_HXX -+ -+#include <map> -+#include <sal/types.h> -+#include <cppunit/nocopy.hxx> -+ -+/* Tags are a general mechanism of extensible data arrays for parameter -+ * specification and property inquiry. In practice, tags are used in arrays, -+ * or chain of arrays. -+ * -+ */ -+ -+typedef sal_IntPtr Tag; -+typedef sal_IntPtr TagData; ++#ifndef TAGVALUES_H ++#define TAGVALUES_H + -+//# struct TagItem -+//# { -+//# Tag ti_Tag; /* identifies the type of data */ -+//# TagData ti_Data; /* type-specific data */ -+//# }; ++typedef unsigned long Tag; + +/* constants for Tag.ti_Tag, control tag values */ +#define TAG_DONE (Tag(0L)) /* terminates array of TagItems. ti_Data unused */ @@ -3147,95 +1213,29 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: stringhelper.hxx.dummy. +/* differentiates user tags from control tags */ +#define TAG_USER (Tag(1L<<31)) + -+// ----------------------------------------------------------------------------- -+class TagHelper /* : NOCOPY */ -+{ -+ typedef std::map<Tag, TagData> TagItems; -+ TagItems m_aTagItems; -+ -+public: -+ TagHelper(){} -+ void insert(Tag _nTag, TagData _nData) -+ { -+ m_aTagItems[_nTag] = _nData; -+ } -+ // const TagItems& get() const { return m_aTagItems; } -+ -+ TagData GetTagData(Tag _aTagValue, TagData _aDefaultValue = 0 /* NULL */) const -+ { -+ TagItems::const_iterator it = m_aTagItems.find(_aTagValue); -+ if (it != m_aTagItems.end()) -+ return (*it).second; -+ else -+ return _aDefaultValue; -+ } -+}; -+ -+#endif -+ -+ -Nur in misc/build/cppunit-1.8.0/include/cppunit: taghelper.hxx.dummy. ---- misc/cppunit-1.8.0/include/cppunit/tagvalues.hxx 2008-12-10 20:46:07.672788513 +0100 -+++ misc/build/cppunit-1.8.0/include/cppunit/tagvalues.hxx 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,81 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef TAGVALUES_H -+#define TAGVALUES_H -+ -+#include <cppunit/taghelper.hxx> + +#define TAG_TYPE (Tag(TAG_USER | (0x01L))) + +#define TAG_RESULT (TAG_USER | 0x100) -+ ++ +#define RESULT_START (Tag(TAG_RESULT | (0x02L))) +#define TAG_RESULT_PTR (Tag(TAG_RESULT | (0x03L))) +#define TAG_TEST_PTR (Tag(TAG_RESULT | (0x04L))) -+ ++ +#define RESULT_END (Tag(TAG_RESULT | (0x05L))) -+ ++ +#define RESULT_ADD_FAILURE (Tag(TAG_RESULT | (0x06L))) +#define RESULT_ADD_ERROR (Tag(TAG_RESULT | (0x07L))) -+ ++ +#define TAG_EXCEPTION (Tag(TAG_RESULT | (0x08L))) -+ ++ +#define RESULT_ADD_INFO (Tag(TAG_RESULT | (0x09L))) +#define TAG_INFO (Tag(TAG_RESULT | (0x0aL))) -+ ++ +#define RESULT_ENTER_NODE (Tag(TAG_RESULT | (0x0bL))) +#define RESULT_LEAVE_NODE (Tag(TAG_RESULT | (0x0cL))) +#define TAG_NODENAME (Tag(TAG_RESULT | (0x0dL))) -+ ++ +#define RESULT_SHOULD_STOP (Tag(TAG_RESULT | (0x0eL))) + + @@ -3257,13 +1257,12 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: taghelper.hxx.dummy. +#define DO_NOT_EXECUTE 666 +#define GO_EXECUTE 1 + -+typedef sal_Int32 ReturnValue; ++typedef long ReturnValue; + +#endif -Nur in misc/build/cppunit-1.8.0/include/cppunit: tagvalues.hxx.dummy. ---- misc/cppunit-1.8.0/include/makefile.mk 2008-12-10 20:46:08.530624271 +0100 -+++ misc/build/cppunit-1.8.0/include/makefile.mk 2008-07-14 07:25:14.000000000 +0200 -@@ -1 +1,52 @@ +--- misc/cppunit-1.8.0/makefile.mk 2009-09-12 15:20:48.343750000 +0200 ++++ misc/build/cppunit-1.8.0/makefile.mk 2009-09-12 14:15:35.328125000 +0200 +@@ -1 +1,33 @@ -dummy +#************************************************************************* +# @@ -3284,998 +1283,6 @@ Nur in misc/build/cppunit-1.8.0/include/cppunit: tagvalues.hxx.dummy. +# only, as published by the Free Software Foundation. +# +# OpenOffice.org 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 Lesser General Public License version 3 for more details -+# (a copy is included in the LICENSE file that accompanied this code). -+# -+# You should have received a copy of the GNU Lesser General Public License -+# version 3 along with OpenOffice.org. If not, see -+# <http://www.openoffice.org/license.html> -+# for a copy of the LGPLv3 License. -+# -+#************************************************************************* -+PRJ=.. -+# PRJINC=.. -+ -+PRJNAME=cppunit -+TARGET=inc -+ -+# --- Settings ----------------------------------------------------- -+ -+.INCLUDE : settings.mk -+ -+# --- Files -------------------------------------------------------- -+# --- Targets ------------------------------------------------------- -+ -+.INCLUDE : target.mk -+ -+.IF "$(ENABLE_PCH)"!="" -+ALLTAR : \ -+ $(SLO)$/precompiled.pch \ -+ $(SLO)$/precompiled_ex.pch -+ -+.ENDIF # "$(ENABLE_PCH)"!="" -+ -Nur in misc/build/cppunit-1.8.0/include: makefile.mk.dummy. ---- misc/cppunit-1.8.0/include/testshl/autoregisterhelper.hxx 2008-12-10 20:46:07.771638742 +0100 -+++ misc/build/cppunit-1.8.0/include/testshl/autoregisterhelper.hxx 2008-07-07 08:13:42.000000000 +0200 -@@ -1 +1,65 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef AUTOREGISTER_HXX -+#define AUTOREGISTER_HXX -+ -+#include <vector> -+#include <rtl/ustring.hxx> -+ -+#include <cppunit/autoregister/testfunc.h> -+ -+#include "dynamicregister.hxx" -+#include "getopt.hxx" -+ -+typedef std::vector<FktPtr> FunctionList; -+ -+// ----------------------------------------------------------------------------- -+class JobList; -+class AutomaticRegisterHelper : public DynamicLibraryHelper -+{ -+ FunctionList m_aFunctionList; -+ bool m_bLoadLibraryOK; -+ // GetOpt & m_aOptions; // use getOptions() instead! -+ -+public: -+ AutomaticRegisterHelper(rtl::OUString const& _sDLLName, GetOpt & _aOptions/* , JobList * _pJobList = NULL */ ); -+ -+ // FunctionList getFunctions(){return m_aFunctionList;} -+ void CallAll(hTestResult _hResult) const; -+ -+ /// @return true, if the given DLLName library could load and initialised. -+ bool isOkToStartTests() const {return m_bLoadLibraryOK;} -+ -+ virtual ~AutomaticRegisterHelper(); -+}; -+ -+#endif -+ -Nur in misc/build/cppunit-1.8.0/include/testshl: autoregisterhelper.hxx.dummy. ---- misc/cppunit-1.8.0/include/testshl/dynamicregister.hxx 2008-12-10 20:46:07.812458771 +0100 -+++ misc/build/cppunit-1.8.0/include/testshl/dynamicregister.hxx 2008-07-07 08:13:42.000000000 +0200 -@@ -1 +1,67 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef DYNAMICREGISTER_HXX -+#define DYNAMICREGISTER_HXX -+ -+#include <rtl/ustring.hxx> -+#include <osl/module.hxx> -+ -+#include "getopt.hxx" -+#include "cppunit/nocopy.hxx" -+ -+// ------------------------------------------------- -+ -+class DynamicLibraryHelper : NOCOPY -+{ -+protected: -+ osl::Module* m_pModule; -+ rtl::OUString m_suDLLName; -+ GetOpt & m_aOptions; -+ -+ GetOpt& getOptions() {return m_aOptions;} -+ -+public: -+ DynamicLibraryHelper(rtl::OUString const& _sDLLName, GetOpt & _aOptions); -+ virtual ~DynamicLibraryHelper(); -+ -+private: -+ void showFilenameIfVerbose(); -+ void realLoadLibrary(rtl::OUString const& _sLibToLoad); -+ void loadLibraryFromAbsolutePath(); -+ void loadLibraryFromLocalPath(); -+ -+ rtl::OUString m_suAbsolutePathFile; // file:///D:/foo/bar/library.dll -+ rtl::OUString m_suAbsolutePath; // file:///D:/foo/bar -+ rtl::OUString m_suFilename; // library.dll -+}; -+ -+#endif -+ -Nur in misc/build/cppunit-1.8.0/include/testshl: dynamicregister.hxx.dummy. ---- misc/cppunit-1.8.0/include/testshl/filehelper.hxx 2008-12-10 20:46:07.901872218 +0100 -+++ misc/build/cppunit-1.8.0/include/testshl/filehelper.hxx 2008-07-07 08:13:42.000000000 +0200 -@@ -1 +1,50 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef FILEHELPER_HXX -+#define FILEHELPER_HXX -+ -+#include <string> -+#include <rtl/ustring.hxx> -+#include <rtl/string.hxx> -+#include <cppunit/cmdlinebits.hxx> -+#include "getopt.hxx" -+ -+namespace FileHelper -+{ -+ -+ std::string getTempPath(); -+ rtl::OUString convertPath( rtl::OUString const& _suSysPath ); -+ rtl::OUString convertPath( rtl::OString const& sysPth ); -+ CmdLineBits createFlags( GetOpt & _aOptions ); -+ -+} -+#endif -+ -Nur in misc/build/cppunit-1.8.0/include/testshl: filehelper.hxx.dummy. ---- misc/cppunit-1.8.0/include/testshl/getopt.hxx 2008-12-10 20:46:07.985642414 +0100 -+++ misc/build/cppunit-1.8.0/include/testshl/getopt.hxx 2008-07-07 08:13:42.000000000 +0200 -@@ -1 +1,335 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+/************************************************************************* -+#* class GetOpt -+#* -+#* -+#* Implementation getopt.cxx -+#* -+#* Description: class to reflect the commandline options. In addition -+#* it provides functinality to get options from an inifile -+#* ( getIniOptions()), evaluate, test and get options -+#* ( hasOpt(), getOpt() ) and display an usage screen -+#* formated in dependance of the given optionset, as well -+#* as display a status about activ options -+#* -+#* -+#* further descriptions: -+#* -+#* the constructor is called with two parameters: -+#* char* argv[] and char* optionSet[], -+#* the commandline and the available set of options. -+#* Valid optionstrings have to start with a minus '-', otherwise it will -+#* be ignored. Optionstrings consist of one or two arguments divided by a -+#* comma separator, where the second (optional) argument is a short -+#* description of the option, called hint. It will be automatically -+#* formated and displayed in the usage screen if available. -+#* The first argument of the optionstring can consist of two sections, -+#* the name and the optional necessity and format. -+#* The name of the option will be the starting minus followed by a string -+#* like "-src". -+#* One section options will be treated as flag (see '-v' option in example). -+#* The second section consist of '=' or ':' which defines the necessity, -+#* in combination with a character 's' for string or 'n' for numeric and -+#* an optional '@' standing for 'vector of'. -+#* '=' means this option needs an argument, ':' means can take an argument -+#* followed by 's' is, as mentioned above, a single string paramenter, -+#* followed by a 's' in combination with '@' means this argument consists -+#* of one string or a vector of strings separated by commas -+#* -+#* an example for an optionset: -+#* -+#* static char* optionSet[] = { -+#* "-src=s, release or version of sources", -+#* "-ini=s, ini file with additional options", -+#* "-db=s, path of type description database", -+#* "-inPth=s, source path of component descriptions", -+#* "-outPth=s, destination path for testcases", -+#* "-logPth=s, destination path for logging", -+#* "-mdl=s@, name(s) of module(s) to generate", -+#* "-v, enable verbose screen messages", -+#* "-dbg, enable debug messages", -+#* "-h:s, display help or help on option", -+#* "-help:s, see -h", -+#* NULL -+#* }; -+#* -+#* As seen a GetOpt class object will be created via: -+#* GetOpt myOptions( argv, optionSet ); -+#* -+*************************************************************************/ -+#ifndef __QADEV_REGSCAN_GETOPT_HXX__ -+#define __QADEV_REGSCAN_GETOPT_HXX__ -+ -+#include <osl/file.hxx> -+#include <sal/types.h> -+#include <rtl/strbuf.hxx> -+ -+ -+#include <rtl/string.hxx> -+ -+// #ifndef __QADEV_REGSCAN_UTIL_HXX__ -+// #include "inc/util.hxx" -+// #endif -+ -+ -+#ifdef SOLARIS -+#include <sys/time.h> -+#endif -+ -+#include <iostream> -+#include <hash_map> -+// #include "rsexception.hxx" -+ -+// using namespace std; -+ -+struct gstr { -+ sal_Bool operator()( const rtl::OString& oStr1, -+ const rtl::OString& oStr2 ) const { -+ return( oStr1 == oStr2 ); -+ } -+}; -+ -+struct ghstr -+{ -+ sal_uInt32 operator()( const rtl::OString& str ) const { -+ return str.hashCode(); -+ } -+}; -+ -+struct frmt { -+ sal_uInt32 fCol; -+ sal_uInt32 sCol; -+ sal_uInt32 len; -+}; -+ -+typedef std::hash_map< rtl::OString, std::vector< rtl::OString >, ghstr, gstr > -+ optHashMap; -+ -+typedef frmt sFormat; -+typedef sal_uInt16 optType; -+ -+#define OT_INVALID 0x0000 -+#define OT_BOOL 0x0001 -+#define OT_STRING 0x0002 -+#define OT_NUMBER 0x0004 -+#define OT_SINGLE 0x0010 -+#define OT_MULTI 0x0020 -+#define OT_OPTIONAL 0x0100 -+ -+//: Option -+class OptDsc { -+ -+ rtl::OString m_name; -+ rtl::OString m_hint; -+ rtl::OString m_legend; -+ optType m_type; -+ -+ /** -+ * analysis of optionstring and creation of option description class -+ * @param const rtl::OString& opt = optionstring to analyse -+ * @return void -+ */ -+ void createOptDsc( const rtl::OString& opt ); -+ -+ /** -+ * splitting of an optionstring and creation of a tokenvector -+ * in dependance of a charset -+ * -+ * @param const rtl::OString& opt = optionstring to split -+ * @param const rtl::OString& cSet = delimiter charset -+ * @param vector< rtl::OString >& optLine = tokenvector to fill -+ * -+ * @return void -+ */ -+ void split( const rtl::OString& opt, const rtl::OString& charSet, -+ std::vector< rtl::OString >& optLine ); -+ -+ /** -+ * private default c'tor, copy c'tor and assignment operator -+ * to get compiler errors on dumb effords -+ */ -+ OptDsc(); -+ OptDsc( OptDsc& ); -+ OptDsc& operator = ( OptDsc& ); -+ -+public: -+ -+ //> c'tor -+ OptDsc( const rtl::OString& opt ) -+ : m_name(), -+ m_hint(), -+ m_legend(), -+ m_type( 0 ) { -+ -+ createOptDsc( opt ); -+ } ///< c'tor -+ -+ //> d'tor -+ ~OptDsc(){} -+ -+ /** -+ * returns the name of this option -+ * @return rtl::OString& -+ */ -+ inline rtl::OString& getName() { return m_name; } -+ /** -+ * returns the hint of this option -+ * @return rtl::OString& -+ */ -+ inline rtl::OString& getHint() { return m_hint; } -+ /** -+ * returns the legend of this option -+ * @return rtl::OString& -+ */ -+ inline rtl::OString& getLegend() { return m_legend; } -+ -+ /** -+ * returns the type of this option -+ * @return optType -+ */ -+ inline optType getType() { return m_type; } -+ -+ -+ inline sal_Bool isFlag() { -+ return( ( m_type &~ 0xfffe ) == OT_BOOL ) ? sal_True : sal_False; -+ } -+ inline sal_Bool isString() { -+ return( ( m_type &~ 0xfffd ) == OT_STRING ) ? sal_True : sal_False; -+ } -+ inline sal_Bool isNumber() { -+ return( ( m_type &~ 0xfffb ) == OT_NUMBER ) ? sal_True : sal_False; -+ } -+ inline sal_Bool isSingle() { -+ return( ( m_type &~ 0xffef ) == OT_SINGLE ) ? sal_True : sal_False; -+ } -+ inline sal_Bool isMulti() { -+ return( ( m_type &~ 0xffdf ) == OT_MULTI ) ? sal_True : sal_False; -+ } -+ inline sal_Bool isOptional() { -+ return( ( m_type &~ 0xfeff ) == OT_OPTIONAL ) ? sal_True : sal_False; -+ } -+ -+}; ///:~ Option -+ -+class Exception -+{ -+ rtl::OString m_sAsciiMessage; -+public: -+ Exception(); -+ virtual ~Exception(){} -+ -+ Exception(char const* sAsciiMessage); -+ Exception(rtl::OString const& sAsciiMessage); -+ -+ virtual rtl::OUString message() const; -+ virtual char const* what() const; -+}; -+ -+class ValueNotFoundException : public Exception -+{ -+public: -+ ValueNotFoundException(); -+ ValueNotFoundException(char const* sExit); -+}; -+ -+//: GetOpt -+class GetOpt { -+ -+ rtl::OString m_prgname; -+ rtl::OString m_vardelim; -+ std::vector< rtl::OString > m_cmdline; -+ std::vector< rtl::OString > m_param; -+ std::vector< rtl::OString > m_varvec; -+ std::vector< OptDsc* > m_optionset; -+ optHashMap m_opthash; -+ -+ //> private methods -+ void initialize( char* cmdLine[], char const * optSet[] ); -+ void createCmdLineOptions(); -+ sal_uInt32 getMaxNameLength(); -+ sal_uInt32 getMaxLegendLength(); -+ const rtl::OString optDsc2Str( OptDsc* optDsc , sFormat frm ); -+ void tokenize( const rtl::OString& opt, const rtl::OString& charSet, -+ std::vector< rtl::OString >& optLine, sal_Bool strip = sal_True ); -+ ///< private methods -+ -+ GetOpt(); -+ GetOpt( GetOpt& ); -+ GetOpt& operator = ( GetOpt& ); -+ -+public: -+ -+ //> c'tor -+ GetOpt( char* cmdLine[], char const * optSet[], rtl::OString varDelim = -+ rtl::OString( "$" ) ) -+ : m_vardelim( varDelim ) { -+ -+ initialize( cmdLine, optSet ); -+ createCmdLineOptions(); -+ } ///< c'tor -+ -+ //> d'tor -+ ~GetOpt(); -+ ///< d'tor -+ -+ //> inline methods -+ inline std::vector< rtl::OString >* getCmdLine() { return &m_cmdline; } -+ inline optHashMap* getOptions() { return ( &m_opthash ); } -+ inline rtl::OString& getName() { return m_prgname; } -+ inline rtl::OString& getFirstParam() { return *(m_param.begin()); } -+ inline std::vector< rtl::OString >& getParams() { return m_param; } -+ rtl::OString& getOpt( const rtl::OString& opt ); -+ void rmvOpt( rtl::OString& opt ) { -+ m_opthash.erase( opt ); -+ } -+ inline std::vector< rtl::OString >& getOptVec( const rtl::OString& opt ) { -+ return m_opthash[ opt ]; -+ } -+ ///< inline methods -+ -+ -+ sal_Bool exist( rtl::OString& opt ); -+ sal_Bool hasParam( std::vector< rtl::OString >::iterator iter ); -+ sal_Bool hasVars( void ); -+ sal_Bool evaluateOpt( std::vector< rtl::OString >::iterator iter ); -+ OptDsc* getOptDsc( rtl::OString& opt ); -+ sal_Bool hasOpt( const rtl::OString& opt ) const; -+ ::osl::FileBase::RC getIniOptions( rtl::OString iniPth ); -+ void createOpt( rtl::OString& optdsc ); -+ void str2Opt( rtl::OString iOpts ); -+ void addOpt( rtl::OString& opt, sal_Bool evaluate = sal_True ); -+ void replVars( void ); -+ void showUsage( void ); -+ void printStatus( void ); -+ -+}; ///:~ GetOpt -+#endif -Nur in misc/build/cppunit-1.8.0/include/testshl: getopt.hxx.dummy. ---- misc/cppunit-1.8.0/include/testshl/log.hxx 2008-12-10 20:46:08.078572827 +0100 -+++ misc/build/cppunit-1.8.0/include/testshl/log.hxx 2008-07-07 08:13:42.000000000 +0200 -@@ -1 +1,116 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************* -+ -+ Source Code Control System - Header -+ -+ $Header$ -+ -+ Source Code Control System - Update -+ -+*************************************************************************/ -+#ifndef __QADEV_REGSCAN_LOG_HXX__ -+#define __QADEV_REGSCAN_LOG_HXX__ -+ -+#include <time.h> -+#include <rtl/ustring.hxx> -+#include <rtl/strbuf.hxx> -+#include <sal/types.h> -+#include <osl/thread.h> -+#include <osl/file.hxx> -+ -+//!io #include <iostream> -+#include <vector> -+ -+// using namespace std; -+ -+ -+/** -+ * Log derives the interface of the ::osl::File class ( is-a relation ). -+ * Its members (has-a relation) are the (full qualified)name of the log -+ * and an OStringBuffer which represents the content of the logfile. -+ * It provides the functionality of easy-to-use open and write logs -+ */ -+//: Log -+class Log { -+ -+ ::osl::File* m_logfile; // fileobject -+ rtl::OUString m_logurl; // url of log -+ rtl::OStringBuffer m_buf; // content of log -+ -+ Log(); -+ -+public: -+ -+ //> c'tor -+ /** -+ * constructors argument is a full qualified UNC path -+ * @param OUString logfile ( full qualified UNC path ) -+ */ -+ Log( const rtl::OUString& logURL ) -+ : m_logfile( new ::osl::File( logURL )) -+ , m_logurl(logURL) -+ {} ///< c'tor -+ -+ //> d'tor -+ virtual ~Log() { -+ m_logfile->close(); -+ delete( m_logfile ); -+ } ///< d'tor -+ -+ //> inline methods -+ // returns a reference to name instance -+ inline rtl::OUString getLogURL() { return m_logurl; } -+ inline rtl::OString getName() { return rtl::OUStringToOString( -+ m_logurl, RTL_TEXTENCODING_ASCII_US ); } -+ ///< inline methods -+ -+ // open logfile for overwrite (default) or append -+ ::osl::FileBase::RC open( sal_Bool append = sal_False ); -+ ::osl::FileBase::RC close() { return m_logfile->close(); } -+ -+ -+ // write methods without (default) or with echo on display -+ ::osl::FileBase::RC write( const sal_Char* buf, sal_Bool v = sal_False ); -+ ::osl::FileBase::RC write( const rtl::OString& buf, -+ sal_Bool v = sal_False ); -+ // ::osl::FileBase::RC write( rtl::OStringBuffer const& buf, -+ // sal_Bool v = sal_False ); -+ ::osl::FileBase::RC write( const rtl::OUString& buf, -+ rtl_TextEncoding enc = RTL_TEXTENCODING_ASCII_US, -+ sal_Bool v = sal_False ); -+ -+}; ///:~ Log -+ -+Log &operator <<( Log &_aLog, const sal_Char * _sValue ); -+Log &operator <<( Log &_aLog, rtl::OString const& _sValue ); -+Log &operator <<( Log &_aLog, rtl::OUString const& _sValue ); -+// Log &operator <<( Log &_aLog, rtl::OStringBuffer const& _sValue ); -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/testshl: log.hxx.dummy. ---- misc/cppunit-1.8.0/include/testshl/tresstatewrapper.h 2008-12-10 20:46:08.171096366 +0100 -+++ misc/build/cppunit-1.8.0/include/testshl/tresstatewrapper.h 2008-07-07 08:13:42.000000000 +0200 -@@ -1 +1,66 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef TESTSTATEWRAPPER_H -+#define TESTSTATEWRAPPER_H -+ -+#ifdef _RTL_TRES_H_ -+#error "This is old code, please remove the include of rtl/tres.h" -+#endif -+ -+#include <sal/types.h> -+#include "cppunit/autoregister/registertestfunction.h" -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+// typedef void* hTestResult; -+typedef hTestResult rtlTestResult; -+ -+// ----------------------------------------------------------------------------- -+void c_rtl_tres_state_start(hTestResult _aResult, const sal_Char* _pName); -+void c_rtl_tres_state_end(hTestResult _aResult, const sal_Char* _pName); -+ -+// ----------------------------------------------------------------------------- -+// the old test state function, which here convert all values for using with the -+// new testshl tool -+ -+sal_Bool SAL_CALL c_rtl_tres_state( -+ hTestResult pResult, -+ sal_Bool bSuccess, -+ char const * pTestMsg, -+ char const * pFuncName); -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/testshl: tresstatewrapper.h.dummy. ---- misc/cppunit-1.8.0/include/testshl/tresstatewrapper.hxx 2008-12-10 20:46:08.253163483 +0100 -+++ misc/build/cppunit-1.8.0/include/testshl/tresstatewrapper.hxx 2008-12-10 20:42:43.000000000 +0100 -@@ -1 +1,60 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef teststatewrapper_hxx -+#define teststatewrapper_hxx -+ -+#include <cppunit/nocopy.hxx> -+#include <sal/types.h> -+ -+#include <cppunit/simpleheader.hxx> -+#include <cppunit/autoregister/callbackfunc_fktptr.h> -+ -+// This is a hack, because it's possible that the testshl directory doesn't exist. -+#ifdef LOAD_TRESSTATEWRAPPER_LOCAL -+#include "tresstatewrapper.h" -+#else -+#include <testshl/tresstatewrapper.h> -+#endif -+ -+// ----------------------------------------------------------------------------- -+// helper class to mark the start off old test code -+// the name is need in the test result generator -+class rtl_tres_state_start : NOCOPY -+{ -+ const sal_Char* m_pName; -+ hTestResult m_aResult; -+public: -+ rtl_tres_state_start(hTestResult _aResult, const sal_Char* _pName); -+ ~rtl_tres_state_start(); -+}; -+ -+#endif -+ -Nur in misc/build/cppunit-1.8.0/include/testshl: tresstatewrapper.hxx.dummy. ---- misc/cppunit-1.8.0/include/testshl/versionhelper.hxx 2008-12-10 20:46:08.329903269 +0100 -+++ misc/build/cppunit-1.8.0/include/testshl/versionhelper.hxx 2008-07-07 08:13:42.000000000 +0200 -@@ -1 +1,87 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef AUTOREGISTER_HXX -+#define AUTOREGISTER_HXX -+ -+#include <stdio.h> -+#include <vector> -+#include <ostream> -+#include <iostream> -+ -+#include <rtl/ustring.hxx> -+#include <rtl/string.hxx> -+ -+#include "dynamicregister.hxx" -+ -+// ----------------------------------------------------------------------------- -+// ---------------------------------- Version ---------------------------------- -+// ----------------------------------------------------------------------------- -+// extern "C" const struct VersionInfo *GetVersionInfo(); -+ -+// this is a Hack, but at the moment, no change to handle this behaviour better. -+struct VersionInfo -+{ -+ const char* pTime; -+ const char* pDate; -+ const char* pUpd; -+ const char* pMinor; -+ const char* pBuild; -+ const char* pInpath; -+}; -+typedef const struct VersionInfo* (*FktGetVersionInfoPtr)(); -+ -+// ----------------------------------------------------------------------------- -+class VersionHelper : public DynamicLibraryHelper -+{ -+ const VersionInfo *m_pInfo; -+ -+public: -+ VersionHelper(rtl::OUString const& _sDLLName, GetOpt & _aOptions); -+// void print(std::ostream& _aStream); -+ void printall(FILE*); -+ -+ rtl::OString getTime() const; -+ rtl::OString getDate() const; -+ rtl::OString getUpd() const; -+ rtl::OString getMinor() const; -+ rtl::OString getBuild() const; -+ rtl::OString getInpath() const; -+ -+ bool isOk() const; -+}; -+ -+/** insertion operator for easy output */ -+// std::ostream &operator <<( std::ostream &stream, -+// VersionHelper &version ); -+ -+ -+#endif -+ -Nur in misc/build/cppunit-1.8.0/include/testshl: versionhelper.hxx.dummy. ---- misc/cppunit-1.8.0/include/testshl/winstuff.hxx 2008-12-10 20:46:08.412541288 +0100 -+++ misc/build/cppunit-1.8.0/include/testshl/winstuff.hxx 2008-07-16 14:09:24.000000000 +0200 -@@ -1 +1,44 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef WINSTUFF_HXX -+#define WINSTUFF_HXX -+ -+#include <sal/types.h> -+ -+// Isolated into own compilation unit, to avoid interference with -+// windows headers -+void WinDebugBreak(); -+void WinSleep( sal_uInt32 sec ); -+sal_uInt32 WinGetCurrentProcessId(); -+void WinTerminateApp( sal_uInt32 dwPID, sal_uInt32 dwTimeout ); -+ -+#endif -Nur in misc/build/cppunit-1.8.0/include/testshl: winstuff.hxx.dummy. ---- misc/cppunit-1.8.0/makefile.mk 2008-12-10 20:46:08.628149187 +0100 -+++ misc/build/cppunit-1.8.0/makefile.mk 2008-12-09 14:43:50.000000000 +0100 -@@ -1 +1,35 @@ --dummy -+#************************************************************************* -+# -+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+# -+# Copyright 2008 by Sun Microsystems, Inc. -+# -+# OpenOffice.org - a multi-platform office productivity suite -+# -+# $RCSfile$ -+# -+# $Revision$ -+# -+# This file is part of OpenOffice.org. -+# -+# OpenOffice.org is free software: you can redistribute it and/or modify -+# it under the terms of the GNU Lesser General Public License version 3 -+# only, as published by the Free Software Foundation. -+# -+# OpenOffice.org 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 Lesser General Public License version 3 for more details @@ -4289,18 +1296,14 @@ Nur in misc/build/cppunit-1.8.0/include/testshl: winstuff.hxx.dummy. +#************************************************************************* + +target: -+ cd src$/win32 && $(MAKE) $(MFLAGS) $(CALLMACROS) -+ cd src$/result && $(MAKE) $(MFLAGS) $(CALLMACROS) -+ cd src$/cppunit && $(MAKE) $(MFLAGS) $(CALLMACROS) -Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. ++ cd src && $(MAKE) $(MFLAGS) $(CALLMACROS) --- misc/cppunit-1.8.0/src/cppunit/Asserter.cpp 2002-03-27 20:04:02.000000000 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/Asserter.cpp 2008-02-27 17:21:16.000000000 +0100 -@@ -1,52 +1,76 @@ ++++ misc/build/cppunit-1.8.0/src/cppunit/Asserter.cpp 2009-09-12 14:15:35.343750000 +0200 +@@ -1,52 +1,72 @@ #include <cppunit/Asserter.h> #include <cppunit/NotEqualException.h> -- -+#include <cppunit/stringhelper.hxx> +- namespace CppUnit { - @@ -4349,7 +1352,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. - SourceLine sourceLine, - std::string additionalMessage ) +failIf( bool shouldFail, -+ rtl::OUString const& _suMessage, ++ const char* _suMessage, + SourceLine const& location ) { - throw NotEqualException( expected, @@ -4358,10 +1361,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. - additionalMessage ); + if ( shouldFail ) + { -+ rtl::OString sMessage; -+ sMessage <<= _suMessage; -+ std::string message; -+ message = sMessage.getStr(); ++ std::string message( _suMessage ); + fail( message, location ); + } +} @@ -4394,7 +1394,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. if ( shouldFail ) failNotEqual( expected, actual, sourceLine, additionalMessage ); --- misc/cppunit-1.8.0/src/cppunit/Exception.cpp 2001-10-19 20:37:24.000000000 +0200 -+++ misc/build/cppunit-1.8.0/src/cppunit/Exception.cpp 2008-02-27 17:21:46.000000000 +0100 ++++ misc/build/cppunit-1.8.0/src/cppunit/Exception.cpp 2009-09-12 14:15:35.359375000 +0200 @@ -19,20 +19,19 @@ /// Construct the exception @@ -4437,7 +1437,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. m_sourceLine( fileName, lineNumber ) { --- misc/cppunit-1.8.0/src/cppunit/NotEqualException.cpp 2001-10-06 00:27:14.000000000 +0200 -+++ misc/build/cppunit-1.8.0/src/cppunit/NotEqualException.cpp 2008-02-27 17:21:34.000000000 +0100 ++++ misc/build/cppunit-1.8.0/src/cppunit/NotEqualException.cpp 2009-09-12 14:15:35.359375000 +0200 @@ -3,17 +3,17 @@ namespace CppUnit { @@ -4482,7 +1482,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. lineNumber, fileName ), --- misc/cppunit-1.8.0/src/cppunit/SourceLine.cpp 2001-10-06 00:27:14.000000000 +0200 -+++ misc/build/cppunit-1.8.0/src/cppunit/SourceLine.cpp 2008-02-27 17:23:14.000000000 +0100 ++++ misc/build/cppunit-1.8.0/src/cppunit/SourceLine.cpp 2009-09-12 14:15:35.375000000 +0200 @@ -10,10 +10,10 @@ } @@ -4499,7 +1499,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } --- misc/cppunit-1.8.0/src/cppunit/TestAssert.cpp 2001-10-07 21:36:47.000000000 +0200 -+++ misc/build/cppunit-1.8.0/src/cppunit/TestAssert.cpp 2008-02-27 17:23:24.000000000 +0100 ++++ misc/build/cppunit-1.8.0/src/cppunit/TestAssert.cpp 2009-09-12 14:15:35.390625000 +0200 @@ -1,4 +1,4 @@ -#if HAVE_CMATH +#ifdef HAVE_CMATH @@ -4588,8 +1588,8 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. --- misc/cppunit-1.8.0/src/cppunit/TestCase.cpp 2002-03-25 23:35:34.000000000 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/TestCase.cpp 2008-02-27 17:21:24.000000000 +0100 -@@ -1,70 +1,141 @@ ++++ misc/build/cppunit-1.8.0/src/cppunit/TestCase.cpp 2009-09-12 15:14:46.515625000 +0200 +@@ -1,74 +1,142 @@ +#include <stdlib.h> #include <cppunit/Portability.h> #include <typeinfo> @@ -4598,11 +1598,9 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. #include "cppunit/TestCase.h" #include "cppunit/Exception.h" -#include "cppunit/TestResult.h" -+// #include "cppunit/TestResult.h" - -+#include <cppunit/autoregister/callbackfunc_fktptr.h> -+#include <cppunit/tagvalues.hxx> -+#include <cppunit/externcallbackfunc.hxx> +- ++#include "cppunit/tagvalues.hxx" ++#include "cppunit/externcallbackfunc.hxx" namespace CppUnit { @@ -4612,22 +1610,72 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. -{ - return new TestResult; -} -+//# CppUnit::TestResult* +- +- +-/// Run the test and catch any exceptions that are triggered by it +-void +-TestCase::run( TestResult *result ) +-{ +- result->startTest(this); +- +- try { +- setUp(); +- +- try { +- runTest(); +- } +- catch ( Exception &e ) { +- Exception *copy = e.clone(); +- result->addFailure( this, copy ); +- } +- catch ( std::exception &e ) { +- result->addError( this, new Exception( e.what() ) ); +- } +- catch (...) { +- Exception *e = new Exception( "caught unknown exception" ); +- result->addError( this, e ); +- } +- +- try { +- tearDown(); +- } +- catch (...) { +- result->addError( this, new Exception( "tearDown() failed" ) ); +- } +- } +- catch (...) { +- result->addError( this, new Exception( "setUp() failed" ) ); +- } +- +- result->endTest( this ); +-} +- +- +-/// A default run method +-TestResult * +-TestCase::run() +-{ +- TestResult *result = defaultResult(); +- +- run (result); +- return result; +-} ++//# CppUnit::TestResult* +//# TestCase::defaultResult() -+//# { -+//# return new TestResult; -+//# } - - - /// Run the test and catch any exceptions that are triggered by it -+//# void ++//# { ++//# return new TestResult; ++//# } ++ ++ ++/// Run the test and catch any exceptions that are triggered by it ++//# void +//# TestCase::run( TestResult *result ) +//# { +//# result->startTest(this); -+//# ++//# +//# try { +//# setUp(); -+//# ++//# +//# try { +//# runTest(); +//# } @@ -4642,7 +1690,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. +//# Exception *e = new Exception( "caught unknown exception" ); +//# result->addError( this, e ); +//# } -+//# ++//# +//# try { +//# tearDown(); +//# } @@ -4653,132 +1701,97 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. +//# catch (...) { +//# result->addError( this, new Exception( "setUp() failed" ) ); +//# } -+//# ++//# +//# result->endTest( this ); +//# } +//# + - void --TestCase::run( TestResult *result ) ++void +TestCase::run( hTestResult result ) - { -- result->startTest(this); -- -- try { -- setUp(); -+ Test* pTest = this; - -- try { -- runTest(); -- } -- catch ( Exception &e ) { -- Exception *copy = e.clone(); -- result->addFailure( this, copy ); -- } -- catch ( std::exception &e ) { -- result->addError( this, new Exception( e.what() ) ); -- } -- catch (...) { -- Exception *e = new Exception( "caught unknown exception" ); -- result->addError( this, e ); -- } -- -- try { -- tearDown(); -- } -- catch (...) { -- result->addError( this, new Exception( "tearDown() failed" ) ); -- } -- } -- catch (...) { -- result->addError( this, new Exception( "setUp() failed" ) ); -- } -- -- result->endTest( this ); ++{ ++ CppUnit::Test* pTest = this; ++ + // if (signalCheck(pTest->getName()) == HAS_SIGNAL) -+ sal_Int32 nValue = (pCallbackFunc)(0 /* NULL */, TAG_TYPE, EXECUTION_CHECK, TAG_RESULT_PTR, result, TAG_NODENAME, pTest->getName().c_str(), TAG_DONE); ++ long nValue = (pCallbackFunc)(0 /* NULL */, TAG_TYPE, EXECUTION_CHECK, TAG_RESULT_PTR, result, TAG_NODENAME, pTest->getName().c_str(), TAG_DONE); + if (nValue == DO_NOT_EXECUTE) + { + return; + } -+ ++ + // (pTestResult_StartTest)(result, pTest); + (pCallbackFunc)(0 /* NULL */, TAG_TYPE, RESULT_START, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_DONE); + -+ try ++ try + { + setUp(); -+ -+ try ++ ++ try + { + runTest(); + // (pTestResult_AddInfo)(result, pTest, "PASSED"); + (pCallbackFunc)(0 /* NULL */, TAG_TYPE, RESULT_ADD_INFO, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_INFO, "PASSED", TAG_DONE); + } -+ catch ( StubException &) ++ catch ( CppUnit::StubException &) + { + (pCallbackFunc)(0 /* NULL */, TAG_TYPE, RESULT_ADD_INFO, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_INFO, "STUB", TAG_DONE ); + } -+ catch ( Exception &e ) ++ catch ( CppUnit::Exception &e ) + { -+ Exception *copy = e.clone(); ++ CppUnit::Exception *copy = e.clone(); + // (pTestResult_AddFailure)( result, pTest, copy ); + (pCallbackFunc)(0 /* NULL */, TAG_TYPE, RESULT_ADD_FAILURE, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_EXCEPTION, copy, TAG_DONE ); + } -+ catch ( std::exception &e ) ++ catch ( std::exception &e ) + { + // (pTestResult_AddError)( result, pTest, new Exception( e.what() ) ); -+ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_ERROR, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_EXCEPTION, new Exception( e.what() ), TAG_DONE ); ++ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_ERROR, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_EXCEPTION, new CppUnit::Exception( e.what() ), TAG_DONE ); + } -+ catch (...) ++ catch (...) + { -+ Exception *e = new Exception( "caught unknown exception" ); ++ CppUnit::Exception *e = new CppUnit::Exception( "caught unknown exception" ); + // (pTestResult_AddError)( result, pTest, e ); + (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_ERROR, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_EXCEPTION, e, TAG_DONE ); + } -+ -+ try ++ ++ try + { + tearDown(); + } -+ catch (...) ++ catch (...) + { + // (pTestResult_AddError)( result, pTest, new Exception( "tearDown() failed" ) ); -+ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_ERROR, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_EXCEPTION, new Exception( "tearDown() failed" ), TAG_DONE ); ++ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_ERROR, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_EXCEPTION, new CppUnit::Exception( "tearDown() failed" ), TAG_DONE ); + } + } -+ catch (...) ++ catch (...) + { + // (pTestResult_AddError)( result, pTest, new Exception( "setUp() failed" ) ); -+ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_ERROR, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_EXCEPTION, new Exception( "setUp() failed" ), TAG_DONE ); ++ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_ERROR, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_EXCEPTION, new CppUnit::Exception( "setUp() failed" ), TAG_DONE ); + } -+ ++ + // (pTestResult_EndTest)( result, pTest ); + (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_END, TAG_RESULT_PTR, result, TAG_TEST_PTR, pTest, TAG_DONE ); - } - -- - /// A default run method --TestResult * --TestCase::run() --{ -- TestResult *result = defaultResult(); -- -- run (result); -- return result; --} ++} ++ ++/// A default run method +//# TestResult * +//# TestCase::run() +//# { +//# TestResult *result = defaultResult(); -+//# ++//# +//# run (result); +//# return result; +//# } - /// All the work for runTest is deferred to subclasses -@@ -77,7 +148,7 @@ +-/// All the work for runTest is deferred to subclasses +-void ++/// All the work for runTest is deferred to subclasses ++void + TestCase::runTest() + { + } +@@ -77,7 +145,7 @@ /** Constructs a test case. * \param name the name of the TestCase. **/ @@ -4787,8 +1800,49 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. : m_name(name) { } -@@ -133,3 +204,8 @@ - +@@ -100,25 +168,25 @@ + + + /// Returns a count of all the tests executed +-int ++int + TestCase::countTestCases() const +-{ +- return 1; ++{ ++ return 1; + } + + + /// Returns the name of the test case +-std::string ++std::string + TestCase::getName() const +-{ +- return m_name; ++{ ++ return m_name; + } + + + /// Returns the name of the test case instance +-std::string ++std::string + TestCase::toString() const +-{ ++{ + std::string className; + + #if CPPUNIT_USE_TYPEINFO_NAME +@@ -128,8 +196,13 @@ + className = "TestCase"; + #endif + +- return className + "." + getName(); ++ return className + "." + getName(); + } +- ++ } // namespace CppUnit + @@ -4797,8 +1851,8 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. +// tab-width:4 +// End: --- misc/cppunit-1.8.0/src/cppunit/TestFactoryRegistry.cpp 2002-03-28 16:47:08.000000000 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/TestFactoryRegistry.cpp 2008-02-27 17:22:38.000000000 +0100 -@@ -1,12 +1,20 @@ ++++ misc/build/cppunit-1.8.0/src/cppunit/TestFactoryRegistry.cpp 2009-09-12 15:17:54.093750000 +0200 +@@ -1,12 +1,19 @@ +#include <stdio.h> +#include <stdlib.h> #include <cppunit/extensions/TestFactoryRegistry.h> @@ -4806,7 +1860,6 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. -#include <set> +#include <set> -+//!io #include <iostream> +#include <sstream> #if CPPUNIT_USE_TYPEINFO_NAME @@ -4820,7 +1873,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. namespace CppUnit { -@@ -26,15 +34,18 @@ +@@ -26,15 +33,18 @@ static NamedRegistries &getInstance(); @@ -4842,7 +1895,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. typedef std::set<TestFactory *> Factories; Factories m_factoriesToDestroy; -@@ -44,13 +55,27 @@ +@@ -44,13 +54,27 @@ NamedRegistries::~NamedRegistries() { @@ -4877,7 +1930,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } -@@ -63,17 +88,55 @@ +@@ -63,17 +87,55 @@ TestFactoryRegistry & @@ -4938,7 +1991,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } -@@ -91,9 +154,32 @@ +@@ -91,9 +153,32 @@ return m_destroyedFactories.count( factory ) == 0; } @@ -4972,7 +2025,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. m_name( name ) { } -@@ -116,26 +202,38 @@ +@@ -116,26 +201,38 @@ } } @@ -5014,7 +2067,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } -@@ -144,10 +242,23 @@ +@@ -144,10 +241,23 @@ { static int serialNumber = 1; @@ -5024,8 +2077,8 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. - registerFactory( ost.str(), factory ); + std::string aStr("@Dummy@_"); + -+ sal_Char cBuf[20]; -+ sal_Char *pBuf = cBuf; ++ char cBuf[20]; ++ char *pBuf = cBuf; + sprintf(pBuf, "%d", serialNumber++ ); + + aStr += std::string(pBuf); @@ -5042,7 +2095,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } -@@ -163,6 +274,9 @@ +@@ -163,6 +273,9 @@ void TestFactoryRegistry::addTestToSuite( TestSuite *suite ) { @@ -5053,7 +2106,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. it != m_factories.end(); ++it ) --- misc/cppunit-1.8.0/src/cppunit/TestFailure.cpp 2002-02-28 11:57:20.000000000 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/TestFailure.cpp 2008-02-27 17:23:02.000000000 +0100 ++++ misc/build/cppunit-1.8.0/src/cppunit/TestFailure.cpp 2009-09-12 14:15:35.437500000 +0200 @@ -5,12 +5,12 @@ namespace CppUnit { @@ -5105,15 +2158,13 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } // namespace CppUnit --- misc/cppunit-1.8.0/src/cppunit/TestSuite.cpp 2002-03-24 20:39:55.000000000 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/TestSuite.cpp 2008-02-27 17:24:10.000000000 +0100 -@@ -1,11 +1,15 @@ ++++ misc/build/cppunit-1.8.0/src/cppunit/TestSuite.cpp 2009-09-12 15:16:07.265625000 +0200 +@@ -1,11 +1,13 @@ +#include <stdlib.h> #include "cppunit/TestSuite.h" -#include "cppunit/TestResult.h" -+// #include "cppunit/TestResult.h" -+#include <cppunit/tagvalues.hxx> -+#include <cppunit/autoregister/callbackfunc_fktptr.h> -+#include <cppunit/externcallbackfunc.hxx> ++#include "cppunit/tagvalues.hxx" ++#include "cppunit/externcallbackfunc.hxx" namespace CppUnit { @@ -5125,7 +2176,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. { } -@@ -13,7 +17,7 @@ +@@ -13,7 +15,7 @@ /// Destructor TestSuite::~TestSuite() { @@ -5134,7 +2185,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } -@@ -21,28 +25,37 @@ +@@ -21,28 +23,37 @@ void TestSuite::deleteContents() { @@ -5169,8 +2220,8 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. - } + // (pTestResult_EnterNode)(result, getName().c_str()); + (pCallbackFunc)(0 /* NULL */, TAG_TYPE, RESULT_ENTER_NODE, TAG_RESULT_PTR, result, TAG_NODENAME, getName().c_str(), TAG_DONE); -+ for ( std::vector<Test *>::iterator it = m_tests.begin(); -+ it != m_tests.end(); ++ for ( std::vector<Test *>::const_iterator it = getTests().begin(); ++ it != getTests().end(); + ++it ) + { + //# if ( result->shouldStop() ) @@ -5188,7 +2239,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } -@@ -50,14 +63,14 @@ +@@ -50,14 +61,14 @@ int TestSuite::countTestCases() const { @@ -5211,7 +2262,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } -@@ -65,7 +78,7 @@ +@@ -65,7 +76,7 @@ void TestSuite::addTest( Test *test ) { @@ -5220,7 +2271,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } -@@ -73,7 +86,7 @@ +@@ -73,7 +84,7 @@ std::string TestSuite::toString() const { @@ -5229,7 +2280,7 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. } -@@ -81,16 +94,20 @@ +@@ -81,16 +92,20 @@ std::string TestSuite::getName() const { @@ -5252,392 +2303,14 @@ Nur in misc/build/cppunit-1.8.0: makefile.mk.dummy. +// Local Variables: +// tab-width:4 +// End: ---- misc/cppunit-1.8.0/src/cppunit/cmdlinebits.cxx 2008-12-10 20:46:08.820775372 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/cmdlinebits.cxx 2008-12-10 20:42:44.000000000 +0100 -@@ -1 +1,144 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#ifdef WNT -+# define UNDER_WINDOWS_DEBUGGING -+# include "testshl/winstuff.hxx" -+#endif /* WNT */ -+ -+#include <stdio.h> -+#include <cppunit/cmdlinebits.hxx> -+#include "cppunit/checkboom.hxx" -+ -+#include <cppunit/autoregister/callbackstructure.h> -+#include <osl/diagnose.h> -+#include <rtl/tres.h> -+#include <cppunit/stringhelper.hxx> -+ -+extern CallbackStructure aGlobalStructure; -+ -+sal_Bool isBit( CmdLineBits _nBits, CmdLineBits _nFlag ); -+ -+// sal_Bool isBit( CmdLineBits _nBits, CmdLineBits _nFlag ) -+// { -+// return( ( _nBits & _nFlag ) == _nFlag ); -+// } -+ -+void CheckBoom(bool bCondition, std::string const& msg) -+{ -+ (void) msg; // avoid warning -+ if ( isBit( aGlobalStructure.nBits, rtl_tres_Flag_BOOM ) ) -+ { -+ /* force an assertion on false state */ -+ if ( !bCondition ) { -+#ifdef UNDER_WINDOWS_DEBUGGING -+ WinDebugBreak(); -+#else -+ OSL_ENSURE( false, msg.c_str() ); -+#endif -+ } -+ } -+} -+ -+void CheckBoom(bool bCondition, rtl::OUString const& msg) -+{ -+ if ( isBit( aGlobalStructure.nBits, rtl_tres_Flag_BOOM ) ) -+ { -+ /* force an assertion on false state */ -+ rtl::OString sMessage; -+ sMessage <<= msg; -+ if ( !bCondition ) { -+#ifdef UNDER_WINDOWS_DEBUGGING -+ WinDebugBreak(); -+#else -+ OSL_ENSURE( false, sMessage.getStr() ); -+#endif -+ } -+ } -+} -+ -+const char* getForwardString() -+{ -+ return aGlobalStructure.psForward; -+} -+ -+// ----------------------------------------------------------------------------- -+// ----------------------------- own printf method ----------------------------- -+// ----------------------------------------------------------------------------- -+ -+// bool isVerbose() -+// { -+// if ( isBit( aGlobalStructure.nBits, rtl_tres_Flag_VERBOSE ) ) -+// { -+// return true; -+// } -+// return false; -+// } -+// -+// bool isQuiet() -+// { -+// if ( isBit( aGlobalStructure.nBits, rtl_tres_Flag_QUIET ) ) -+// { -+// return true; -+// } -+// return false; -+// } -+// -+// void impl_t_print(const char* _pFormatStr, va_list &args) -+// { -+// if (! isQuiet()) -+// { -+// printf("# "); -+// vprintf(_pFormatStr, args); -+// } -+// } -+// -+// void t_print(const char* _pFormatStr, ...) -+// { -+// va_list args; -+// va_start( args, _pFormatStr ); -+// impl_t_print(_pFormatStr, args); -+// va_end( args ); -+// } -+// -+// void t_print(T_Print_Params _eType, const char* _pFormatStr, ...) -+// { -+// if (_eType == T_VERBOSE && isVerbose()) -+// { -+// // if T_VERBOSE and we should be verbose, print info -+// va_list args; -+// va_start( args, _pFormatStr ); -+// impl_t_print(_pFormatStr, args); -+// va_end( args ); -+// } -+// } -Nur in misc/build/cppunit-1.8.0/src/cppunit: cmdlinebits.cxx.dummy. ---- misc/cppunit-1.8.0/src/cppunit/joblist.cxx 2008-12-10 20:46:08.893444692 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/joblist.cxx 2008-12-09 09:03:54.000000000 +0100 -@@ -1 +1,224 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include <stdlib.h> -+#include <stdio.h> -+#include <fstream> -+#include <rtl/string.hxx> -+#include "cppunit/joblist.hxx" -+ -+#define C_SEPARATOR_LIST " \t,;:#" -+JobList::JobList() -+ :ppsJobList(NULL) -+{} -+ -+// ----------------------------------------------------------------------------- -+bool JobList::isInCurrentEnvironment(std::string const& _sString) -+{ -+ int nSpace = 0; -+ std::string sSearchString = _sString; -+ bool bEnd = false; -+ // run through the hole given string, -+ std::string sEnv; -+ -+ do { -+ nSpace = sSearchString.find_first_of(C_SEPARATOR_LIST); -+ if (nSpace < 0) -+ { -+ sEnv = sSearchString; -+ bEnd = true; -+ } -+ else -+ { -+ sEnv = sSearchString.substr(0, nSpace); -+ sSearchString = sSearchString.substr(nSpace + 1); -+ } -+ if (sEnv.length() > 0) -+ { -+ // cout << sEnv << endl; -+#ifdef LINUX -+ int nLinux = sEnv.find("unxlng"); -+ if (nLinux >= 0) -+ { -+ // found unxlng -+ return true; -+ } -+#endif -+#ifdef SOLARIS -+ int nSolaris = sEnv.find("unxsol"); -+ if (nSolaris >= 0) -+ { -+ // found unxsol -+ return true; -+ } -+#endif -+#ifdef WNT -+ int nWindows = sEnv.find("wnt"); -+ if (nWindows >= 0) -+ { -+ // found wnt -+ return true; -+ } -+#endif -+ } -+ } while ( !bEnd ); -+ return false; -+} -+ -+std::string JobList::trim(std::string const& _sStringToTrim) -+{ -+ rtl::OString sStr(_sStringToTrim.c_str()); -+ sStr = sStr.trim(); -+ return std::string(sStr.getStr()); -+} -+ -+// ----------------------------------------------------------------------------- -+bool JobList::readfile(std::string const& _sFilename, JobType _nJobType) -+{ -+ // StringList aJobList; -+ m_aJobList.clear(); -+ -+ std::ifstream in(_sFilename.c_str(), std::ios::in); -+ -+ if (!in) -+ { -+ // fprintf(stderr, "warning: Can't open job file: %s\n", _sFilename.c_str()); -+ return false; -+ } -+ else -+ { -+ if (_nJobType == JOB_EXCLUDE_LIST) -+ { -+ fprintf(stderr, "warning: There exist a job exclusion list file: %s\n", _sFilename.c_str()); -+ } -+ -+ // std::cout << "Check for signal" << std::endl; -+ std::string sLine; -+ while (std::getline(in, sLine)) -+ { -+ if (sLine.size() > 0) -+ { -+ char ch = sLine[0]; -+ if (ch != '#' && -+ isspace(ch) == 0) -+ { -+ sLine = trim(sLine); -+ -+ // m_aJobList.push_back( sLine ); -+ int nSpace = sLine.find_first_of(C_SEPARATOR_LIST); -+ if (nSpace < 0) -+ { -+ m_aJobList[sLine] = JOB_UNKNOWN; -+ } -+ else -+ { -+ // found a separator -+ std::string sTest = sLine.substr(0, nSpace); -+ std::string sRest = sLine.substr(nSpace + 1); -+ if (isInCurrentEnvironment(sRest)) -+ { -+ m_aJobList[sTest] = JOB_UNKNOWN; -+ } -+ } -+ } -+ } -+ } -+ -+ // inclusion list -+/* -+ int nSize = m_aJobList.size(); -+ -+ ppsJobList = (char**) malloc((nSize + 1) * sizeof(char*)); -+ -+ int nIdx = 0; -+ StringList::const_iterator aItEnd = m_aJobList.end(); -+ for(StringList::const_iterator it = m_aJobList.begin(); -+ it != aItEnd; ++it) -+ { -+ std::string sValue = *it; -+ char* psTestFkt = (char*) malloc(sValue.size() + 1); -+ strcpy(psTestFkt, sValue.c_str()); -+ ppsJobList[nIdx] = psTestFkt; -+ ++nIdx; -+ } -+ -+ ppsJobList[nIdx] = NULL; -+*/ -+ } -+ return true; -+} -+ -+// ----------------------------------------------------------------------------- -+int JobList::getJobListEntry(std::string const& _sIndexName) -+{ -+ if (m_aJobList.find(_sIndexName) != m_aJobList.end()) -+ { -+ return m_aJobList[_sIndexName]; -+ } -+ return JOB_NOT_FOUND; -+} -+ -+// ----------------------------------------------------------------------------- -+void JobList::setJobListEntry(std::string const& _sIndexName, int _nValue) -+{ -+ // if (m_aJobList.find(_sIndexName) == m_aJobList.end()) -+ // { -+ m_aJobList[_sIndexName] = _nValue; -+ // } -+ // else -+ // { -+ // fprintf(stderr, "error: test function '%s' already exist.\n", _sIndexName); -+ // } -+} -+ -+// ----------------------------------------------------------------------------- -+JobList::~JobList() -+{ -+ int nIdx = 0; -+ if (ppsJobList) -+ { -+ while(ppsJobList[nIdx] != NULL) -+ { -+ free(ppsJobList[nIdx]); -+ ++nIdx; -+ } -+ free(ppsJobList); -+ } -+} -+// ----------------------------------------------------------------------------- -+/* -+ bool JobList::checkFilter(JobList m_aJobFilter, std::string const& _sNodeName, std::string const& _sName) -+ { -+ std::string sFilter = m_aJobFilter.m_aJobList.begin(); -+ } -+*/ -Nur in misc/build/cppunit-1.8.0/src/cppunit: joblist.cxx.dummy. ---- misc/cppunit-1.8.0/src/cppunit/makefile.mk 2008-12-10 20:46:08.970632544 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/makefile.mk 2008-12-10 19:44:52.000000000 +0100 -@@ -1 +1,113 @@ +--- misc/cppunit-1.8.0/src/cppunit/makefile.mk 2009-09-12 15:20:48.515625000 +0200 ++++ misc/build/cppunit-1.8.0/src/cppunit/makefile.mk 2009-09-12 14:15:35.468750000 +0200 +@@ -1 +1,90 @@ -dummy +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+# ++# +# Copyright 2008 by Sun Microsystems, Inc. +# +# OpenOffice.org - a multi-platform office productivity suite @@ -5690,21 +2363,14 @@ Nur in misc/build/cppunit-1.8.0/src/cppunit: joblist.cxx.dummy. + $(SLO)$/SourceLine.obj \ + $(SLO)$/Exception.obj \ + $(SLO)$/NotEqualException.obj \ -+ $(SLO)$/TestFailure.obj \ -+ $(SLO)$/joblist.obj \ -+ $(SLO)$/t_print.obj \ -+ $(SLO)$/signaltest.obj ++ $(SLO)$/TestFailure.obj + +CPPUNIT_STATIC_SOLFILES = \ + $(SLO)$/Asserter.obj \ + $(SLO)$/TestCase.obj \ + $(SLO)$/TestSuite.obj \ + $(SLO)$/TestAssert.obj \ -+ $(SLO)$/TestFactoryRegistry.obj \ -+ $(SLO)$/cmdlinebits.obj \ -+ $(SLO)$/tresregister.obj \ -+ $(SLO)$/tresstatewrapper.obj \ -+ $(SLO)$/registertestfunction.obj ++ $(SLO)$/TestFactoryRegistry.obj + + +SLOFILES = \ @@ -5716,558 +2382,29 @@ Nur in misc/build/cppunit-1.8.0/src/cppunit: joblist.cxx.dummy. +LIB1OBJFILES= \ + $(SLOFILES) + -+.IF "$(GUI)"=="WNT" ++.IF "$(GUI)"=="WNT" +.IF "$(COM)"=="GCC" +LIB1ARCHIV=$(LB)$/lib$(TARGET)$(DLLPOSTFIX).a +.ENDIF -+LIB1FILES=$(LB)$/c5t_winstuff.lib ++#LIB1FILES=$(LB)$/c5t_winstuff.lib +.ENDIF + +.IF "$(GUI)" == "UNX" +LIB1ARCHIV=$(LB)$/lib$(TARGET)$(DLLPOSTFIX).a +.ENDIF + -+#------------------------------------------------------------------------------- -+TARGET2=c5t_no_regallfkt -+LIB2TARGET= $(LB)$/$(TARGET2).lib -+LIB2OBJFILES= \ -+ $(CPPUNIT_TESTSHL_SLOFILES) -+ -+.IF "$(GUI)"=="WNT" -+.IF "$(COM)"=="GCC" -+LIB2ARCHIV=$(LB)$/lib$(TARGET2)$(DLLPOSTFIX).a -+.ENDIF -+.ENDIF -+ -+.IF "$(GUI)" == "UNX" -+LIB2ARCHIV=$(LB)$/lib$(TARGET2)$(DLLPOSTFIX).a -+.ENDIF -+ +# --- Targets ------------------------------------------------------ + +.INCLUDE : target.mk + -Nur in misc/build/cppunit-1.8.0/src/cppunit: makefile.mk.dummy. ---- misc/cppunit-1.8.0/src/cppunit/registertestfunction.cxx 2008-12-10 20:46:09.058854031 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/registertestfunction.cxx 2008-12-09 09:04:23.000000000 +0100 -@@ -1 +1,60 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include <stdlib.h> -+#include <cppunit/simpleheader.hxx> -+#include <cppunit/additionalfunc.hxx> -+ -+extern "C" void SAL_CALL testAllRegisteredFunctions(hTestResult _pResult) -+{ -+ CppUnit::TestFactoryRegistry::testRegistries(_pResult); -+ // CppUnit::Test* tp = CppUnit::TestFactoryRegistry::getRegistry("rtl_OUString").makeTest(); -+ // tp->run(pResult); -+} -+ -+// ----------------------------------------------------------------------------- -+// ---------------------------- RegisterTestFunctions ---------------------------- -+// ----------------------------------------------------------------------------- -+ -+extern "C" void SAL_CALL RegisterTestFunctions(FktRegFuncPtr _pFunc) -+{ -+ if (_pFunc) -+ { -+ (_pFunc)(&testAllRegisteredFunctions, ""); -+ } -+ else -+ { -+ // error, FktRegFuncPtr not given -+ } -+ RegisterAdditionalFunctions(_pFunc); -+} -Nur in misc/build/cppunit-1.8.0/src/cppunit: registertestfunction.cxx.dummy. ---- misc/cppunit-1.8.0/src/cppunit/signaltest.cxx 2008-12-10 20:46:09.119798751 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/signaltest.cxx 2008-12-09 09:04:24.000000000 +0100 -@@ -1 +1,92 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include <typeinfo> -+ -+#include "cppunit/signaltest.h" -+ -+namespace CppUnit -+{ -+ -+/** Constructs a test case for a suite. -+ * This TestCase is intended for use by the TestCaller and should not -+ * be used by a test case for which run() is called. -+ **/ -+SignalTest::SignalTest(std::string const& _sName) -+ : m_sName( _sName ) -+{ -+} -+ -+ -+/// Destructs a test case -+SignalTest::~SignalTest() -+{ -+} -+ -+ -+/// Returns a count of all the tests executed -+int -+SignalTest::countTestCases() const -+{ -+ return 1; -+} -+ -+/// We never need to start this -+void SignalTest::run(hTestResult) {} -+ -+ -+/// Returns the name of the test case -+std::string -+SignalTest::getName() const -+{ -+ return m_sName; -+} -+ -+ -+/// Returns the name of the test case instance -+std::string -+SignalTest::toString() const -+{ -+ std::string className; -+ -+#if CPPUNIT_USE_TYPEINFO_NAME -+ const std::type_info& thisClass = typeid( *this ); -+ className = thisClass.name(); -+#else -+ className = "SignalTest"; -+#endif -+ -+ return className + "." + getName(); -+} -+ -+} // namespace CppUnit -Nur in misc/build/cppunit-1.8.0/src/cppunit: signaltest.cxx.dummy. ---- misc/cppunit-1.8.0/src/cppunit/t_print.cxx 2008-12-10 20:46:09.210907830 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/t_print.cxx 2008-12-09 09:04:23.000000000 +0100 -@@ -1 +1,98 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include <stdio.h> -+#include <cppunit/cmdlinebits.hxx> -+#include <rtl/tres.h> -+#include <osl/mutex.hxx> -+ -+extern CmdLineBits st_nBits; -+ -+sal_Bool isBit( CmdLineBits _nBits, CmdLineBits _nFlag ) -+{ -+ return( ( _nBits & _nFlag ) == _nFlag ); -+} -+ -+// ----------------------------------------------------------------------------- -+// ----------------------------- own printf method ----------------------------- -+// ----------------------------------------------------------------------------- -+ -+bool isVerbose() -+{ -+ if ( isBit( st_nBits, rtl_tres_Flag_VERBOSE ) ) -+ { -+ return true; -+ } -+ return false; -+} -+ -+bool isQuiet() -+{ -+ if ( isBit( st_nBits, rtl_tres_Flag_QUIET ) ) -+ { -+ return true; -+ } -+ return false; -+} -+ -+// ::osl::Mutex m_aTPrintMutex; -+ -+void impl_t_print(const char* _pFormatStr, va_list &args) -+{ -+ if (! isQuiet()) -+ { -+ // ::osl::MutexGuard g(m_aTPrintMutex); -+ printf("# "); -+ vprintf(_pFormatStr, args); -+ } -+} -+ -+void t_print(const char* _pFormatStr, ...) -+{ -+ va_list args; -+ va_start( args, _pFormatStr ); -+ impl_t_print(_pFormatStr, args); -+ va_end( args ); -+} -+ -+void t_print(T_Print_Params _eType, const char* _pFormatStr, ...) -+{ -+ if (_eType == T_VERBOSE && isVerbose()) -+ { -+ // if T_VERBOSE and we should be verbose, print info -+ va_list args; -+ va_start( args, _pFormatStr ); -+ impl_t_print(_pFormatStr, args); -+ va_end( args ); -+ } -+} -Nur in misc/build/cppunit-1.8.0/src/cppunit: t_print.cxx.dummy. ---- misc/cppunit-1.8.0/src/cppunit/tresregister.cxx 2008-12-10 20:46:09.288665520 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/tresregister.cxx 2008-12-09 09:04:23.000000000 +0100 -@@ -1 +1,69 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include <stdio.h> -+#include <sal/types.h> -+#include <cppunit/autoregister/registerfunc.h> -+#include <cppunit/autoregister/callbackstructure.h> -+#include <cppunit/cmdlinebits.hxx> -+ -+//! is this global CallbackStructure need? -+CallbackStructure aGlobalStructure; -+CmdLineBits st_nBits; -+ -+FktPtr_CallbackDispatch pCallbackFunc = NULL; -+ -+// This function is called from the TestShl tool. -+extern "C" void SAL_CALL registerAllTestFunction(CallbackStructure* _pCallback) -+{ -+ aGlobalStructure = *_pCallback; -+ -+ st_nBits = aGlobalStructure.nBits; -+ -+ pCallbackFunc = _pCallback->aCallbackDispatch; -+ FktRegFuncPtr pFunc = _pCallback->aRegisterFunction; -+ if (pFunc) -+ { -+ RegisterTestFunctions(pFunc); -+ } -+ else -+ { -+ // error, should be echoed -+ fprintf(stderr, "error: Callback Structure doesn't contain a test function ptr.\n"); -+ } -+ -+ // all is done, copy the magic value -+ // this is only a simple internal invariant check, -+ // if the called registerAllTestFunctions Function do, what we want. -+ _pCallback->nMagic2 = _pCallback->nMagic; -+} -Nur in misc/build/cppunit-1.8.0/src/cppunit: tresregister.cxx.dummy. ---- misc/cppunit-1.8.0/src/cppunit/tresstatewrapper.cxx 2008-12-10 20:46:09.345773546 +0100 -+++ misc/build/cppunit-1.8.0/src/cppunit/tresstatewrapper.cxx 2008-12-10 20:42:43.000000000 +0100 -@@ -1 +1,168 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+// this functions build the wrapper, to handle old function calls to rtl_tres_state -+// IMPORTANT: Due to the fact that rtl_tres_state is in the sal.lib -+// you have to rename rtl_tres_state to c_rtl_tres_state -+// -+// return c_rtl_tres_state -+// ( -+// hRtlTestResult, -+// pData->length == 0 && -+// ! *pData->buffer, -+// "New OString containing no characters", -+// "ctor_001" -+// ) -+ -+#include <stdlib.h> -+#include <stdio.h> -+#include <string.h> -+#include "cppunit/Test.h" -+#include "cppunit/autoregister/htestresult.h" -+#include "cppunit/autoregister/callbackfunc_fktptr.h" -+#include "cppunit/TestAssert.h" -+ -+#define LOAD_TRESSTATEWRAPPER_LOCAL -+#include "testshl/tresstatewrapper.hxx" -+#undef LOAD_TRESSTATEWRAPPER_LOCAL -+ -+#include "cppunit/tagvalues.hxx" -+#include "cppunit/externcallbackfunc.hxx" -+ -+// ----------------------------------------------------------------------------- -+// Wrapper class for the CppUnit::Test, because the new TestResult -+// expect a CppUnit::Test interface -+ -+class WrappedTest : public CppUnit::Test -+{ -+ std::string m_sName; -+public: -+ WrappedTest(std::string const& _sName) -+ :m_sName(_sName){} -+ -+ virtual ~WrappedTest () {} -+ virtual void run (hTestResult /*pResult*/){} -+ virtual int countTestCases () const {return 1;} -+ virtual std::string getName () const {return m_sName;} -+ virtual std::string toString () const {return "WrappedTest";} -+}; -+ -+// ----------------------------------------------------------------------------- -+rtl_tres_state_start::rtl_tres_state_start(hTestResult _aResult, const sal_Char* _pName) -+ :m_pName(_pName), -+ m_aResult(_aResult) -+{ -+ // (pTestResult_EnterNode)(m_aResult, m_pName); -+ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ENTER_NODE, TAG_RESULT_PTR, m_aResult, TAG_NODENAME, m_pName, TAG_DONE); -+} -+rtl_tres_state_start::~rtl_tres_state_start() -+{ -+ // (pTestResult_LeaveNode)(m_aResult, m_pName); -+ (pCallbackFunc)(0 /* NULL */, TAG_TYPE, RESULT_LEAVE_NODE, TAG_RESULT_PTR, m_aResult, TAG_NODENAME, m_pName, TAG_DONE); -+} -+ -+// --------------------------------- C-Wrapper --------------------------------- -+typedef std::vector<rtl_tres_state_start*> rtl_tres_states; -+rtl_tres_states m_StateStack; -+ -+extern "C" void c_rtl_tres_state_start(hTestResult _aResult, const sal_Char* _pName) -+{ -+ rtl_tres_state_start* pState = new rtl_tres_state_start(_aResult, _pName); -+ m_StateStack.push_back(pState); -+} -+ -+extern "C" void c_rtl_tres_state_end(hTestResult, const sal_Char*) -+{ -+ rtl_tres_state_start* pState = m_StateStack.back(); -+ -+ delete pState; -+ m_StateStack.pop_back(); -+} -+// ----------------------------------------------------------------------------- -+// ----------------------------------------------------------------------------- -+// ----------------------------------------------------------------------------- -+ -+// ----------------------------------------------------------------------------- -+// ------------------------- Wrapper for rtl_tres_state ------------------------- -+// ----------------------------------------------------------------------------- -+ -+sal_Bool SAL_CALL c_rtl_tres_state( -+ hTestResult pResult, -+ sal_Bool bSuccess, -+ char const * pTestMsg, -+ char const * pFuncName) -+{ -+ CppUnit::Test* pTest = new WrappedTest(pFuncName); -+ -+ sal_Int32 nValue = (pCallbackFunc)(0 /* NULL */, TAG_TYPE, EXECUTION_CHECK, TAG_RESULT_PTR, pResult, TAG_NODENAME, pTest->getName().c_str(), TAG_DONE); -+ if (nValue == DO_NOT_EXECUTE) -+ { -+ return false; -+ } -+ -+ // This code is copied from CppUnit::TestCase and less adapted, to work with the -+ // old test code. -+ // (pTestResult_StartTest)(pResult, pTest); -+ (pCallbackFunc)(0 /* NULL */, TAG_TYPE, RESULT_START, TAG_RESULT_PTR, pResult, TAG_TEST_PTR, pTest, TAG_DONE); -+ -+ try -+ { -+ CPPUNIT_ASSERT_MESSAGE( pTestMsg, bSuccess ? true : false ); -+ // (pTestResult_AddInfo)(pResult, pTest, "#PASSED#"); -+ (pCallbackFunc)(0 /* NULL */, TAG_TYPE, RESULT_ADD_INFO, TAG_RESULT_PTR, pResult, TAG_TEST_PTR, pTest, TAG_INFO, "PASSED", TAG_DONE); -+ } -+ catch ( CppUnit::Exception &e ) -+ { -+ CppUnit::Exception *copy = e.clone(); -+ // (pTestResult_AddFailure)( pResult, pTest, copy ); -+ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_FAILURE, TAG_RESULT_PTR, pResult, TAG_TEST_PTR, pTest, TAG_EXCEPTION, copy, TAG_DONE ); -+ } -+ catch ( std::exception &e ) -+ { -+ //(pTestResult_AddError)( pResult, pTest, new CppUnit::Exception( e.what() ) ); -+ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_ERROR, TAG_RESULT_PTR, pResult, TAG_TEST_PTR, pTest, TAG_EXCEPTION, new CppUnit::Exception( e.what() ), TAG_DONE ); -+ } -+ catch (...) -+ { -+ CppUnit::Exception *e = new CppUnit::Exception( "caught unknown exception" ); -+ // (pTestResult_AddError)( pResult, pTest, e ); -+ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_ADD_ERROR, TAG_RESULT_PTR, pResult, TAG_TEST_PTR, pTest, TAG_EXCEPTION, e, TAG_DONE ); -+ } -+ -+ -+ // (pTestResult_EndTest)( pResult, pTest ); -+ (pCallbackFunc)( 0 /* NULL */, TAG_TYPE, RESULT_END, TAG_RESULT_PTR, pResult, TAG_TEST_PTR, pTest, TAG_DONE ); -+ -+ return bSuccess; -+} -+ -Nur in misc/build/cppunit-1.8.0/src/cppunit: tresstatewrapper.cxx.dummy. ---- misc/cppunit-1.8.0/src/makefile.mk 2008-12-10 20:46:08.706925653 +0100 -+++ misc/build/cppunit-1.8.0/src/makefile.mk 2008-12-09 08:57:10.000000000 +0100 -@@ -1 +1,35 @@ +--- misc/cppunit-1.8.0/src/makefile.mk 2009-09-12 15:20:48.421875000 +0200 ++++ misc/build/cppunit-1.8.0/src/makefile.mk 2009-09-12 14:15:35.484375000 +0200 +@@ -1 +1,33 @@ -dummy +#************************************************************************* +# +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+# ++# +# Copyright 2008 by Sun Microsystems, Inc. +# +# OpenOffice.org - a multi-platform office productivity suite @@ -6296,3535 +2433,4 @@ Nur in misc/build/cppunit-1.8.0/src/cppunit: tresstatewrapper.cxx.dummy. +#************************************************************************* + +target: -+ cd cppunit && $(MAKE) $(MFLAGS) $(CALLMACROS) -+ cd result && $(MAKE) $(MFLAGS) $(CALLMACROS) -+ cd win32 && $(MAKE) $(MFLAGS) $(CALLMACROS) -Nur in misc/build/cppunit-1.8.0/src: makefile.mk.dummy. ---- misc/cppunit-1.8.0/src/result/SynchronizedObject.cpp 2008-12-10 20:46:05.438373643 +0100 -+++ misc/build/cppunit-1.8.0/src/result/SynchronizedObject.cpp 2008-02-27 17:26:28.000000000 +0100 -@@ -1 +1,35 @@ --dummy -+#include <cppunit/result/SynchronizedObject.h> -+ -+ -+namespace CppUnit -+{ -+ -+ -+ -+ -+SynchronizedObject::SynchronizedObject( SynchronizationObject *syncObject ) -+ : m_syncObject( syncObject == 0 ? new SynchronizationObject() : -+ syncObject ) -+{ -+} -+ -+ -+SynchronizedObject::~SynchronizedObject() -+{ -+ delete m_syncObject; -+} -+ -+ -+/** Accept a new synchronization object for protection of this instance -+ * TestResult assumes ownership of the object -+ */ -+void -+SynchronizedObject::setSynchronizationObject( SynchronizationObject *syncObject ) -+{ -+ delete m_syncObject; -+ m_syncObject = syncObject; -+} -+ -+ -+} // namespace CppUnit -+ -Nur in misc/build/cppunit-1.8.0/src/result: SynchronizedObject.cpp.dummy. ---- misc/cppunit-1.8.0/src/result/TestResult.cpp 2008-12-10 20:46:05.577200921 +0100 -+++ misc/build/cppunit-1.8.0/src/result/TestResult.cpp 2008-12-10 20:42:45.000000000 +0100 -@@ -1 +1,261 @@ --dummy -+#include <cppunit/TestFailure.h> -+#include <cppunit/result/TestListener.h> -+#include "testshl/getopt.hxx" -+#include <cppunit/result/TestResult.h> -+#include <algorithm> -+#include "cppunit/result/outputter.hxx" -+#include <cppunit/Test.h> -+#include <cppunit/cmdlinebits.hxx> -+ -+namespace CppUnit { -+ -+/// Construct a TestResult -+TestResult::TestResult( GetOpt &_pOptions, SynchronizationObject *syncObject ) -+ : SynchronizedObject( syncObject ), -+ m_aOptionHelper(_pOptions), -+ m_nExitValue(0) -+{ -+ reset(); -+} -+ -+ -+/// Destroys a test result -+TestResult::~TestResult() -+{ -+} -+ -+ -+/** Resets the result for a new run. -+ * -+ * Clear the previous run result. -+ */ -+void -+TestResult::reset() -+{ -+ ExclusiveZone zone( m_syncObject ); -+ m_stop = false; -+} -+ -+ -+/** Adds an error to the list of errors. -+ * The passed in exception -+ * caused the error -+ */ -+void -+TestResult::addError( Test *test, -+ Exception *e, ErrorType::num _eType ) -+{ -+ TestFailure aTestFailure( test, e, _eType ); -+ addFailure( aTestFailure ); -+} -+ -+ -+/** Adds a failure to the list of failures. The passed in exception -+ * caused the failure. -+ */ -+void -+TestResult::addFailure( Test *test, Exception *e ) -+{ -+ TestFailure aTestFailure( test, e, ErrorType::ET_FAILURE ); -+ addFailure( aTestFailure ); -+} -+ -+ -+/** Called to add a failure to the list of failures. -+ */ -+void -+TestResult::addFailure( const TestFailure &failure ) -+{ -+ ExclusiveZone zone( m_syncObject ); -+ -+ // LLA: -+ // this set the global returnvalue, due to the fact, there occurs a failure, we have to return a non zero value -+ // at the moment this seams to be a good place. -+ setExitValue(1); -+ -+ for ( TestListeners::iterator it = m_listeners.begin(); -+ it != m_listeners.end(); -+ ++it ) -+ { -+ TestListener *pListener = *it; -+ pListener->addFailure( failure ); -+ } -+} -+ -+ -+/// Informs the result that a test will be started. -+void -+TestResult::startTest( Test *test ) -+{ -+ ExclusiveZone zone( m_syncObject ); -+ if (m_aOptionHelper.isVerbose()) -+ { -+ std::string aStr; -+ if (test) -+ { -+ aStr = getNodeName(); -+ aStr += "."; -+ aStr += test->getName(); -+ } -+ // fprintf(stderr, "Start test: %s\n", aStr.c_str()); -+ t_print( T_VERBOSE, "Start test: %s\n", aStr.c_str()); -+ } -+ -+ for ( TestListeners::iterator it = m_listeners.begin(); -+ it != m_listeners.end(); -+ ++it ) -+ { -+ TestListener *pListener = *it; -+ pListener->startTest( test ); -+ } -+} -+ -+ -+/// Informs the result that a test was completed. -+void -+TestResult::endTest( Test *test ) -+{ -+ ExclusiveZone zone( m_syncObject ); -+ for ( TestListeners::iterator it = m_listeners.begin(); -+ it != m_listeners.end(); -+ ++it ) -+ { -+ TestListener *pListener = *it; -+ pListener->endTest( test ); -+ } -+} -+ -+ -+/// Returns whether testing should be stopped -+bool -+TestResult::shouldStop() const -+{ -+ ExclusiveZone zone( m_syncObject ); -+ return m_stop; -+} -+ -+ -+/// Stop testing -+void -+TestResult::stop() -+{ -+ ExclusiveZone zone( m_syncObject ); -+ m_stop = true; -+} -+ -+ -+void -+TestResult::addListener( TestListener *listener ) -+{ -+ ExclusiveZone zone( m_syncObject ); -+ m_listeners.push_back( listener ); -+} -+ -+ -+void -+TestResult::removeListener ( TestListener *listener ) -+{ -+ ExclusiveZone zone( m_syncObject ); -+#if defined(_MSC_VER) && (_MSC_VER >=1400) -+ m_listeners.erase( remove( m_listeners.begin(), -+#else -+ m_listeners.erase( std::remove( m_listeners.begin(), -+#endif -+ m_listeners.end(), -+ listener ), -+ m_listeners.end()); -+} -+ -+void -+TestResult::addInfo(Test *test, const char* _aStr) -+{ -+ ExclusiveZone zone( m_syncObject ); -+ for ( TestListeners::iterator it = m_listeners.begin(); -+ it != m_listeners.end(); -+ ++it ) -+ { -+ TestListener *pListener = *it; -+ pListener->addInfo( test, _aStr ); -+ } -+} -+ -+// old: void -+// old: TestResult::enterNode(const char* _aStr) -+// old: { -+// old: ExclusiveZone zone( m_syncObject ); -+// old: for ( TestListeners::iterator it = m_listeners.begin(); -+// old: it != m_listeners.end(); -+// old: ++it ) -+// old: { -+// old: TestListener *pListener = *it; -+// old: pListener->enterNode( _aStr ); -+// old: } -+// old: } -+// old: -+// old: void -+// old: TestResult::leaveNode(const char* _aStr) -+// old: { -+// old: ExclusiveZone zone( m_syncObject ); -+// old: -+// old: for ( TestListeners::iterator it = m_listeners.begin(); -+// old: it != m_listeners.end(); -+// old: ++it ) -+// old: { -+// old: TestListener *pListener = *it; -+// old: pListener->leaveNode( _aStr ); -+// old: } -+// old: } -+ -+void TestResult::enterNode(const char* _sNode) -+{ -+ ExclusiveZone zone( m_syncObject ); -+ m_aCurrentNodeNames.push_back(std::string(_sNode)); -+} -+ -+void TestResult::leaveNode(const char* /*_sNode*/) -+{ -+ ExclusiveZone zone( m_syncObject ); -+ std::string sBack = m_aCurrentNodeNames.back(); -+ m_aCurrentNodeNames.pop_back(); -+ -+ // due to a -Wall warning, comment out. -+ // if (sBack != std::string(_sNode)) -+ // { -+ // volatile int dummy = 0; -+ // // problem?! -+ // } -+} -+ -+std::string TestResult::getNodeName() -+{ -+ std::string sName; -+ for (std::vector<std::string>::const_iterator it = m_aCurrentNodeNames.begin(); -+ it != m_aCurrentNodeNames.end(); -+ ++it) -+ { -+ if (sName.size() != 0) -+ { -+ sName += "."; -+ } -+ sName += *it; -+ } -+ return sName; -+} -+ -+// ----------------------------------------------------------------------------- -+bool TestResult::isAllowedToExecute(std::string const& _sName) -+{ -+ return m_aOptionHelper.isAllowedToExecute(getNodeName(), _sName); -+} -+// ----------------------------------------------------------------------------- -+bool TestResult::isOptionWhereAmI() -+{ -+ return m_aOptionHelper.isOptionWhereAmI(); -+} -+ -+// ----------------------------------------------------------------------------- -+void TestResult::print(Outputter&) -+{ -+} -+ -+} // namespace CppUnit -Nur in misc/build/cppunit-1.8.0/src/result: TestResult.cpp.dummy. ---- misc/cppunit-1.8.0/src/result/TestResultCollector.cpp 2008-12-10 20:46:05.532229436 +0100 -+++ misc/build/cppunit-1.8.0/src/result/TestResultCollector.cpp 2008-02-27 17:25:50.000000000 +0100 -@@ -1 +1,147 @@ --dummy -+#include <cppunit/TestFailure.h> -+#include <cppunit/result/TestResultCollector.h> -+ -+ -+namespace CppUnit -+{ -+ -+ -+TestResultCollector::TestResultCollector( TestResult* _pResult, SynchronizationObject *syncObject ) -+ : TestSucessListener( syncObject ), -+ m_pResult(_pResult), -+ m_testErrors(0) -+{ -+ reset(); -+} -+ -+ -+TestResultCollector::~TestResultCollector() -+{ -+ TestFailures::iterator itFailure = m_failures.begin(); -+ while ( itFailure != m_failures.end() ) -+ { -+ TestFailureEnvelope *pEnvelope = *itFailure++; -+ TestFailure *pFailure = pEnvelope->getTestFailure(); -+ delete pFailure; -+ } -+} -+ -+ -+void -+TestResultCollector::reset() -+{ -+ TestSucessListener::reset(); -+ -+ ExclusiveZone zone( m_syncObject ); -+ m_testErrors = 0; -+ m_tests.clear(); -+ m_failures.clear(); -+} -+ -+ -+void -+TestResultCollector::startTest( Test *test ) -+{ -+ ExclusiveZone zone (m_syncObject); -+ -+ m_tests.push_back( new TestEnvelope(test, m_pResult->getNodeName()) ); -+} -+ -+void -+TestResultCollector::endTest( Test * ) -+{ -+ // ExclusiveZone zone (m_syncObject); -+ // Nothing! -+} -+ -+ -+void -+TestResultCollector::addFailure( const TestFailure &failure ) -+{ -+ TestSucessListener::addFailure( failure ); -+ -+ ExclusiveZone zone( m_syncObject ); -+ if ( failure.isError() ) -+ ++m_testErrors; -+ m_failures.push_back( new TestFailureEnvelope(failure.clone(), m_pResult->getNodeName()) ); -+} -+ -+ -+/// Gets the number of run tests. -+int -+TestResultCollector::runTests() const -+{ -+ ExclusiveZone zone( m_syncObject ); -+ return m_tests.size(); -+} -+ -+ -+/// Gets the number of detected errors (uncaught exception). -+int -+TestResultCollector::testErrors() const -+{ -+ ExclusiveZone zone( m_syncObject ); -+ return m_testErrors; -+} -+ -+ -+/// Gets the number of detected failures (failed assertion). -+int -+TestResultCollector::testFailures() const -+{ -+ ExclusiveZone zone( m_syncObject ); -+ return m_failures.size() - m_testErrors; -+} -+ -+ -+/// Gets the total number of detected failures. -+int -+TestResultCollector::testFailuresTotal() const -+{ -+ ExclusiveZone zone( m_syncObject ); -+ return m_failures.size(); -+} -+ -+ -+/// Returns a the list failures (random access collection). -+const TestResultCollector::TestFailures & -+TestResultCollector::failures() const -+{ -+ ExclusiveZone zone( m_syncObject ); -+ return m_failures; -+} -+ -+ -+const TestResultCollector::Tests & -+TestResultCollector::tests() const -+{ -+ ExclusiveZone zone( m_syncObject ); -+ return m_tests; -+} -+ -+void TestResultCollector::addInfo(Test *_pTest, const char* _sInfo) -+{ -+ ExclusiveZone zone( m_syncObject ); -+ m_aInfos.push_back(new TestInfo(_pTest, _sInfo)); -+} -+ -+std::string TestResultCollector::getInfo(Test *_pTest) -+{ -+ for (TestInfos::const_iterator it = m_aInfos.begin(); -+ it != m_aInfos.end(); -+ ++it) -+ { -+ TestInfo *pInfo = *it; -+ Test *pTest = pInfo->getTest(); -+ if (pTest == _pTest) -+ { -+ std::string sInfo = pInfo->getString(); -+ return sInfo; -+ } -+ } -+ return std::string(); -+} -+ -+ -+} // namespace CppUnit -+ -Nur in misc/build/cppunit-1.8.0/src/result: TestResultCollector.cpp.dummy. ---- misc/cppunit-1.8.0/src/result/TestSucessListener.cpp 2008-12-10 20:46:05.660884351 +0100 -+++ misc/build/cppunit-1.8.0/src/result/TestSucessListener.cpp 2008-02-27 17:26:16.000000000 +0100 -@@ -1 +1,46 @@ --dummy -+#include <cppunit/result/TestSucessListener.h> -+ -+ -+ -+namespace CppUnit -+{ -+ -+ -+TestSucessListener::TestSucessListener( SynchronizationObject *syncObject ) -+ : SynchronizedObject( syncObject ) -+ , m_sucess( true ) -+{ -+} -+ -+ -+TestSucessListener::~TestSucessListener() -+{ -+} -+ -+ -+void -+TestSucessListener::reset() -+{ -+ ExclusiveZone zone( m_syncObject ); -+ m_sucess = true; -+} -+ -+ -+void -+TestSucessListener::addFailure( const TestFailure & ) -+{ -+ ExclusiveZone zone( m_syncObject ); -+ m_sucess = false; -+} -+ -+ -+bool -+TestSucessListener::wasSuccessful() const -+{ -+ ExclusiveZone zone( m_syncObject ); -+ return m_sucess; -+} -+ -+ -+} // namespace CppUnit -+ -Nur in misc/build/cppunit-1.8.0/src/result: TestSucessListener.cpp.dummy. ---- misc/cppunit-1.8.0/src/result/TextTestResult.cpp 2008-12-10 20:46:05.742386241 +0100 -+++ misc/build/cppunit-1.8.0/src/result/TextTestResult.cpp 2008-02-27 17:24:56.000000000 +0100 -@@ -1 +1,191 @@ --dummy -+#include <cppunit/Exception.h> -+#include <cppunit/NotEqualException.h> -+#include <cppunit/Test.h> -+#include <cppunit/TestFailure.h> -+#include <cppunit/result/TextTestResult.h> -+// #include <TextTestResult.h> -+//!io #include <iostream> -+ -+namespace CppUnit { -+ -+ -+TextTestResult::TextTestResult(GetOpt& _aOptions) -+ :TestResult(_aOptions), -+ m_aResulter(this) -+{ -+ addListener( &m_aResulter ); -+} -+ -+ -+void -+TextTestResult::addFailure( const TestFailure &failure ) -+{ -+ TestResult::addFailure( failure ); -+ // std::cerr << ( failure.isError() ? "E" : "F" ); -+ if (failure.isError()) -+ fprintf(stderr, "E"); -+ else -+ fprintf(stderr, "F"); -+} -+ -+ -+void -+TextTestResult::startTest( Test *test ) -+{ -+ TestResult::startTest (test); -+ // std::cerr << "."; -+ fprintf(stderr, "."); -+} -+ -+void TextTestResult::endTest( Test *test ) -+{ -+ TestResult::endTest (test); -+} -+ -+ -+void -+TextTestResult::printFailures( std::ostream &stream ) -+{ -+ TestResultCollector::TestFailures::const_iterator itFailure = m_aResulter.failures().begin(); -+ int failureNumber = 1; -+ while ( itFailure != m_aResulter.failures().end() ) -+ { -+ stream << std::endl; -+ TestFailure *pFailure= (*itFailure++)->getTestFailure(); -+ printFailure( pFailure, failureNumber++, stream ); -+ } -+} -+ -+ -+void -+TextTestResult::printFailure( TestFailure *failure, -+ int failureNumber, -+ std::ostream &stream ) -+{ -+ printFailureListMark( failureNumber, stream ); -+ stream << ' '; -+ printFailureTestName( failure, stream ); -+ stream << ' '; -+ printFailureType( failure, stream ); -+ stream << ' '; -+ printFailureLocation( failure->sourceLine(), stream ); -+ stream << std::endl; -+ printFailureDetail( failure->thrownException(), stream ); -+ stream << std::endl; -+} -+ -+ -+void -+TextTestResult::printFailureListMark( int failureNumber, -+ std::ostream &stream ) -+{ -+ stream << failureNumber << ")"; -+} -+ -+ -+void -+TextTestResult::printFailureTestName( TestFailure *failure, -+ std::ostream &stream ) -+{ -+ Test* pTest = failure->failedTest(); -+ stream << "test: " << pTest->getName(); -+} -+ -+ -+void -+TextTestResult::printFailureType( TestFailure *failure, -+ std::ostream &stream ) -+{ -+ stream << "(" -+ << (failure->isError() ? "E" : "F") -+ << ")"; -+} -+ -+ -+void -+TextTestResult::printFailureLocation( SourceLine sourceLine, -+ std::ostream &stream ) -+{ -+ if ( !sourceLine.isValid() ) -+ return; -+ -+ stream << "line: " << sourceLine.lineNumber() -+ << ' ' << sourceLine.fileName(); -+} -+ -+ -+void -+TextTestResult::printFailureDetail( Exception *thrownException, -+ std::ostream &stream ) -+{ -+ if ( thrownException->isInstanceOf( NotEqualException::type() ) ) -+ { -+ NotEqualException *e = (NotEqualException*)thrownException; -+ stream << "expected: " << e->expectedValue() << std::endl -+ << "but was: " << e->actualValue(); -+ if ( !e->additionalMessage().empty() ) -+ { -+ stream << std::endl; -+ stream << "additional message:" << std::endl -+ << e->additionalMessage(); -+ } -+ } -+ else -+ { -+ stream << " \"" << thrownException->what() << "\""; -+ } -+} -+ -+ -+void -+TextTestResult::print( std::ostream& stream ) -+{ -+ printHeader( stream ); -+ stream << std::endl; -+ printFailures( stream ); -+} -+ -+ -+void -+TextTestResult::printHeader( std::ostream &stream ) -+{ -+ if (m_aResulter.wasSuccessful ()) -+ stream << std::endl << "OK (" << m_aResulter.runTests () << " tests)" -+ << std::endl; -+ else -+ { -+ stream << std::endl; -+ printFailureWarning( stream ); -+ printStatistics( stream ); -+ } -+} -+ -+ -+void -+TextTestResult::printFailureWarning( std::ostream &stream ) -+{ -+ stream << "!!!FAILURES!!!" << std::endl; -+} -+ -+ -+void -+TextTestResult::printStatistics( std::ostream &stream ) -+{ -+ stream << "Test Results:" << std::endl; -+ -+ stream << "Run: " << m_aResulter.runTests() -+ << " Failures: " << m_aResulter.testFailures() -+ << " Errors: " << m_aResulter.testErrors() -+ << std::endl; -+} -+ -+ -+std::ostream & -+operator <<( std::ostream &stream, -+ TextTestResult &result ) -+{ -+ result.print (stream); return stream; -+} -+ -+ -+} // namespace CppUnit -Nur in misc/build/cppunit-1.8.0/src/result: TextTestResult.cpp.dummy. ---- misc/cppunit-1.8.0/src/result/emacsTestResult.cxx 2008-12-10 20:46:09.419267625 +0100 -+++ misc/build/cppunit-1.8.0/src/result/emacsTestResult.cxx 2008-12-09 09:06:11.000000000 +0100 -@@ -1 +1,193 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include <stdlib.h> -+ -+#include <map> -+#include <cppunit/Exception.h> -+#include <cppunit/NotEqualException.h> -+#include <cppunit/Test.h> -+#include <cppunit/TestFailure.h> -+#include <cppunit/result/emacsTestResult.hxx> -+// #include <TextTestResult.h> -+//!io #include <iostream> -+#include <string> -+ -+#include <rtl/string.hxx> -+#include "cppunit/result/outputter.hxx" -+ -+namespace CppUnit { -+ -+ emacsTestResult::emacsTestResult(GetOpt & _aOptions) -+ :TestResult(_aOptions), -+ m_aOptions(_aOptions), -+ m_aResulter(this) -+ { -+ addListener( &m_aResulter ); -+ } -+ -+ //# struct ltstr -+ //# { -+ //# bool operator()(const CppUnit::Test* p1, const CppUnit::Test* p2) const -+ //# { -+ //# return p1 < p2; -+ //# } -+ //# }; -+ //# typedef std::map<CppUnit::Test*, bool, ltstr> TestPtrList; -+ -+ void -+ emacsTestResult::print( Outputter& stream ) -+ { -+ printHeader( stream ); -+ // stream << std::endl; -+ // printFailures( stream ); -+ -+ // TestPtrList aFailedTests; -+ -+ for (TestResultCollector::TestFailures::const_iterator it2 = m_aResulter.failures().begin(); -+ it2 != m_aResulter.failures().end(); -+ ++it2) -+ { -+ TestFailureEnvelope *pEnvelop = *it2; -+ TestFailure *pFailure = pEnvelop->getTestFailure(); -+ std::string sNodeName = pEnvelop->getString(); -+ -+ // aFailedTests[ pFailure->failedTest() ] = true; -+ -+ printFailureLine(stream, pFailure, sNodeName); -+ } -+ -+ // only errors are from interest here -+ //# for (TestResultCollector::Tests::const_iterator it = m_aResulter.tests().begin(); -+ //# it != m_aResulter.tests().end(); -+ //# ++it) -+ //# { -+ //# TestEnvelope *pEnvelop = *it; -+ //# Test* pTest = pEnvelop->getTest(); -+ //# std::string sNodeName = pEnvelop->getString(); -+ //# -+ //# if (aFailedTests.find(pTest) == aFailedTests.end()) -+ //# { -+ //# std::string sInfo = m_aResulter.getInfo(pTest); -+ //# printTestLine(stream, pTest, sNodeName, sInfo); -+ //# } -+ //# } -+ stream << "Test #PASSED#" << Outputter::endl(); -+ } -+ -+ -+ void -+ emacsTestResult::printHeader( Outputter &stream ) -+ { -+ std::string sDate(m_aOptionHelper.createDateTag()); -+ stream << sDate << Outputter::endl(); -+ } -+ -+ void -+ emacsTestResult::printFailureLine( Outputter &stream, TestFailure *_pFailure, std::string const& _sNodeName) -+ { -+ std::string aName; -+ aName += _sNodeName; -+ aName += "."; -+ aName += _pFailure->failedTestName(); -+ -+ SourceLine aLine = _pFailure->sourceLine(); -+ sal_Int32 nLine = -1; -+ std::string sFilename; -+ if (aLine.isValid()) -+ { -+ nLine = aLine.lineNumber(); -+ sFilename = aLine.fileName(); -+ } -+ -+ Exception *pExp = _pFailure->thrownException(); -+ std::string sWhat; -+ if (pExp) -+ { -+ sWhat = pExp->what(); -+ } -+ -+ stream << sFilename; -+ stream << ":"; -+ stream << nLine; -+ stream << ":"; -+ -+ stream << aName; -+ stream << ";#FAILED#"; -+ // ErrorType::num eErr = _pFailure->getErrorType(); -+ //# if (isErr) -+ //# stream << "FAILED#;"; -+ //# else -+ //# stream << "ERROR#;"; -+ -+ stream << sWhat; -+ stream << Outputter::endl(); -+ } -+ -+ //# void -+ //# emacsTestResult::printTestLine( Outputter &stream, Test* _pTest, std::string const& _sNodeName, std::string const& _sInfo) -+ //# { -+ //# std::string aName; -+ //# aName += _sNodeName; -+ //# aName += "."; -+ //# aName += _pTest->getName(); -+ //# -+ //# stream << aName; -+ //# stream << ";"; -+ //# stream << _sInfo << "#"; -+ //# stream << "OK#"; -+ //# stream << std::endl; -+ //# } -+ -+ -+//# void -+//# emacsTestResult::printStatistics( Outputter &stream ) -+//# { -+//# stream << "Test Results:" << std::endl; -+//# -+//# stream << "Run: " << runTests() -+//# << " Failures: " << testFailures() -+//# << " Errors: " << testErrors() -+//# << std::endl; -+//# } -+ -+ -+ Outputter & -+ operator <<( Outputter &stream, -+ emacsTestResult &result ) -+ { -+ result.print (stream); return stream; -+ } -+ -+ -+} // namespace CppUnit -Nur in misc/build/cppunit-1.8.0/src/result: emacsTestResult.cxx.dummy. ---- misc/cppunit-1.8.0/src/result/log.cxx 2008-12-10 20:46:09.499346711 +0100 -+++ misc/build/cppunit-1.8.0/src/result/log.cxx 2008-12-10 20:42:45.000000000 +0100 -@@ -1 +1,125 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include "testshl/log.hxx" -+ -+// #include <hash_map> -+// #include <list> -+// #include <set> -+ -+using namespace std; -+ -+::osl::FileBase::RC Log::open( sal_Bool append ) { -+ -+ ::osl::FileBase::RC ret; -+ -+ if ( ! append ) { -+ ret = ::osl::File::remove( m_logurl ); -+ } -+ -+ if( m_logfile->open( OpenFlag_Write ) == ::osl::FileBase::E_NOENT ) { -+ ret = m_logfile->open( OpenFlag_Write | OpenFlag_Create ); -+ } -+ else { -+ ret = m_logfile->setPos( Pos_End, 0 ); -+ } -+ return ret; -+} -+ -+::osl::FileBase::RC Log::write( const sal_Char* buf, sal_Bool v ) { -+ sal_uInt64 uBytes=0; -+ sal_uInt32 len = 0; -+ const sal_Char* ptr = buf; -+ -+ if( ptr ) { -+ while( *ptr++ ) len++; -+ } -+ -+ if ( v ) { -+ // cout << buf << flush; -+ printf("%s", buf); -+ } -+ return m_logfile->write( buf, len , uBytes ); -+} -+ -+::osl::FileBase::RC Log::write( const rtl::OString& buf, sal_Bool v ) { -+ sal_uInt64 uBytes=0; -+ if ( v ) { -+ // cout << buf.getStr() << flush; -+ printf("%s", buf.getStr()); -+ } -+ return m_logfile->write( buf.getStr(), buf.getLength(), uBytes ); -+} -+/* -+// LLA: due to a problem with sal/OUStingBuffer getLength() which isn't const, this -+// is so not compilable. -+::osl::FileBase::RC Log::write( rtl::OStringBuffer const& buf, sal_Bool v ) { -+ sal_uInt64 uBytes=0; -+ if ( v ) { -+ cout << buf.getStr() << flush; -+ } -+ return m_logfile->write( buf.getStr(), buf.getLength(), uBytes ); -+} -+*/ -+::osl::FileBase::RC Log::write( const rtl::OUString& buf, -+ rtl_TextEncoding tenc, sal_Bool v ) { -+ sal_uInt64 uBytes=0; -+ if ( ! tenc ) { -+ tenc = RTL_TEXTENCODING_ASCII_US; -+ } -+ rtl::OStringBuffer osbuf( -+ rtl::OUStringToOString( buf, tenc ).getStr() ); -+ -+ if ( v ) { -+ // cout << osbuf.getStr() << flush; -+ printf("%s", osbuf.getStr()); -+ } -+ return m_logfile->write( osbuf.getStr(), osbuf.getLength(), uBytes ); -+} -+ -+Log &operator <<( Log &_aLog, const sal_Char * _sValue ) -+{ -+ _aLog.write(_sValue); return _aLog; -+} -+Log &operator <<( Log &_aLog, rtl::OString const& _sValue ) -+{ -+ _aLog.write(_sValue); return _aLog; -+} -+Log &operator <<( Log &_aLog, rtl::OUString const& _sValue ) -+{ -+ _aLog.write(_sValue); return _aLog; -+} -+//! Log &operator <<( Log &_aLog, rtl::OStringBuffer const& _sValue ) -+//! { -+//! _aLog.write(_sValue); return _aLog; -+//! } -Nur in misc/build/cppunit-1.8.0/src/result: log.cxx.dummy. ---- misc/cppunit-1.8.0/src/result/makefile.mk 2008-12-10 20:46:09.542019008 +0100 -+++ misc/build/cppunit-1.8.0/src/result/makefile.mk 2008-12-10 20:23:07.000000000 +0100 -@@ -1 +1,88 @@ --dummy -+#************************************************************************* -+# -+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+# -+# Copyright 2008 by Sun Microsystems, Inc. -+# -+# OpenOffice.org - a multi-platform office productivity suite -+# -+# $RCSfile$ -+# -+# $Revision$ -+# -+# This file is part of OpenOffice.org. -+# -+# OpenOffice.org is free software: you can redistribute it and/or modify -+# it under the terms of the GNU Lesser General Public License version 3 -+# only, as published by the Free Software Foundation. -+# -+# OpenOffice.org 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 Lesser General Public License version 3 for more details -+# (a copy is included in the LICENSE file that accompanied this code). -+# -+# You should have received a copy of the GNU Lesser General Public License -+# version 3 along with OpenOffice.org. If not, see -+# <http://www.openoffice.org/license.html> -+# for a copy of the LGPLv3 License. -+# -+#************************************************************************* -+ -+PRJ=..$/..$/..$/..$/..$/.. -+INCEXT=..$/..$/include -+# INCEXT=$(SOLARSRC)$/cppunit/$/$(INPATH)/$/misc$/build$/cppunit-1.8.0$/include -+# PRJ=..$/.. -+# PRJINC=..$/.. -+ -+ -+PRJNAME=cppunit -+TARGET=c5t_testresult -+LIBTARGET=NO -+ENABLE_EXCEPTIONS=TRUE -+# ENABLE_RTTI=TRUE -+ -+# --- Settings ----------------------------------------------------- -+ -+.INCLUDE : settings.mk -+ -+# --- Files -------------------------------------------------------- -+ -+# CXXFILES = \ -+# querytemplate.cxx \ -+# stringhelper.cxx -+ -+# ENVCFLAGSCXX+=-DCPPUNIT_BUILD_DLL -+SLOFILES = \ -+ $(SLO)$/SynchronizedObject.obj \ -+ $(SLO)$/TestResult.obj \ -+ $(SLO)$/TestResultCollector.obj \ -+ $(SLO)$/TestSucessListener.obj \ -+ $(SLO)$/emacsTestResult.obj \ -+ $(SLO)$/log.obj \ -+ $(SLO)$/optionhelper.obj \ -+ $(SLO)$/outputter.obj \ -+ $(SLO)$/signal.obj \ -+ $(SLO)$/testshlTestResult.obj \ -+ $(SLO)$/treswrapper.obj -+ -+# currently unused -+# $(SLO)$/TextTestResult.obj -+ -+LIB1TARGET= $(LB)$/$(TARGET).lib -+LIB1OBJFILES= $(SLOFILES) -+ -+.IF "$(GUI)"=="WNT" -+.IF "$(COM)"=="GCC" -+LIB1ARCHIV=$(LB)$/lib$(TARGET)$(DLLPOSTFIX).a -+.ENDIF -+.ENDIF -+ -+.IF "$(GUI)" == "UNX" -+LIB1ARCHIV=$(LB)$/lib$(TARGET)$(DLLPOSTFIX).a -+.ENDIF -+ -+# --- Targets ------------------------------------------------------ -+ -+.INCLUDE : target.mk -+ -Nur in misc/build/cppunit-1.8.0/src/result: makefile.mk.dummy. ---- misc/cppunit-1.8.0/src/result/optionhelper.cxx 2008-12-10 20:46:09.615952197 +0100 -+++ misc/build/cppunit-1.8.0/src/result/optionhelper.cxx 2008-12-09 09:06:14.000000000 +0100 -@@ -1 +1,317 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include "cppunit/result/optionhelper.hxx" -+// #include <sstream> -+// #include <string> -+#include <osl/time.h> -+#include "cppunit/cmdlinebits.hxx" -+ -+// ----------------------------------------------------------------------------- -+ -+namespace -+{ -+ void split( const rtl::OString& opt, -+ const rtl::OString& _sSeparator, -+ OStringList& optLine ) -+ { -+ optLine.clear(); -+ // const sal_Int32 cSetLen = cSet.getLength(); -+ sal_Int32 index = 0; -+ sal_Int32 oldIndex = 0; -+ -+ // sal_Int32 i; -+ // sal_Int32 j = 0; -+ while ( opt.getLength() > 0) -+ { -+ // for ( i = 0; i < cSetLen; i++ ) -+ // { -+ index = opt.indexOf( _sSeparator, oldIndex); -+ if( index != -1 ) -+ { -+ optLine.push_back( opt.copy( oldIndex, index - oldIndex ) ); -+ oldIndex = index + _sSeparator.getLength(); -+ } -+ // } -+ else // if (index == -1) -+ { -+ optLine.push_back( opt.copy( oldIndex ) ); -+ break; -+ } -+ } -+ } ///< split -+ -+ bool match(OStringList const& _aFilter, OStringList const& _aName) -+ { -+ OStringList::const_iterator aFilterIter = _aFilter.begin(); -+ OStringList::const_iterator aValueIter = _aName.begin(); -+ -+ bool bMatch = false; -+ -+ while (aFilterIter != _aFilter.end() && aValueIter != _aName.end()) -+ { -+ rtl::OString sFilter = *aFilterIter; -+ rtl::OString sName = *aValueIter; -+ -+ if (sFilter == sName) -+ { -+ bMatch = true; -+ ++aFilterIter; -+ ++aValueIter; -+ } -+ else if (sFilter == "*") -+ { -+ bMatch = true; -+ break; -+ } -+ else -+ { -+ // Filter does not match -+ bMatch = false; -+ break; -+ } -+ } -+ return bMatch; -+ } -+} -+ -+/* static */ -+std::string OptionHelper::integerToAscii(sal_Int32 nValue) -+{ -+ sal_Char cBuf[30]; -+ sal_Char *pBuf = cBuf; -+ sprintf(pBuf, "%d", static_cast<int>(nValue)); -+//# std::ostringstream sBuf; -+//# sBuf << nValue; -+// rtl::OString sStr; -+// sStr = rtl::OString::valueOf(nValue); -+ return std::string(pBuf); -+} -+ -+/* static */ -+// if a given String is less then 2 char, add a "0" in front. -+std::string OptionHelper::twoDigits(std::string const& _sValue) -+{ -+ std::string sBack; -+ if (_sValue.length() == 0) -+ { -+ sBack = "00"; -+ } -+ else if (_sValue.length() == 1) -+ { -+ sBack = "0"; -+ sBack += _sValue; -+ } -+ else -+ { -+ sBack = _sValue; -+ } -+ return sBack; -+} -+ -+ -+std::string OptionHelper::createDateTag(std::string const& _sProjectId, std::string const& _sBuildId) -+{ -+ TimeValue tmv_system; -+ TimeValue tmv_local; -+ oslDateTime dt; -+ osl_getSystemTime( &tmv_system ); -+ osl_getLocalTimeFromSystemTime(&tmv_system, &tmv_local); -+ osl_getDateTimeFromTimeValue( &tmv_local, &dt ); -+ -+ sal_Int32 nYear = dt.Year; -+ sal_Int32 nMonth = dt.Month; -+ sal_Int32 nDay = dt.Day; -+ -+ std::string sDate; -+ sDate = "# Current Time: "; -+ sDate += std::string(twoDigits(integerToAscii(dt.Hours))); -+ sDate += ":"; -+ sDate += std::string(twoDigits(integerToAscii(dt.Minutes))); -+ sDate += ":"; -+ sDate += std::string(twoDigits(integerToAscii(dt.Seconds))); -+ sDate += "\n"; -+ -+ sDate += "["; -+ -+ // sDate += rtl::OString::valueOf(nYear); -+ sDate.append(integerToAscii(nYear)); -+ sDate += "."; -+ if (nMonth < 10) -+ sDate += "0"; -+ // sDate += rtl::OString::valueOf(nMonth); -+ sDate.append(integerToAscii(nMonth)); -+ sDate += "."; -+ if (nDay < 10) -+ sDate += "0"; -+ // sDate += rtl::OString::valueOf(nDay); -+ sDate += std::string(integerToAscii(nDay)); -+ sDate += "/"; -+ sDate += _sProjectId; -+ sDate += "/"; -+ sDate += _sBuildId; -+ sDate += "]"; -+ -+ return sDate; -+} -+ -+//# rtl::OString createDateTag() -+//# { -+//# TimeValue tmv; -+//# oslDateTime dt; -+//# osl_getSystemTime( &tmv ); -+//# osl_getDateTimeFromTimeValue( &tmv, &dt ); -+//# -+//# sal_Int32 nYear = dt.Year; -+//# sal_Int32 nMonth = dt.Month; -+//# sal_Int32 nDay = dt.Day; -+//# -+//# rtl::OString sDate("["); -+//# sDate += rtl::OString::valueOf(nYear); -+//# sDate += "."; -+//# if (nMonth < 10) -+//# sDate += "0"; -+//# sDate += rtl::OString::valueOf(nMonth); -+//# sDate += "."; -+//# if (nDay < 10) -+//# sDate += "0"; -+//# sDate += rtl::OString::valueOf(nDay); -+//# sDate += "//]"; -+//# -+//# return sDate; -+//# } -+ -+std::string OptionHelper::createDateTag() -+{ -+ return createDateTag(m_sProjectId, m_sBuildId); -+} -+ -+bool OptionHelper::showErrors() -+{ -+ bool bRetValue = true; // default, show all -+ if (m_aOption.hasOpt("-noerrors")) -+ { -+ bRetValue = false; -+ } -+ return bRetValue; -+} -+ -+bool OptionHelper::showTests() -+{ -+ bool bRetValue = true; // default, show all -+ if (m_aOption.hasOpt("-onlyerrors")) -+ { -+ bRetValue = false; -+ } -+ return bRetValue; -+} -+ -+// Check which parameter is given for handle the jobs. -+// If no parameter is given, all jobs (tests) will run through -+void OptionHelper::handleJobs() -+{ -+ // load job file, the file contains the functions which we only want to test. -+ if (m_aOption.hasOpt("-jobexclude")) -+ { -+ rtl::OString sJobFile = m_aOption.getOpt("-jobexclude"); -+ m_aJobExcludeList.readfile(sJobFile.getStr(), JOB_EXCLUDE_LIST); -+ } -+ -+ if (m_aOption.hasOpt("-jobonly")) -+ { -+ rtl::OString sJobFile = m_aOption.getOpt("-jobonly"); -+ m_aJobOnlyList.readfile(sJobFile.getStr(), JOB_ONLY_LIST); -+ } -+ -+ // -+ if (m_aOption.hasOpt("-jobfilter")) -+ { -+ rtl::OString sJobFilter = m_aOption.getOpt("-jobfilter"); -+ split(sJobFilter, ".", m_aJobFilter); -+ } -+} -+ -+// ----------------------------------------------------------------------------- -+// Here will be decide, if a job/test will execute or not. -+// therefore exist some lists, in which stay all jobs (positive list) or a list (negative list) which jobs should not execute -+// or if only specific jobs should execute by a given filter -+ -+bool OptionHelper::isAllowedToExecute(std::string const& _sNodeName, std::string const& _sName) -+{ -+ std::string sJobName = _sNodeName + "." + _sName; -+ // t_print(T_VERBOSE, "Jobname %s\n", sJobName.c_str()); -+ if (isOnlyShowJobs()) // true, if parameter -onlyshowjob -+ { -+ m_aJobOnlyList.setJobListEntry(sJobName, JOB_ACCESS); -+ return false; -+ } -+ -+ if (m_aJobOnlyList.size()) // >0 if parameter -jobonly -+ { -+ if (m_aJobOnlyList.getJobListEntry(sJobName) != JOB_NOT_FOUND) -+ { -+ // job entry found, mark as accessed -+ m_aJobOnlyList.setJobListEntry(sJobName, JOB_ACCESS); -+ return true; -+ } -+ return false; -+ } -+ else if (m_aJobFilter.size() > 0) // >0 if parameter -jobfilter -+ { -+ OStringList aSplitName; -+ split(sJobName.c_str(), ".", aSplitName); -+ if (! match(m_aJobFilter, aSplitName)) -+ { -+ t_print(T_VERBOSE, "job: '%s' filtered by [-jobfilter]\n", sJobName.c_str()); -+ return false; -+ } -+ } -+ else if (m_aJobExcludeList.size() > 0) // >0 if parameter -jobexclude -+ { -+ if (m_aJobExcludeList.getJobListEntry(sJobName) != JOB_NOT_FOUND) -+ { -+ // job entry found, this job should not executed, so return false -+ t_print(T_VERBOSE, "job: '%s' filtered by [-jobexclude]\n", sJobName.c_str()); -+ return false; -+ } -+ // m_aJobOnlyList.setJobListEntry(sJobName, JOB_ACCESS); -+ return true; -+ } -+ else -+ { -+ //! not handled yet -+ } -+ -+ return true; -+} -+ -Nur in misc/build/cppunit-1.8.0/src/result: optionhelper.cxx.dummy. ---- misc/cppunit-1.8.0/src/result/outputter.cxx 2008-12-10 20:46:09.657356434 +0100 -+++ misc/build/cppunit-1.8.0/src/result/outputter.cxx 2008-12-09 09:06:18.000000000 +0100 -@@ -1 +1,106 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+// -+#include <string> -+#include <sal/types.h> -+#include "cppunit/result/outputter.hxx" -+ -+// ----------------------------------------------------------------------------- -+ -+Outputter::~Outputter() -+{ -+ // delete m_pLog; -+} -+ -+void Outputter::writeToAll(const sal_Char* _sCharStr) -+{ -+ // std::cout << _sCharStr; -+ if (m_pStream) -+ { -+ *m_pStream << _sCharStr; -+ } -+ if (m_pLog.get()) -+ { -+ m_pLog->write(_sCharStr); -+ } -+} -+ -+void Outputter::write(const sal_Char* _sCharStr) -+{ -+ writeToAll(_sCharStr); -+} -+ -+void Outputter::write(std::string const& _sStr) -+{ -+ writeToAll(_sStr.c_str()); -+} -+ -+void Outputter::write(sal_Int32 _nValue) -+{ -+ sal_Char cBuf[20]; -+ sal_Char* pBuf = cBuf; -+ sprintf(pBuf, "%d", SAL_STATIC_CAST(int, _nValue)); -+ writeToAll(pBuf); -+} -+ -+// ----------------------------------------------------------------------------- -+ -+Outputter& operator <<( Outputter &_aStreamWrapper, const sal_Char* _sValue) -+{ -+ _aStreamWrapper.write(_sValue); -+ return _aStreamWrapper; -+} -+ -+Outputter& operator <<( Outputter &_aStreamWrapper, std::string const& _sValue) -+{ -+ _aStreamWrapper.write(_sValue); -+ return _aStreamWrapper; -+} -+ -+Outputter& operator <<( Outputter &_aStreamWrapper, sal_Int32 _nValue) -+{ -+ _aStreamWrapper.write(_nValue); -+ return _aStreamWrapper; -+} -+ -+//# Outputter& operator <<( Outputter &_aStreamWrapper, double ) -+//# { -+//# return _aStreamWrapper; -+//# } -+ -+Outputter& operator <<( Outputter &_aStreamWrapper, Outputter::endl const&) -+{ -+ _aStreamWrapper.write("\n"); -+ return _aStreamWrapper; -+} -Nur in misc/build/cppunit-1.8.0/src/result: outputter.cxx.dummy. ---- misc/cppunit-1.8.0/src/result/signal.cxx 2008-12-10 20:46:09.750401577 +0100 -+++ misc/build/cppunit-1.8.0/src/result/signal.cxx 2008-12-10 20:42:46.000000000 +0100 -@@ -1 +1,998 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include <stdio.h> -+#include <stdlib.h> -+#include <string.h> -+#if (defined UNX) || (defined OS2) -+#include <signal.h> -+#include <errno.h> -+#endif -+ -+#include <fstream> -+#include <vector> -+#include <hash_map> -+ -+#include <rtl/tres.h> -+#include <rtl/string.hxx> -+ -+#include "testshl/autoregisterhelper.hxx" -+#include "testshl/getopt.hxx" -+#include "signal.hxx" -+#include <cppunit/tagvalues.hxx> -+#include <unistd.h> -+#include "testshl/filehelper.hxx" -+#include <cppunit/result/TestResult.h> -+#include "cppunit/signaltest.h" -+#include "cppunit/Exception.h" -+ -+#ifdef WNT -+#include "testshl/winstuff.hxx" -+#endif -+ -+// typedef std::vector<std::string> StringList; -+// StringList sCurrentNodeName; -+CppUnit::TestResult *pTestResult = NULL; -+std::string sSignalFile; -+ -+typedef std::hash_map< std::string, int > HashMap; -+HashMap m_aSignalHash; -+bool bSignalsCached = false; -+bool bDoNotTouchSignalFile = false; -+ -+// ----------------------------------------------------------------------------- -+ -+// return 'true' if signalfile doesn't exist. -+// else 'false' -+bool existsSignalFile(std::string const& _sSignalFilename) -+{ -+ FILE* pFile = fopen(_sSignalFilename.c_str(), "r"); -+ if (!pFile) -+ { -+ return false; -+ } -+ fprintf(stderr, "'%s' exists.\n", _sSignalFilename.c_str()); -+ fclose(pFile); -+ return true; -+} -+ -+// ----------------------------------------------------------------------------- -+void createEmptySignalFile(std::string const& _sSignalFilename) -+{ -+ FILE* pFile = fopen(_sSignalFilename.c_str(), "w"); -+ if (!pFile) -+ { -+ fprintf(stderr, "error: Could not create signal helper file %s for signal info.\n", _sSignalFilename.c_str()); -+ } -+ else -+ { -+ fprintf(pFile, "# This is an auto generated helper file for signal handling.\n"); -+ fprintf(pFile, "# An entry start by '#' is a comment.\n"); -+ fprintf(pFile, "# All other are test functions which have abort, before this line is removed.\n"); -+ fprintf(pFile, "# So you have to check this functions by hand.\n"); -+ -+ fclose(pFile); -+ } -+} -+ -+// ----------------------------------------------------------------------------- -+/** get Current PID. -+*/ -+inline ::rtl::OUString getCurrentPID( ) -+{ -+ //~ Get current PID and turn it into OUString; -+ sal_uInt32 nPID = 0; -+#ifdef WNT -+ nPID = WinGetCurrentProcessId(); -+#else -+ nPID = getpid(); -+#endif -+ return ( ::rtl::OUString::valueOf( static_cast<long>(nPID ) ) ); -+} -+// ----------------------------------------------------------------------------- -+static std::string integerToAscii(sal_uInt32 nValue) -+{ -+ sal_Char cBuf[30]; -+ sal_Char *pBuf = cBuf; -+ sprintf(pBuf, "%d", static_cast<unsigned int>(nValue)); -+ return std::string(pBuf); -+} -+void my_sleep(int sec); -+ -+// ----------------------------------------------------------------------------- -+void setSignalFilename(GetOpt & opt) -+{ -+ if (opt.hasOpt("-dntsf") || opt.hasOpt("-donottouchsignalfile")) -+ { -+ // special feature, for debugging, so the signal file will not manipulate. -+ // but create, if no one exist. -+ bDoNotTouchSignalFile = true; -+ } -+ -+ if (opt.hasOpt("-sf") || opt.hasOpt("-signalfile")) -+ { -+ if (opt.hasOpt("-sf")) -+ { -+ sSignalFile = opt.getOpt("-sf"); -+ } -+ else if (opt.hasOpt("-signalfile")) -+ { -+ sSignalFile = opt.getOpt("-signalfile"); -+ } -+ } -+ else -+ { -+ std::string sPath; -+ // std::string sPath(FileHelper::getTempPath()); -+ std::string sFilename("signalfile"); -+ std::string sFilenameExt(".txt"); -+ bool bCanQuitLoop = true; -+ do -+ { -+ -+// #ifdef WNT -+// sPath += "\\"; -+// #endif -+// #ifdef UNX -+// sPath += "/"; -+// #endif -+ sPath = sFilename; -+ // BUG: i72675 -+ // add "_12345" where 12345 is the current process ID -+ -+ TimeValue aTimeValue; -+ osl_getSystemTime(&aTimeValue); -+ -+ sPath += "_"; -+ sPath += integerToAscii(aTimeValue.Seconds); -+ // rtl::OUString suPID = getCurrentPID(); -+ // rtl::OString sPID = rtl::OUStringToOString(suPID, RTL_TEXTENCODING_ASCII_US); -+ // sPath += sPID.getStr(); -+ sPath += sFilenameExt; -+ bCanQuitLoop = true; -+ if (existsSignalFile(sPath)) -+ { -+ // there is already a signal file, wait a second, choose an other one. -+ my_sleep(1); -+ bCanQuitLoop = false; -+ } -+ } -+ while (!(bCanQuitLoop)); -+ -+ sSignalFile = sPath; -+ fprintf(stderr, "Use default signal file name '%s'\n", sSignalFile.c_str()); -+ } -+ -+ if (opt.hasOpt("-dnrmsf")) -+ { -+ fprintf(stderr, "'Don't remove signal file' (-dnrmsf) is set.\n"); -+ } -+ else -+ { -+ if (bDoNotTouchSignalFile == true) -+ { -+ fprintf(stderr, "warning: 'Don't touch signal file' parameter (-dntsf) is set, will not remove existing signal file.\n"); -+ } -+ else -+ { -+ // remove signalfile -+ createEmptySignalFile(sSignalFile); -+ } -+ } -+} -+ -+// ----------------------------------------------------------------------------- -+bool doNotTouchSignalFile() { return bDoNotTouchSignalFile; } -+ -+// ----------------------------------------------------------------------------- -+std::string buildTestFunctionName(std::string const& _sName) -+{ -+ std::string sName; -+ if (pTestResult) -+ { -+ sName = pTestResult->getNodeName(); -+ sName += "."; -+ } -+ -+/* -+ for (StringList::const_iterator it = sCurrentNodeName.begin(); -+ it != sCurrentNodeName.end(); -+ ++it) -+ { -+ sName += *it; -+ sName += "."; -+ } -+*/ -+ sName += _sName; -+ -+ return sName; -+} -+// ----------------------------------------------------------------------------- -+// old: void executionPushName(std::string const& _sName) -+// old: { -+// old: sCurrentNodeName.push_back(_sName); -+// old: } -+// old: void executionPopName() -+// old: { -+// old: sCurrentNodeName.pop_back(); -+// old: } -+// old: -+ -+// ----------------------------------------------------------------------------- -+// ------------------------------ Signal Handling ------------------------------ -+// ----------------------------------------------------------------------------- -+ -+// std::string sLastTestFunctionName; -+ -+std::string getSignalName(sal_Int32 nSignalNo); -+// ----------------------------------------------------------------------------- -+ -+std::string getSignalFilename() -+{ -+ return sSignalFile; -+} -+ -+// ----------------------------------------------------------------------------- -+// void storeNoSignal(std::string const& _sTestName) -+// { -+ // sLastTestFunctionName = buildTestFunctionName(_sTestName); -+ // std::ofstream out(getSignalFilename().c_str(), std::ios::out); -+ // out << NO_SIGNAL << std::endl; // no signal! -+// } -+ -+void markSignalAsAlreadyDone(sal_Int32 _nSignalNo) -+{ -+ // std::ofstream out(getSignalFilename().c_str(), std::ios::out | std::ios::app); -+ FILE *out = fopen(getSignalFilename().c_str(), "a"); -+ if (out != NULL) -+ { -+//# out << "# the previous test function creates signal: " -+//# << getSignalName(_nSignalNo) -+//# << " (" -+//# << _nSignalNo -+//# << ")" << std::endl; -+//# // out << sLastTestFunctionName << std::endl; // SIGNAL! -+ -+ fprintf(out, "# the previous test function creates signal: %s(%d)\n", getSignalName(_nSignalNo).c_str(), SAL_STATIC_CAST(int, _nSignalNo)); -+ // fprintf(out, "%s\n", sLastTestFunctionName ); -+ fclose(out); -+ } -+ else -+ { -+ fprintf(stderr, "error: Can't write signal info to file %s \n", getSignalFilename().c_str()); -+ } -+} -+ -+// ----------------------------------------------------------------------------- -+ -+Signal hasSignaled(std::string const& _sTestName) -+{ -+ // BACK: true: signal -+ // false: nothing -+ -+ if (bSignalsCached == true) -+ { -+ -+ if (m_aSignalHash.find(buildTestFunctionName(_sTestName)) != m_aSignalHash.end()) -+ { -+ return HAS_SIGNAL; -+ } -+ return NO_SIGNAL; -+ } -+ -+ std::ifstream in(getSignalFilename().c_str(), std::ios::in); -+ -+ // std::cout << "Check for signal" << std::endl; -+ std::string sLine, sLastLine; -+ while (std::getline(in, sLine)) -+ { -+ // std::cout << sTest << std::endl; -+ char ch = sLine[0]; -+ if (isspace(ch) == 0 && -+ sLine.size() > 0) -+ { -+ if (ch == '#') -+ { -+ if (sLastLine.size() > 0) -+ { -+ rtl::OString aStrLine(sLine.c_str()); -+ sal_Int32 nIdx = aStrLine.indexOf("(") + 1; -+ sal_Int32 nIdx2 = aStrLine.indexOf(")"); -+ sal_Int32 nSignalNo = 0; -+ if (nIdx > 0 && nIdx2 > 0) -+ { -+ rtl::OString sSignalNo = aStrLine.copy(nIdx, nIdx2 - nIdx); -+ nSignalNo = sSignalNo.toInt32(); -+ m_aSignalHash[sLastLine] = nSignalNo; -+ } -+ sLastLine.clear(); -+ } -+ } -+ else -+ { -+ // if (sTest == buildTestFunctionName(_sTestName)) -+ m_aSignalHash[sLine] = 1; -+ sLastLine = sLine; -+ // return HAS_SIGNAL; -+ } -+ } -+ } -+ -+ bSignalsCached = true; -+ return hasSignaled(_sTestName); -+ // return NO_SIGNAL; -+} -+ -+#ifdef UNX -+ -+// ----------------------------------------------------------------------------- -+ -+void release_signal_Handling(); -+ -+//# void signalFunction(int value) -+//# { -+//# std::cout << "Signal caught: (" << value << "), please restart." << std::endl; -+//# markSignalAsAlreadyDone(); -+//# -+//# release_signal_Handling(); -+//# std::cout.flush(); -+//# abort(); -+//# } -+ -+// ----------------------------------------------------------------------------- -+extern "C" void SignalHandlerFunction(int _nSignalNo, siginfo_t *, void*) -+{ -+ // std::cout << "Signal caught: " << getSignalName(_nSignalNo) << " (" << _nSignalNo << "), please restart." << std::endl; -+ fprintf(stderr, "Signal caught %s(%d)\n", getSignalName(_nSignalNo).c_str(), _nSignalNo); -+ markSignalAsAlreadyDone(_nSignalNo); -+ -+ release_signal_Handling(); -+ // std::cout.flush(); -+ abort(); -+} -+ -+// ----------------------------------------------------------------------------- -+// This is a copy of the osl/signal.c code -+#define ACT_IGNORE 1 -+#define ACT_ABORT 2 -+#define ACT_EXIT 3 -+#define ACT_SYSTEM 4 -+#define ACT_HIDE 5 -+ -+extern "C" { -+static struct SignalAction -+{ -+ int Signal; -+ int Action; -+ void (*Handler)(int); -+} Signals[] = -+{ -+ { SIGHUP, ACT_IGNORE, NULL }, /* hangup */ -+ { SIGINT, ACT_EXIT, NULL }, /* interrupt (rubout) */ -+ { SIGQUIT, ACT_ABORT, NULL }, /* quit (ASCII FS) */ -+ { SIGILL, ACT_SYSTEM, NULL }, /* illegal instruction (not reset when caught) */ -+/* changed from ACT_ABOUT to ACT_SYSTEM to try and get collector to run*/ -+ { SIGTRAP, ACT_ABORT, NULL }, /* trace trap (not reset when caught) */ -+#if ( SIGIOT != SIGABRT ) -+ { SIGIOT, ACT_ABORT, NULL }, /* IOT instruction */ -+#endif -+// { SIGABRT, ACT_ABORT, NULL }, /* used by abort, replace SIGIOT in the future */ -+#ifdef SIGEMT -+ { SIGEMT, ACT_SYSTEM, NULL }, /* EMT instruction */ -+/* changed from ACT_ABORT to ACT_SYSTEM to remove handler*/ -+/* SIGEMT may also be used by the profiler - so it is probably not a good -+ plan to have the new handler use this signal*/ -+#endif -+ { SIGFPE, ACT_ABORT, NULL }, /* floating point exception */ -+ { SIGKILL, ACT_SYSTEM, NULL }, /* kill (cannot be caught or ignored) */ -+ { SIGBUS, ACT_ABORT, NULL }, /* bus error */ -+ { SIGSEGV, ACT_ABORT, NULL }, /* segmentation violation */ -+#ifdef SIGSYS -+ { SIGSYS, ACT_ABORT, NULL }, /* bad argument to system call */ -+#endif -+ { SIGPIPE, ACT_HIDE, NULL }, /* write on a pipe with no one to read it */ -+ { SIGALRM, ACT_EXIT, NULL }, /* alarm clock */ -+ { SIGTERM, ACT_EXIT, NULL }, /* software termination signal from kill */ -+ { SIGUSR1, ACT_SYSTEM, NULL }, /* user defined signal 1 */ -+ { SIGUSR2, ACT_SYSTEM, NULL }, /* user defined signal 2 */ -+ { SIGCHLD, ACT_SYSTEM, NULL }, /* child status change */ -+#ifdef SIGPWR -+ { SIGPWR, ACT_IGNORE, NULL }, /* power-fail restart */ -+#endif -+ { SIGWINCH, ACT_IGNORE, NULL }, /* window size change */ -+ { SIGURG, ACT_EXIT, NULL }, /* urgent socket condition */ -+#ifdef SIGPOLL -+ { SIGPOLL, ACT_EXIT, NULL }, /* pollable event occured */ -+#endif -+ { SIGSTOP, ACT_SYSTEM, NULL }, /* stop (cannot be caught or ignored) */ -+ { SIGTSTP, ACT_SYSTEM, NULL }, /* user stop requested from tty */ -+ { SIGCONT, ACT_SYSTEM, NULL }, /* stopped process has been continued */ -+ { SIGTTIN, ACT_SYSTEM, NULL }, /* background tty read attempted */ -+ { SIGTTOU, ACT_SYSTEM, NULL }, /* background tty write attempted */ -+ { SIGVTALRM, ACT_EXIT, NULL }, /* virtual timer expired */ -+ { SIGPROF, ACT_SYSTEM, NULL }, /* profiling timer expired */ -+/*Change from ACT_EXIT to ACT_SYSTEM for SIGPROF is so that profiling signals do -+ not get taken by the new handler - the new handler does not pass on context -+ information which causes 'collect' to crash. This is a way of avoiding -+ what looks like a bug in the new handler*/ -+ { SIGXCPU, ACT_ABORT, NULL }, /* exceeded cpu limit */ -+ { SIGXFSZ, ACT_ABORT, NULL } /* exceeded file size limit */ -+}; -+} -+ -+const int NoSignals = sizeof(Signals) / sizeof(struct SignalAction); -+ -+#endif /* UNX */ -+ -+// ----------------------------------------------------------------------------- -+void init_signal_Handling(CppUnit::TestResult *_pResult) -+{ -+ pTestResult = _pResult; -+#ifdef UNX -+ -+// signal(SIGSEGV, signalFunction); -+ // signal(SIGSEGV, signalFunction); -+ // signal(SIGFPE, signalFunction); -+ -+// signal(1, signalFunction); -+ // struct sigaction action, oldaction; -+ // action.sa_sigaction = signalFunction2; -+ // action.sa_flags = SA_ONESHOT /* | SA_SIGINFO */; -+ -+ struct sigaction act; -+ struct sigaction oact; -+ -+ // act.sa_handler = SignalHandlerFunction; -+ act.sa_flags = SA_RESTART; -+ // act.sa_flags = SA_ONESHOT /* | SA_SIGINFO */; -+ act.sa_sigaction = SignalHandlerFunction; -+ -+ sigfillset(&(act.sa_mask)); -+ -+ /* Initialize the rest of the signals */ -+ for (int i = 0; i < NoSignals; i++) -+ { -+ if (Signals[i].Action != ACT_SYSTEM) -+ { -+ if (Signals[i].Action == ACT_HIDE) -+ { -+ struct sigaction ign; -+ -+ ign.sa_handler = SIG_IGN; -+ ign.sa_flags = 0; -+ sigemptyset(&ign.sa_mask); -+ -+ if (sigaction(Signals[i].Signal, &ign, &oact) == 0) -+ Signals[i].Handler = oact.sa_handler; -+ else -+ Signals[i].Handler = SIG_DFL; -+ } -+ else -+ if (sigaction(Signals[i].Signal, &act, &oact) == 0) -+ Signals[i].Handler = oact.sa_handler; -+ else -+ Signals[i].Handler = SIG_DFL; -+ } -+ } -+#endif -+ -+ // ------------ signal helper file must exist ----------------- -+ FILE* pFile = fopen(getSignalFilename().c_str(), "r"); -+ if (!pFile) -+ { -+ createEmptySignalFile( getSignalFilename() ); -+ } -+ else -+ { -+ fclose(pFile); -+ } -+} -+ -+// ----------------------------------------------------------------------------- -+void release_signal_Handling() -+{ -+ // frees all signals -+#ifdef UNX -+ int i; -+ struct sigaction act; -+ -+ act.sa_flags = 0; -+ sigemptyset(&(act.sa_mask)); -+ -+ /* Initialize the rest of the signals */ -+ for (i = NoSignals - 1; i >= 0; i--) -+ { -+ if (Signals[i].Action != ACT_SYSTEM) -+ { -+ act.sa_handler = Signals[i].Handler; -+ -+ sigaction(Signals[i].Signal, &act, NULL); -+ } -+ } -+#endif -+} -+ -+// ----------------------------------------------------------------------------- -+Signal signalCheck(CppUnit::TestResult* _pResult, std::string const& _sTestName) -+{ -+ // BACK: HAS_SIGNAL: the test has already done and signaled -+ if (hasSignaled(_sTestName) == HAS_SIGNAL) -+ { -+ // std::cout << "The Test '" << buildTestFunctionName(_sTestName) << "' is marked as signaled." << std::endl; -+ std::string sTestFunctionName = buildTestFunctionName(_sTestName); -+ fprintf(stderr, "The Test '%s' is marked as signaled.\n", sTestFunctionName.c_str()); -+ if (_pResult) -+ { -+ CppUnit::SignalTest *pTest = new CppUnit::SignalTest(_sTestName); -+ -+ std::string sErrorText = "Function is marked as signaled: "; -+ sal_Int32 nSignalNo = m_aSignalHash[sTestFunctionName]; -+ sErrorText += getSignalName(nSignalNo); -+ sErrorText += " ("; -+ sErrorText += OptionHelper::integerToAscii(nSignalNo); -+ sErrorText += ")"; -+ -+ _pResult->addError(pTest, new CppUnit::SignalException(sErrorText), ErrorType::ET_SIGNAL); -+ } -+ return HAS_SIGNAL; -+ } -+ -+ // storeNoSignal(_sTestName); -+ return NO_SIGNAL; -+} -+ -+// ----------------------------------------------------------------------------- -+bool copyFile(std::string const& _sFrom, std::string const& _sTo) -+{ -+ bool bRetValue = false; -+ const int MAXBUFSIZE = 1024; -+ char buff[MAXBUFSIZE]; -+ FILE *in = fopen(_sFrom.c_str(), "r"); -+ if (in == NULL) -+ { -+ fprintf(stderr, "error: Can't open file %s for read to copy.\n", _sFrom.c_str()); -+ bRetValue = false; -+ } -+ else -+ { -+ FILE *out = fopen(_sTo.c_str(), "w"); -+ if (out == NULL) -+ { -+ fclose(in); -+ fprintf(stderr, "error: Can't open file %s for write to copy.\n", _sTo.c_str()); -+ bRetValue = false; -+ } -+ else -+ { -+ int nRealGot = 0; -+ while(!feof(in)) -+ { -+ nRealGot = fread(buff, sizeof(char), MAXBUFSIZE, in); -+ if (nRealGot > 0) -+ { -+ fwrite(buff, sizeof(char), nRealGot, out); -+ } -+ } -+ bRetValue = true; -+ fclose(out); -+ fclose(in); -+ } -+ } -+ return bRetValue; -+} -+ -+// ----------------------------------------------------------------------------- -+void signalStartTest(std::string const& _sName) -+{ -+ if (doNotTouchSignalFile()) return; -+ -+ // fprintf(stderr, "### signalStartTest!\n"); -+ // due to the fact, that functions are vicious, we write the name first. -+ // if it isn't vivious, than we removed it. -+ std::string sNewName = getSignalFilename(); -+ sNewName += ".bak"; -+ if (copyFile(getSignalFilename(), sNewName)) -+ { -+ // std::ofstream out(getSignalFilename().c_str(), std::ios::out | std::ios::app); -+ FILE *out = fopen(getSignalFilename().c_str(), "a"); -+ if (out != NULL) -+ { -+ // out << buildTestFunctionName(_sName) << std::endl; -+ fprintf(out, "%s\n", buildTestFunctionName(_sName).c_str()); -+ fclose(out); -+ } -+ else -+ { -+ fprintf(stderr, "error: Can't open file %s for append.\n", getSignalFilename().c_str()); -+ } -+ } -+ else -+ { -+ fprintf(stderr, "error: Can't copy signal helper from file %s to file %s, %d\n", getSignalFilename().c_str(), sNewName.c_str(), errno); -+ } -+} -+ -+// ----------------------------------------------------------------------------- -+void signalEndTest() -+{ -+ if (doNotTouchSignalFile()) return; -+ -+ // fprintf(stderr, "### signalEndTest!\n"); -+ if (0 != remove(getSignalFilename().c_str())) -+ { -+ fprintf(stderr, "error: Can't delete file %s\n", getSignalFilename().c_str()); -+ } -+ else -+ { -+ std::string sNewName = getSignalFilename(); -+ sNewName += ".bak"; -+ if (0 != rename(sNewName.c_str(), getSignalFilename().c_str())) -+ { -+ fprintf(stderr, "error: Can't rename file %s to file %s errno: %d\n", sNewName.c_str(), getSignalFilename().c_str(), errno); -+ } -+ } -+} -+ -+// ----------------------------------------------------------------------------- -+void removeSignalFile(GetOpt & opt) -+{ -+ // fprintf(stderr, "### remove signal file: '%s'\n", sSignalFile.c_str()); -+ if (opt.hasOpt("-dnrmsf")) -+ { -+ return; -+ } -+ if (bDoNotTouchSignalFile == true) -+ { -+ return; -+ } -+ remove(getSignalFilename().c_str()); -+} -+ -+// ----------------------------------------------------------------------------- -+ -+sal_Int32 SignalHandlerA( TagHelper const& _aTagItems ) -+{ -+ sal_Int32 nRetValue = 0; -+ TagData nTagType = _aTagItems.GetTagData(TAG_TYPE, 0); -+// LLA: unused -+// hTestResult hResult = (hTestResult) _aTagItems.GetTagData(TAG_RESULT_PTR, 0 /* NULL */ ); -+// CppUnit::TestResult* pResult = (CppUnit::TestResult*)hResult; -+ -+ try -+ { -+ switch(nTagType) -+ { -+ // old: case SIGNAL_PUSH_NAME: -+ // old: { -+ // old: const char* sName = (const char*) _aTagItems.GetTagData(TAG_NODENAME); -+ // old: if (sName != NULL) -+ // old: signalPushName(sName); -+ // old: break; -+ // old: } -+ // old: -+ // old: case SIGNAL_POP_NAME: -+ // old: signalPopName(); -+ // old: break; -+ -+ // old: case SIGNAL_CHECK: -+ // old: { -+ // old: const char* sName = (const char*) _aTagItems.GetTagData(TAG_NODENAME); -+ // old: if (sName != NULL) -+ // old: { -+ // old: nRetValue = signalCheck(sName); -+ // old: } -+ // old: break; -+ // old: } -+ -+ // old: case INIT_SIGNAL_HANDLING: -+ // old: init_signal_Handling(); -+ // old: break; -+ // old: -+ // old: case RELEASE_SIGNAL_HANDLING: -+ // old: release_signal_Handling(); -+ // old: break; -+ -+ case SIGNAL_START_TEST: -+ { -+ // fprintf(stderr, "### SIGNAL_START_TEST!\n"); -+ const char* sName = (const char*) _aTagItems.GetTagData(TAG_NODENAME); -+ if (sName != NULL) -+ { -+ signalStartTest(sName); -+ } -+ break; -+ } -+ -+ case SIGNAL_END_TEST: -+ { -+ // fprintf(stderr, "### SIGNAL_END_TEST!\n"); -+ const char* sName = (const char*) _aTagItems.GetTagData(TAG_NODENAME); -+ if (sName != NULL) -+ { -+ signalEndTest(); -+ } -+ break; -+ } -+ -+ default: -+ fprintf(stderr, "error: SignalHandlerA: Can't handle the tag type %d\n", SAL_STATIC_CAST(int, nTagType)); -+ fflush(stderr); -+ // throw std::exception(/*std::string("Unknown TYPE_TAG Exception.")*/); -+ } -+ } -+ catch (std::exception &e) -+ { -+ fprintf(stderr, "error: SignalHandlerA: Exception caught: %s\n", e.what()); -+ fflush(stderr); -+ // throw e; -+ } -+ -+ return nRetValue; -+} -+// ----------------------------------------------------------------------------- -+// This a little bit more abstract code, could be easier to modify or expand. -+ -+sal_Int32 CheckExecution(CppUnit::TestResult* _pResult, std::string const& _sName) -+{ -+ // more checks in the corresponding job lists -+ if (_pResult) -+ { -+ if (! _pResult->isAllowedToExecute(_sName)) -+ { -+ return DO_NOT_EXECUTE; -+ } -+ } -+ -+ // Check if the given test should be executed. -+ if (signalCheck(_pResult, _sName) == HAS_SIGNAL) -+ { -+ return DO_NOT_EXECUTE; -+ } -+ -+ return GO_EXECUTE; -+} -+ -+// ----------------------------------------------------------------------------- -+sal_Int32 ExecutionA( TagHelper const& _aTagItems ) -+{ -+ sal_Int32 nRetValue = 0; -+ TagData nTagType = _aTagItems.GetTagData(TAG_TYPE, 0); -+ hTestResult hResult = (hTestResult) _aTagItems.GetTagData(TAG_RESULT_PTR, 0 /* NULL */ ); -+ CppUnit::TestResult* pResult = (CppUnit::TestResult*)hResult; -+ -+ try -+ { -+ switch(nTagType) -+ { -+ case EXECUTION_CHECK: -+ { -+ const char* sName = (const char*) _aTagItems.GetTagData(TAG_NODENAME); -+ if (sName) -+ { -+ nRetValue = CheckExecution(pResult, sName); -+ if (nRetValue == GO_EXECUTE) -+ { -+ if (pResult && pResult->isOptionWhereAmI()) -+ { -+ printf("# This is: %s\n", buildTestFunctionName(sName).c_str()); -+ } -+ } -+ } -+ -+ break; -+ } -+ -+ // old: case EXECUTION_PUSH_NAME: -+ // old: { -+ // old: const char* sName = (const char*) _aTagItems.GetTagData(TAG_NODENAME); -+ // old: if (sName != NULL) -+ // old: executionPushName(sName); -+ // old: break; -+ // old: } -+ // old: -+ // old: case EXECUTION_POP_NAME: -+ // old: executionPopName(); -+ // old: break; -+ -+ case INIT_TEST: -+ init_signal_Handling(pResult); -+ break; -+ -+ case RELEASE_TEST: -+ release_signal_Handling(); -+ break; -+ -+ default: -+ fprintf(stderr, "ExceptionA: Can't handle the tag type %d\n", SAL_STATIC_CAST(int, nTagType)); -+ break; -+ } -+ } -+ catch (std::exception &e) -+ { -+ fprintf(stderr, "ExecutionA: exception caught: %s\n", e.what()); -+ fflush(stderr); -+ // throw e; -+ } -+ return nRetValue; -+} -+ -+// ----------------------------------------------------------------------------- -+std::string getSignalName(sal_Int32 nSignalNo) -+{ -+ std::string sValue; -+#ifdef UNX -+ switch(nSignalNo) -+ { -+ case SIGHUP: -+ sValue = "SIGHUP"; -+ break; -+ -+ case SIGINT: -+ sValue = "SIGINT"; -+ break; -+ -+ case SIGQUIT: -+ sValue = "SIGQUIT"; -+ break; -+ -+ case SIGILL: -+ sValue = "SIGILL"; -+ break; -+ -+ case SIGTRAP: -+ sValue = "SIGTRAP"; -+ break; -+ -+#if ( SIGIOT != SIGABRT ) -+ case SIGIOT: -+ sValue = "SIGIOT"; -+ break; -+#endif -+// case SIGABRT: -+#ifdef SIGEMT -+ case SIGEMT: -+ sValue = "SIGEMT"; -+ break; -+#endif -+ case SIGFPE: -+ sValue = "SIGFPE"; -+ break; -+ -+ case SIGKILL: -+ sValue = "SIGKILL"; -+ break; -+ -+ case SIGBUS: -+ sValue = "SIGBUS"; -+ break; -+ -+ case SIGSEGV: -+ sValue = "SIGSEGV"; -+ break; -+ -+#ifdef SIGSYS -+ case SIGSYS: -+ sValue = "SIGSYS"; -+ break; -+#endif -+ case SIGPIPE: -+ sValue = "SIGPIPE"; -+ break; -+ -+ case SIGALRM: -+ sValue = "SIGALRM"; -+ break; -+ -+ case SIGTERM: -+ sValue = "SIGTERM"; -+ break; -+ -+ case SIGUSR1: -+ sValue = "SIGUSR1"; -+ break; -+ -+ case SIGUSR2: -+ sValue = "SIGUSR2"; -+ break; -+ -+ case SIGCHLD: -+ sValue = "SIGCHLD"; -+ break; -+ -+#ifdef SIGPWR -+ case SIGPWR: -+ sValue = "SIGPWR"; -+ break; -+#endif -+ case SIGWINCH: -+ sValue = "SIGWINCH"; -+ break; -+ -+ case SIGURG: -+ sValue = "SIGURG"; -+ break; -+ -+#ifdef SIGPOLL -+ case SIGPOLL: -+ sValue = "SIGPOLL"; -+ break; -+#endif -+ case SIGSTOP: -+ sValue = "SIGSTOP"; -+ break; -+ -+ case SIGTSTP: -+ sValue = "SIGTSTP"; -+ break; -+ -+ case SIGCONT: -+ sValue = "SIGCONT"; -+ break; -+ -+ case SIGTTIN: -+ sValue = "SIGTTIN"; -+ break; -+ -+ case SIGTTOU: -+ sValue = "SIGTTOU"; -+ break; -+ -+ case SIGVTALRM: -+ sValue = "SIGVTALRM"; -+ break; -+ -+ case SIGPROF: -+ sValue = "SIGPROF"; -+ break; -+ -+ case SIGXCPU: -+ sValue = "SIGXCPU"; -+ break; -+ -+ case SIGXFSZ: -+ sValue = "SIGXFSZ"; -+ break; -+ -+ default: -+ sValue = "Unhandled Signal."; -+ } -+#else -+ (void) nSignalNo; // unused -+#endif -+ return sValue; -+} -+ -+// The following sets variables for GNU EMACS -+// Local Variables: -+// tab-width:4 -+// End: -Nur in misc/build/cppunit-1.8.0/src/result: signal.cxx.dummy. ---- misc/cppunit-1.8.0/src/result/signal.hxx 2008-12-10 20:46:09.813916116 +0100 -+++ misc/build/cppunit-1.8.0/src/result/signal.hxx 2008-07-07 08:14:56.000000000 +0200 -@@ -1 +1,42 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+#ifndef SIGNAL_HXX -+#define SIGNAL_HXX -+ -+#include <sal/types.h> -+ -+#define HAS_SIGNAL 1 -+#define NO_SIGNAL 0 -+ -+typedef sal_Int32 Signal; -+ -+#endif -+ -Nur in misc/build/cppunit-1.8.0/src/result: signal.hxx.dummy. ---- misc/cppunit-1.8.0/src/result/testshlTestResult.cxx 2008-12-10 20:46:09.880238139 +0100 -+++ misc/build/cppunit-1.8.0/src/result/testshlTestResult.cxx 2008-12-09 09:06:11.000000000 +0100 -@@ -1 +1,428 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include <stdlib.h> -+ -+#include <map> -+#include <cppunit/Exception.h> -+#include <cppunit/NotEqualException.h> -+#include <cppunit/Test.h> -+#include <cppunit/TestFailure.h> -+#include <cppunit/result/testshlTestResult.h> -+// #include <TextTestResult.h> -+//!io #include <iostream> -+#include <string> -+ -+#include <rtl/string.hxx> -+#include "cppunit/result/outputter.hxx" -+ -+namespace CppUnit { -+ -+ testshlTestResult::testshlTestResult(GetOpt & _aOptions) -+ :TestResult(_aOptions), -+ m_aOptions(_aOptions), -+ // m_aOptionHelper(_aOptions), -+ m_aResulter(this) -+ { -+ addListener( &m_aResulter ); -+ } -+ -+ testshlTestResult::~testshlTestResult() -+ { -+ } -+ -+//# void -+//# testshlTestResult::addFailure( const TestFailure &failure ) -+//# { -+//# // TestResultCollector::addFailure( failure ); -+//# // std::cerr << ( failure.isError() ? "E" : "F" ); -+//# m_aResulter.addFailure(failure); -+//# } -+//# -+//# -+//# void -+//# testshlTestResult::startTest( Test *test ) -+//# { -+//# // TestResultCollector::startTest (test); -+//# m_aResulter.startTest(test); -+//# // std::cerr << "."; -+//# } -+//# -+//# void testshlTestResult::endTest( Test *test ) -+//# { -+//# } -+ -+// ----------------------------------------------------------------------------- -+ -+//# void -+//# testshlTestResult::printFailures( Outputter &stream ) -+//# { -+//# TestFailures::const_iterator itFailure = failures().begin(); -+//# int failureNumber = 1; -+//# while ( itFailure != failures().end() ) -+//# { -+//# stream << std::endl; -+//# printFailure( *itFailure++, failureNumber++, stream ); -+//# } -+//# } -+//# -+//# -+//# void -+//# testshlTestResult::printFailure( TestFailure *failure, -+//# int failureNumber, -+//# std::ostream &stream ) -+//# { -+//# printFailureListMark( failureNumber, stream ); -+//# stream << ' '; -+//# printFailureTestName( failure, stream ); -+//# stream << ' '; -+//# printFailureType( failure, stream ); -+//# stream << ' '; -+//# printFailureLocation( failure->sourceLine(), stream ); -+//# stream << std::endl; -+//# printFailureDetail( failure->thrownException(), stream ); -+//# stream << std::endl; -+//# } -+//# -+//# -+//# void -+//# testshlTestResult::printFailureListMark( int failureNumber, -+//# std::ostream &stream ) -+//# { -+//# stream << failureNumber << ")"; -+//# } -+//# -+//# -+//# void -+//# testshlTestResult::printFailureTestName( TestFailure *failure, -+//# std::ostream &stream ) -+//# { -+//# Test* pTest = failure->failedTest(); -+//# stream << "test: " << pTest->getName(); -+//# } -+//# -+//# -+//# void -+//# testshlTestResult::printFailureType( TestFailure *failure, -+//# std::ostream &stream ) -+//# { -+//# stream << "(" -+//# << (failure->isError() ? "E" : "F") -+//# << ")"; -+//# } -+//# -+//# -+//# void -+//# testshlTestResult::printFailureLocation( SourceLine sourceLine, -+//# std::ostream &stream ) -+//# { -+//# if ( !sourceLine.isValid() ) -+//# return; -+//# -+//# stream << "line: " << sourceLine.lineNumber() -+//# << ' ' << sourceLine.fileName(); -+//# } -+//# -+//# -+//# void -+//# testshlTestResult::printFailureDetail( Exception *thrownException, -+//# std::ostream &stream ) -+//# { -+//# if ( thrownException->isInstanceOf( NotEqualException::type() ) ) -+//# { -+//# NotEqualException *e = (NotEqualException*)thrownException; -+//# stream << "expected: " << e->expectedValue() << std::endl -+//# << "but was: " << e->actualValue(); -+//# if ( !e->additionalMessage().empty() ) -+//# { -+//# stream << std::endl; -+//# stream << "additional message:" << std::endl -+//# << e->additionalMessage(); -+//# } -+//# } -+//# else -+//# { -+//# stream << " \"" << thrownException->what() << "\""; -+//# } -+//# } -+ -+ -+// LLA: output format: -+// Header -+// # -- BEGIN -+// Error lines -+// No error lines -+// unknown lines -+// # -- END -+// Text 'Test #PASSED#' or 'Errors only' -+ -+void -+testshlTestResult::print( Outputter& stream ) -+{ -+ printHeader( stream ); -+ // stream << std::endl; -+ // printFailures( stream ); -+ -+ bool bPassed = false; -+ if (isOnlyShowJobs()) -+ { -+ JobList jl(m_aOptionHelper.getJobOnlyList()); -+ HashMap aJobList = jl.getHashMap(); -+ printLines(stream, aJobList); -+ } -+ else -+ { -+ stream << "# -- BEGIN:" << Outputter::endl(); -+ -+ TestPtrList aFailedTests; -+ -+ // List of failures -+ printFailedTests(stream, aFailedTests); -+ -+ if (! m_aOptionHelper.getOptions().hasOpt("-onlyerrors")) -+ { -+ // List of well done tests -+ printTestLines(stream, aFailedTests); -+ -+ // List of unknown Tests -+ JobList jl(m_aOptionHelper.getJobOnlyList()); -+ HashMap aJobList = jl.getHashMap(); -+ printUnknownLines(stream, aJobList); -+ -+ bPassed = true; -+ } -+ stream << "# -- END:" << Outputter::endl(); -+ -+ if (bPassed) -+ { -+ stream << "Test #PASSED#" << Outputter::endl(); -+ } -+ -+ if (m_aOptionHelper.getOptions().hasOpt("-onlyerrors")) -+ { -+ stream << "Errors only." << Outputter::endl(); -+ } -+ } -+} -+ -+// ----------------------------------------------------------------------------- -+void -+testshlTestResult::printLines(Outputter &stream, HashMap & _aJobList) -+{ -+ int nCount = _aJobList.size(); -+ if (nCount != 0) -+ { -+ for (HashMap::const_iterator it = _aJobList.begin(); -+ it != _aJobList.end(); -+ ++it) -+ { -+ std::string aKey = (*it).first; -+ if (_aJobList[aKey] == JOB_ACCESS) -+ { -+ stream << aKey; -+ stream << Outputter::endl(); -+ } -+ } -+ } -+} -+ -+void -+testshlTestResult::printFailedTests(Outputter &stream, TestPtrList &aFailedTests) -+{ -+ for (TestResultCollector::TestFailures::const_iterator it2 = m_aResulter.failures().begin(); -+ it2 != m_aResulter.failures().end(); -+ ++it2) -+ { -+ TestFailureEnvelope *pEnvelop = *it2; -+ TestFailure *pFailure = pEnvelop->getTestFailure(); -+ std::string sNodeName = pEnvelop->getString(); -+ -+ aFailedTests[ pFailure->failedTest() ] = true; -+ -+ printFailureLine(stream, pFailure, sNodeName); -+ } -+} -+ -+void -+testshlTestResult::printTestLines(Outputter &stream, TestPtrList &aFailedTests) -+{ -+ for (TestResultCollector::Tests::const_iterator it = m_aResulter.tests().begin(); -+ it != m_aResulter.tests().end(); -+ ++it) -+ { -+ TestEnvelope *pEnvelop = *it; -+ Test* pTest = pEnvelop->getTest(); -+ std::string sNodeName = pEnvelop->getString(); -+ -+ if (aFailedTests.find(pTest) == aFailedTests.end()) -+ { -+ std::string sInfo = m_aResulter.getInfo(pTest); -+ printTestLine(stream, pTest, sNodeName, sInfo); -+ } -+ } -+} -+ -+void -+testshlTestResult::printUnknownLines(Outputter &stream, HashMap & _aJobList) -+{ -+ int nCount = _aJobList.size(); -+ if (nCount != 0) -+ { -+ for (HashMap::const_iterator it = _aJobList.begin(); -+ it != _aJobList.end(); -+ ++it) -+ { -+ std::string aKey = (*it).first; -+ if (_aJobList[aKey] == JOB_UNKNOWN) -+ { -+ printUnknownLine(stream, aKey); -+ } -+ } -+ } -+} -+ -+void -+testshlTestResult::printHeader( Outputter &stream ) -+{ -+ std::string sDate(m_aOptionHelper.createDateTag()); -+ if (isOnlyShowJobs()) -+ { -+ stream << "# This is an automatically generated job file." << Outputter::endl(); -+ stream << "# "; -+ } -+ else -+ { -+ stream << sDate << Outputter::endl(); -+ } -+} -+ -+void -+testshlTestResult::printFailureLine( Outputter &stream, TestFailure *_pFailure, std::string const& _sNodeName) -+{ -+ std::string aName; -+ aName += _sNodeName; -+ aName += "."; -+ aName += _pFailure->failedTestName(); -+ -+ SourceLine aLine = _pFailure->sourceLine(); -+ sal_Int32 nLine = -1; -+ std::string sFilename; -+ if (aLine.isValid()) -+ { -+ nLine = aLine.lineNumber(); -+ sFilename = aLine.fileName(); -+ } -+ -+ Exception *pExp = _pFailure->thrownException(); -+ std::string sWhat; -+ if (pExp) -+ { -+ sWhat = pExp->what(); -+ } -+ -+ ErrorType::num eErr = _pFailure->getErrorType(); -+ -+ stream << aName; -+ stream << ";"; -+ -+ if (eErr == ErrorType::ET_FAILURE) -+ stream << "FAILED"; -+ -+ else if (eErr == ErrorType::ET_ERROR) -+ stream << "ERROR"; -+ -+ else if (eErr == ErrorType::ET_SIGNAL) -+ stream << "SIGNAL"; -+ -+ else -+ stream << "UNKNOWN"; -+ -+ stream << "#FAILED#"; -+ -+ stream << sWhat; -+ stream << Outputter::endl(); -+} -+ -+void -+testshlTestResult::printTestLine( Outputter &stream, Test* _pTest, std::string const& _sNodeName, std::string const& _sInfo) -+{ -+ std::string aName; -+ aName += _sNodeName; -+ aName += "."; -+ aName += _pTest->getName(); -+ -+ stream << aName; -+ stream << ";"; -+ stream << _sInfo << "#"; -+ if (_sInfo == "PASSED") -+ { -+ stream << "OK#"; -+ } -+ else -+ { -+ stream << "FAILED#"; -+ } -+ stream << Outputter::endl(); -+} -+ -+void -+testshlTestResult::printUnknownLine( Outputter &stream, std::string const& _sTestName) -+{ -+ stream << _sTestName; -+ stream << ";"; -+ stream << "UNKNOWN#"; -+ stream << "FAILED#"; -+ stream << Outputter::endl(); -+} -+ -+//# void -+//# testshlTestResult::printStatistics( Outputter &stream ) -+//# { -+//# stream << "Test Results:" << std::endl; -+//# -+//# stream << "Run: " << runTests() -+//# << " Failures: " << testFailures() -+//# << " Errors: " << testErrors() -+//# << std::endl; -+//# } -+ -+ -+Outputter & -+operator <<( Outputter &stream, -+ testshlTestResult &result ) -+{ -+ result.print (stream); return stream; -+} -+ -+ -+} // namespace CppUnit -Nur in misc/build/cppunit-1.8.0/src/result: testshlTestResult.cxx.dummy. ---- misc/cppunit-1.8.0/src/result/treswrapper.cxx 2008-12-10 20:46:09.979665912 +0100 -+++ misc/build/cppunit-1.8.0/src/result/treswrapper.cxx 2008-12-09 09:06:10.000000000 +0100 -@@ -1 +1,261 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#include <cstdarg> -+#include <stdlib.h> -+#include <stdio.h> -+ -+#include <sal/types.h> -+#include <cppunit/Test.h> -+#include "cppunit/autoregister/htestresult.h" -+#include "cppunit/autoregister/callbackfunc_fktptr.h" -+#include "cppunit/result/callbackfunc.h" -+#include "cppunit/result/TestResult.h" -+ -+#include <cppunit/tagvalues.hxx> -+ -+namespace -+{ -+ void TestResult_startTest(hTestResult _pResult, hTest _pTest) -+ { -+ CppUnit::TestResult* pResult = (CppUnit::TestResult*)_pResult; -+ CppUnit::Test* pTest = (CppUnit::Test*)_pTest; -+ -+ std::string sName = pTest->getName(); -+ CallbackDispatch(0 /* NULL */, TAG_TYPE, SIGNAL_START_TEST, TAG_RESULT_PTR, _pResult, TAG_NODENAME, sName.c_str(), TAG_DONE); -+ -+ pResult->startTest(pTest); -+ } -+ -+ void TestResult_endTest( hTestResult _pResult, hTest _pTest ) -+ { -+ CppUnit::TestResult* pResult = (CppUnit::TestResult*)_pResult; -+ CppUnit::Test* pTest = (CppUnit::Test*)_pTest; -+ pResult->endTest(pTest); -+ -+ std::string sName = pTest->getName(); -+ CallbackDispatch(0 /* NULL */, TAG_TYPE, SIGNAL_END_TEST, TAG_RESULT_PTR, _pResult, TAG_NODENAME, sName.c_str(), TAG_DONE); -+ } -+ -+// ----------------------------------------------------------------------------- -+ -+ void TestResult_addFailure( hTestResult _pResult, hTest _pTest, hException _pException ) -+ { -+ CppUnit::TestResult* pResult = (CppUnit::TestResult*)_pResult; -+ CppUnit::Test* pTest = (CppUnit::Test*)_pTest; -+ CppUnit::Exception* pException = (CppUnit::Exception*)_pException; -+ pResult->addFailure(pTest, pException); -+ } -+ -+ void TestResult_addError( hTestResult _pResult, hTest _pTest, hException _pException ) -+ { -+ CppUnit::TestResult* pResult = (CppUnit::TestResult*)_pResult; -+ CppUnit::Test* pTest = (CppUnit::Test*)_pTest; -+ CppUnit::Exception* pException = (CppUnit::Exception*)_pException; -+ pResult->addError(pTest, pException); -+ } -+ -+ sal_Int32 TestResult_shouldStop(hTestResult _pResult) -+ { -+ CppUnit::TestResult* pResult = (CppUnit::TestResult*)_pResult; -+ return pResult->shouldStop() == true ? 1 : 0; -+ } -+ -+// ----------------------------------------------------------------------------- -+ void TestResult_addInfo( hTestResult _pResult, hTest _pTest, const char* _sInfo ) -+ { -+ CppUnit::TestResult* pResult = (CppUnit::TestResult*)_pResult; -+ CppUnit::Test* pTest = (CppUnit::Test*)_pTest; -+ // CppUnit::Exception* pException = (CppUnit::Exception*)_pException; -+ pResult->addInfo(pTest, _sInfo); -+ } -+// ----------------------------------------------------------------------------- -+ void TestResult_enterNode( hTestResult _pResult, const char* _sNode ) -+ { -+ // signalPushName(getName()); -+ // CallbackDispatch(NULL, TAG_TYPE, EXECUTION_PUSH_NAME, TAG_RESULT_PTR, _pResult, TAG_NODENAME, _sNode, TAG_DONE); -+ -+ CppUnit::TestResult* pResult = (CppUnit::TestResult*)_pResult; -+ // CppUnit::Test* pTest = (CppUnit::Test*)_pTest; -+ // CppUnit::Exception* pException = (CppUnit::Exception*)_pException; -+ pResult->enterNode(_sNode); -+ } -+ void TestResult_leaveNode( hTestResult _pResult, const char* _sNode ) -+ { -+ CppUnit::TestResult* pResult = (CppUnit::TestResult*)_pResult; -+ // CppUnit::Test* pTest = (CppUnit::Test*)_pTest; -+ // CppUnit::Exception* pException = (CppUnit::Exception*)_pException; -+ pResult->leaveNode(_sNode); -+ -+ // CallbackDispatch(NULL, TAG_TYPE, EXECUTION_POP_NAME, TAG_RESULT_PTR, _pResult, TAG_DONE); -+ } -+ -+// ----------------------------------------------------------------------------- -+ sal_Int32 TestResult_StarterA(TagHelper const& _aTagItems) -+ { -+ sal_Int32 nRetValue = 0; -+ TagData nTagType = _aTagItems.GetTagData(TAG_TYPE, 0); -+ hTestResult pResult = (hTestResult) _aTagItems.GetTagData(TAG_RESULT_PTR, 0 /* NULL */); -+ CppUnit::Test* pTest = (CppUnit::Test*) _aTagItems.GetTagData(TAG_TEST_PTR, 0 /* NULL */); -+ -+ try -+ { -+ switch(nTagType) -+ { -+ case RESULT_START: -+ TestResult_startTest(pResult, pTest); -+ break; -+ -+ case RESULT_END: -+ TestResult_endTest(pResult, pTest); -+ break; -+ -+ case RESULT_ADD_FAILURE: -+ { -+ hException pException = (hException) _aTagItems.GetTagData(TAG_EXCEPTION, 0); -+ TestResult_addFailure(pResult, pTest, pException); -+ break; -+ } -+ -+ case RESULT_ADD_ERROR: -+ { -+ hException pException = (hException) _aTagItems.GetTagData(TAG_EXCEPTION, 0); -+ TestResult_addError(pResult, pTest, pException); -+ break; -+ } -+ -+ case RESULT_ADD_INFO: -+ { -+ const char* pInfo = (const char* ) _aTagItems.GetTagData(TAG_INFO, 0); -+ TestResult_addInfo(pResult, pTest, pInfo); -+ break; -+ } -+ -+ case RESULT_ENTER_NODE: -+ { -+ const char* pNode = (const char* )_aTagItems.GetTagData(TAG_NODENAME, 0); -+ TestResult_enterNode(pResult, pNode); -+ break; -+ } -+ -+ case RESULT_LEAVE_NODE: -+ { -+ const char* pNode = (const char* ) _aTagItems.GetTagData(TAG_NODENAME, 0); -+ TestResult_leaveNode(pResult, pNode); -+ break; -+ } -+ -+ case RESULT_SHOULD_STOP: -+ nRetValue = TestResult_shouldStop(pResult); -+ break; -+ -+ default: -+ fprintf(stderr, "TestResult_StarterA: Can't handle the tag type %8x\n", SAL_STATIC_CAST(int, nTagType)); -+ fflush(stderr); -+ // throw std::exception(/*std::string("Unknown TYPE_TAG Exception.")*/); -+ } -+ } -+ catch (std::exception &e) -+ { -+ fprintf(stderr, "TestResult_StarterA: Exception caught: %s\n", e.what()); -+ // throw e; -+ } -+ -+ return nRetValue; -+ } -+} // namespace anonymous -+ -+// --------------------------------- Prototypes --------------------------------- -+ -+sal_Int32 SignalHandlerA( TagHelper const& _aTagItems ); -+sal_Int32 ExecutionA( TagHelper const& _aTagItems ); -+ -+// ----------------------------------------------------------------------------- -+sal_Int32 CallbackDispatch(int x, ...) -+{ -+ (void) x; // avoid warning -+ -+ // The idea behind TagItems are from the Amiga OS. -+ // Due to the fact that the following code does not find my ok -+ // I decide to wrote a simple helper -+ // -+ // struct TagItem *tags = (struct TagItem *)&x + 1; -+ -+ TagHelper aTagItems; -+ -+ // the following code could also be in a #define, so other functions could -+ // use this, but at the moment this function a the only one. -+ -+ // FILL_TAGS(aTagItems, x); -+ std::va_list args; -+ va_start( args, x ); -+ Tag nTag; -+ do -+ { -+ nTag = va_arg(args, Tag); -+ if (nTag != TAG_DONE) -+ { -+ TagData nValue = va_arg(args, TagData); -+ // printf("Tag: %8x Value:%8x\n", nTag, nValue); -+ aTagItems.insert(nTag, nValue); -+ } -+ } while (nTag != TAG_DONE); -+ -+ va_end ( args ); -+ -+ // FILL_TAGS:END -+ -+ // printf(".\n"); -+ -+ sal_Int32 nRetValue = 0; -+ Tag nPreTag = aTagItems.GetTagData(TAG_TYPE); -+ if ( (nPreTag & TAG_RESULT) == TAG_RESULT) -+ { -+ nRetValue = TestResult_StarterA( aTagItems ); -+ } -+ else if ((nPreTag & TAG_SIGNAL) == TAG_SIGNAL) -+ { -+ nRetValue = SignalHandlerA(aTagItems); -+ } -+ else if (( nPreTag & TAG_EXECUTION) == TAG_EXECUTION) -+ { -+ nRetValue = ExecutionA(aTagItems); -+ } -+ else -+ { -+ fprintf(stderr, "CallbackDispatch: First tag is unknown %8x\n", SAL_STATIC_CAST(int, nPreTag)); -+ // unknown TAG_TYPE -+ } -+ return nRetValue; -+} -+ -Nur in misc/build/cppunit-1.8.0/src/result: treswrapper.cxx.dummy. ---- misc/cppunit-1.8.0/src/win32/makefile.mk 2008-12-10 20:46:10.024158685 +0100 -+++ misc/build/cppunit-1.8.0/src/win32/makefile.mk 2008-12-10 19:45:23.000000000 +0100 -@@ -1 +1,67 @@ --dummy -+#************************************************************************* -+# -+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+# -+# Copyright 2008 by Sun Microsystems, Inc. -+# -+# OpenOffice.org - a multi-platform office productivity suite -+# -+# $RCSfile$ -+# -+# $Revision$ -+# -+# This file is part of OpenOffice.org. -+# -+# OpenOffice.org is free software: you can redistribute it and/or modify -+# it under the terms of the GNU Lesser General Public License version 3 -+# only, as published by the Free Software Foundation. -+# -+# OpenOffice.org 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 Lesser General Public License version 3 for more details -+# (a copy is included in the LICENSE file that accompanied this code). -+# -+# You should have received a copy of the GNU Lesser General Public License -+# version 3 along with OpenOffice.org. If not, see -+# <http://www.openoffice.org/license.html> -+# for a copy of the LGPLv3 License. -+# -+#************************************************************************* -+PRJ=..$/..$/..$/..$/..$/.. -+INCEXT=..$/..$/include -+# PRJ=..$/.. -+# PRJINC=.. -+ -+PRJNAME=cppunit -+TARGET=c5t_winstuff -+LIBTARGET=NO -+ENABLE_EXCEPTIONS=TRUE -+ -+# --- Settings ----------------------------------------------------- -+.INCLUDE : settings.mk -+ -+# ------------------------------------------------------------------ -+ -+SLOFILES = \ -+ $(SLO)$/winstuff.obj -+ -+#------------------------------------------------------------------------------- -+# This is a static lib -+LIB1TARGET= $(LB)$/$(TARGET).lib -+LIB1OBJFILES= \ -+ $(SLOFILES) -+ -+.IF "$(GUI)"=="WNT" -+.IF "$(COM)"=="GCC" -+LIB1ARCHIV=$(LB)$/lib$(TARGET)$(DLLPOSTFIX).a -+.ENDIF -+.ENDIF -+ -+.IF "$(GUI)" == "UNX" -+LIB1ARCHIV=$(LB)$/lib$(TARGET)$(DLLPOSTFIX).a -+.ENDIF -+ -+# --- Targets ------------------------------------------------------ -+ -+.INCLUDE : target.mk -Nur in misc/build/cppunit-1.8.0/src/win32: makefile.mk.dummy. ---- misc/cppunit-1.8.0/src/win32/winstuff.cxx 2008-12-10 20:46:10.106772548 +0100 -+++ misc/build/cppunit-1.8.0/src/win32/winstuff.cxx 2008-12-10 20:42:44.000000000 +0100 -@@ -1 +1,143 @@ --dummy -+/************************************************************************* -+ * -+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -+ * -+ * Copyright 2008 by Sun Microsystems, Inc. -+ * -+ * OpenOffice.org - a multi-platform office productivity suite -+ * -+ * $RCSfile$ -+ * $Revision$ -+ * -+ * This file is part of OpenOffice.org. -+ * -+ * OpenOffice.org is free software: you can redistribute it and/or modify -+ * it under the terms of the GNU Lesser General Public License version 3 -+ * only, as published by the Free Software Foundation. -+ * -+ * OpenOffice.org 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 Lesser General Public License version 3 for more details -+ * (a copy is included in the LICENSE file that accompanied this code). -+ * -+ * You should have received a copy of the GNU Lesser General Public License -+ * version 3 along with OpenOffice.org. If not, see -+ * <http://www.openoffice.org/license.html> -+ * for a copy of the LGPLv3 License. -+ * -+ ************************************************************************/ -+ -+// MARKER(update_precomp.py): autogen include statement, do not remove -+// #include "precompiled_cppunit.hxx" -+ -+#ifdef WIN32 -+#include "testshl/winstuff.hxx" -+ -+#if defined _MSC_VER -+#pragma warning(push, 1) -+#endif -+#include <windows.h> -+#if defined _MSC_VER -+#pragma warning(pop) -+#endif -+#include <MAPIWin.h> -+ -+void WinDebugBreak() -+{ -+ // forward to WinAPI. Note that the whole story is simply to -+ // disentangle OOo headers from Windows headers (which are largely -+ // incompatible, due to name clashes and macro mess-ups) -+ DebugBreak(); -+} -+ -+void WinSleep( sal_uInt32 sec ) -+{ -+ Sleep(sec * 1000); -+} -+ -+sal_uInt32 WinGetCurrentProcessId() -+{ -+ return GetCurrentProcessId(); -+} -+ -+#define TA_FAILED 0 -+#define TA_SUCCESS_CLEAN 1 -+#define TA_SUCCESS_KILL 2 -+#define TA_SUCCESS_16 3 -+ -+ // Declare Callback Enum Functions. -+bool CALLBACK TerminateAppEnum( HWND hwnd, LPARAM lParam ); -+ -+/*---------------------------------------------------------------- -+ DWORD WINAPI TerminateApp( DWORD dwPID, DWORD dwTimeout ) -+ -+ Purpose: -+ Shut down a 32-Bit Process (or 16-bit process under Windows 95) -+ -+ Parameters: -+ dwPID -+ Process ID of the process to shut down. -+ -+ dwTimeout -+ Wait time in milliseconds before shutting down the process. -+ -+ Return Value: -+ TA_FAILED - If the shutdown failed. -+ TA_SUCCESS_CLEAN - If the process was shutdown using WM_CLOSE. -+ TA_SUCCESS_KILL - if the process was shut down with -+ TerminateProcess(). -+ NOTE: See header for these defines. -+ ----------------------------------------------------------------*/ -+void WinTerminateApp( sal_uInt32 dwPID, sal_uInt32 dwTimeout ) -+{ -+ HANDLE hProc; -+ DWORD dwRet; -+ -+ // If we can't open the process with PROCESS_TERMINATE rights, -+ // then we give up immediately. -+ hProc = OpenProcess(SYNCHRONIZE|PROCESS_TERMINATE, false, -+ dwPID); -+ -+ if(hProc == NULL) -+ return; -+ -+ // TerminateAppEnum() posts WM_CLOSE to all windows whose PID -+ // matches your process's. -+ EnumWindows((WNDENUMPROC)TerminateAppEnum, (LPARAM) dwPID); -+ -+ // Wait on the handle. If it signals, great. If it times out, -+ // then you kill it. -+ if (WaitForSingleObject(hProc, dwTimeout) != WAIT_OBJECT_0) -+ dwRet= (TerminateProcess(hProc,0) ? TA_SUCCESS_KILL : TA_FAILED); -+ else -+ dwRet = TA_SUCCESS_CLEAN; -+ -+ CloseHandle(hProc); -+} -+ -+bool CALLBACK TerminateAppEnum( HWND hwnd, LPARAM lParam ) -+{ -+ DWORD dwID; -+ -+ GetWindowThreadProcessId(hwnd, &dwID); -+ -+ if(dwID == (DWORD)lParam) -+ { -+ PostMessage(hwnd, WM_CLOSE, 0, 0); -+ } -+ -+ return true; -+} -+#else -+ -+// this file is only need within Windows. -+// due to the fact that empty files don't create libraries -+// we store one function in it. -+int WinStuffDummy_this_function_will_never_need() -+{ -+ return 42; // we need some code -+} -+ -+#endif /* WIN32 */ -+ -Nur in misc/build/cppunit-1.8.0/src/win32: winstuff.cxx.dummy. ++ cd cppunit && $(MAKE) $(MFLAGS) $(CALLMACROS) diff --git a/cppunit/makefile.mk b/cppunit/makefile.mk index 8f636569d8b2..3836e6905e9a 100644 --- a/cppunit/makefile.mk +++ b/cppunit/makefile.mk @@ -1,7 +1,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2008 by Sun Microsystems, Inc. # # OpenOffice.org - a multi-platform office productivity suite @@ -42,84 +42,20 @@ TARGET=so_cppunit TARFILE_NAME=cppunit-1.8.0 -MOVED_FILES=\ - include$/cppunit$/result$/SynchronizedObject.h \ - include$/cppunit$/result$/TestListener.h \ - include$/cppunit$/result$/TestResultCollector.h \ - include$/cppunit$/result$/TestResult.h \ - include$/cppunit$/result$/TestSucessListener.h \ - include$/cppunit$/result$/TextTestResult.h \ - include$/cppunit$/portability$/config-bcb5.h \ - include$/cppunit$/portability$/config-msvc6.h \ - src$/result$/SynchronizedObject.cpp \ - src$/result$/TestResultCollector.cpp \ - src$/result$/TestResult.cpp \ - src$/result$/TestSucessListener.cpp \ - src$/result$/TextTestResult.cpp - ADDITIONAL_FILES=\ - $(MOVED_FILES) \ - include$/cppunit$/additionalfunc.hxx \ - include$/cppunit$/autoregister$/callbackfunc_fktptr.h \ - include$/cppunit$/autoregister$/callbackstructure.h \ - include$/cppunit$/autoregister$/htestresult.h \ - include$/cppunit$/autoregister$/registerfunc.h \ - include$/cppunit$/autoregister$/registertestfunction.h \ - include$/cppunit$/autoregister$/testfunc.h \ - include$/cppunit$/checkboom.hxx \ - include$/cppunit$/cmdlinebits.hxx \ - include$/cppunit$/externcallbackfunc.hxx \ - include$/cppunit$/joblist.hxx \ - include$/cppunit$/nocopy.hxx \ - include$/cppunit$/portability$/config-auto.h \ - include$/cppunit$/result$/callbackfunc.h \ - include$/cppunit$/result$/emacsTestResult.hxx \ - include$/cppunit$/result$/log.hxx \ - include$/cppunit$/result$/optionhelper.hxx \ - include$/cppunit$/result$/outputter.hxx \ - include$/cppunit$/result$/testshlTestResult.h \ - include$/cppunit$/signaltest.h \ - include$/cppunit$/simpleheader.hxx \ - include$/cppunit$/stringhelper.hxx \ - include$/cppunit$/taghelper.hxx \ + include$/cppunit$/config-auto.h \ include$/cppunit$/tagvalues.hxx \ - include$/testshl$/autoregisterhelper.hxx \ - include$/testshl$/dynamicregister.hxx \ - include$/testshl$/filehelper.hxx \ - include$/testshl$/getopt.hxx \ - include$/testshl$/log.hxx \ - include$/testshl$/tresstatewrapper.h \ - include$/testshl$/tresstatewrapper.hxx \ - include$/testshl$/versionhelper.hxx \ - include$/testshl$/winstuff.hxx \ - include$/makefile.mk \ + include$/cppunit$/callbackfunc_fktptr.h \ + include$/cppunit$/externcallbackfunc.hxx \ makefile.mk \ src$/makefile.mk \ - src$/cppunit$/cmdlinebits.cxx \ - src$/cppunit$/joblist.cxx \ - src$/cppunit$/makefile.mk \ - src$/cppunit$/registertestfunction.cxx \ - src$/cppunit$/signaltest.cxx \ - src$/cppunit$/t_print.cxx \ - src$/cppunit$/tresregister.cxx \ - src$/cppunit$/tresstatewrapper.cxx \ - src$/result$/emacsTestResult.cxx \ - src$/result$/log.cxx \ - src$/result$/makefile.mk \ - src$/result$/optionhelper.cxx \ - src$/result$/outputter.cxx \ - src$/result$/signal.cxx \ - src$/result$/signal.hxx \ - src$/result$/testshlTestResult.cxx \ - src$/result$/treswrapper.cxx \ - src$/win32$/makefile.mk \ - src$/win32$/winstuff.cxx + src$/cppunit$/makefile.mk PATCH_FILES=cppunit-1.8.0-r1.patch # CONFIGURE_DIR= # CONFIGURE_ACTION= -# +# # BUILD_DIR= BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS) diff --git a/cppunit/prj/build.lst b/cppunit/prj/build.lst index a1cce90ce3d4..f2587dd4c624 100644 --- a/cppunit/prj/build.lst +++ b/cppunit/prj/build.lst @@ -1,3 +1,3 @@ -c5t cppunit : sal NULL +c5t cppunit : soltools stlport NULL c5t cppunit usr1 - all c5t_mkout NULL c5t cppunit nmake - all c5t_make NULL diff --git a/cppunit/prj/d.lst b/cppunit/prj/d.lst index 94fa6ac352b5..ff580704f9a4 100644 --- a/cppunit/prj/d.lst +++ b/cppunit/prj/d.lst @@ -1,73 +1,10 @@ -mkdir: %_DEST%\inc%_EXT%\cppunit -mkdir: %_DEST%\inc%_EXT%\cppunit\portability -mkdir: %_DEST%\inc%_EXT%\cppunit\autoregister -mkdir: %_DEST%\inc%_EXT%\cppunit\extensions -mkdir: %_DEST%\inc%_EXT%\cppunit\result -mkdir: %_DEST%\inc%_EXT%\testshl +mkdir: %_DEST%/inc%_EXT%/cppunit +mkdir: %_DEST%/inc%_EXT%/cppunit/extensions -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/Asserter.h %_DEST%\inc%_EXT%/cppunit/Asserter.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/Exception.h %_DEST%\inc%_EXT%/cppunit/Exception.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/NotEqualException.h %_DEST%\inc%_EXT%/cppunit/NotEqualException.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/Portability.h %_DEST%\inc%_EXT%/cppunit/Portability.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/SourceLine.h %_DEST%\inc%_EXT%/cppunit/SourceLine.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/Test.h %_DEST%\inc%_EXT%/cppunit/Test.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/TestAssert.h %_DEST%\inc%_EXT%/cppunit/TestAssert.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/TestCaller.h %_DEST%\inc%_EXT%/cppunit/TestCaller.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/TestCase.h %_DEST%\inc%_EXT%/cppunit/TestCase.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/TestFailure.h %_DEST%\inc%_EXT%/cppunit/TestFailure.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/TestFixture.h %_DEST%\inc%_EXT%/cppunit/TestFixture.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/TestSuite.h %_DEST%\inc%_EXT%/cppunit/TestSuite.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/additionalfunc.hxx %_DEST%\inc%_EXT%/cppunit/additionalfunc.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/autoregister/callbackfunc_fktptr.h %_DEST%\inc%_EXT%/cppunit/autoregister/callbackfunc_fktptr.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/autoregister/callbackstructure.h %_DEST%\inc%_EXT%/cppunit/autoregister/callbackstructure.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/autoregister/htestresult.h %_DEST%\inc%_EXT%/cppunit/autoregister/htestresult.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/autoregister/registerfunc.h %_DEST%\inc%_EXT%/cppunit/autoregister/registerfunc.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/autoregister/registertestfunction.h %_DEST%\inc%_EXT%/cppunit/autoregister/registertestfunction.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/autoregister/testfunc.h %_DEST%\inc%_EXT%/cppunit/autoregister/testfunc.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/checkboom.hxx %_DEST%\inc%_EXT%/cppunit/checkboom.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/cmdlinebits.hxx %_DEST%\inc%_EXT%/cppunit/cmdlinebits.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/extensions/AutoRegisterSuite.h %_DEST%\inc%_EXT%/cppunit/extensions/AutoRegisterSuite.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/extensions/HelperMacros.h %_DEST%\inc%_EXT%/cppunit/extensions/HelperMacros.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/extensions/TestFactory.h %_DEST%\inc%_EXT%/cppunit/extensions/TestFactory.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/extensions/TestFactoryRegistry.h %_DEST%\inc%_EXT%/cppunit/extensions/TestFactoryRegistry.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/extensions/TestSuiteBuilder.h %_DEST%\inc%_EXT%/cppunit/extensions/TestSuiteBuilder.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/extensions/TestSuiteFactory.h %_DEST%\inc%_EXT%/cppunit/extensions/TestSuiteFactory.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/extensions/TypeInfoHelper.h %_DEST%\inc%_EXT%/cppunit/extensions/TypeInfoHelper.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/externcallbackfunc.hxx %_DEST%\inc%_EXT%/cppunit/externcallbackfunc.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/joblist.hxx %_DEST%\inc%_EXT%/cppunit/joblist.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/nocopy.hxx %_DEST%\inc%_EXT%/cppunit/nocopy.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/portability/config-auto.h %_DEST%\inc%_EXT%/cppunit/portability/config-auto.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/portability/config-bcb5.h %_DEST%\inc%_EXT%/cppunit/portability/config-bcb5.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/portability/config-msvc6.h %_DEST%\inc%_EXT%/cppunit/portability/config-msvc6.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/SynchronizedObject.h %_DEST%\inc%_EXT%/cppunit/result/SynchronizedObject.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/TestListener.h %_DEST%\inc%_EXT%/cppunit/result/TestListener.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/TestResult.h %_DEST%\inc%_EXT%/cppunit/result/TestResult.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/TestResultCollector.h %_DEST%\inc%_EXT%/cppunit/result/TestResultCollector.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/TestSucessListener.h %_DEST%\inc%_EXT%/cppunit/result/TestSucessListener.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/TextTestResult.h %_DEST%\inc%_EXT%/cppunit/result/TextTestResult.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/callbackfunc.h %_DEST%\inc%_EXT%/cppunit/result/callbackfunc.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/emacsTestResult.hxx %_DEST%\inc%_EXT%/cppunit/result/emacsTestResult.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/log.hxx %_DEST%\inc%_EXT%/cppunit/result/log.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/optionhelper.hxx %_DEST%\inc%_EXT%/cppunit/result/optionhelper.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/outputter.hxx %_DEST%\inc%_EXT%/cppunit/result/outputter.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/result/testshlTestResult.h %_DEST%\inc%_EXT%/cppunit/result/testshlTestResult.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/signaltest.h %_DEST%\inc%_EXT%/cppunit/signaltest.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/simpleheader.hxx %_DEST%\inc%_EXT%/cppunit/simpleheader.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/stringhelper.hxx %_DEST%\inc%_EXT%/cppunit/stringhelper.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/taghelper.hxx %_DEST%\inc%_EXT%/cppunit/taghelper.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/cppunit/tagvalues.hxx %_DEST%\inc%_EXT%/cppunit/tagvalues.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/testshl/autoregisterhelper.hxx %_DEST%\inc%_EXT%/testshl/autoregisterhelper.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/testshl/dynamicregister.hxx %_DEST%\inc%_EXT%/testshl/dynamicregister.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/testshl/filehelper.hxx %_DEST%\inc%_EXT%/testshl/filehelper.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/testshl/getopt.hxx %_DEST%\inc%_EXT%/testshl/getopt.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/testshl/log.hxx %_DEST%\inc%_EXT%/testshl/log.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/testshl/tresstatewrapper.h %_DEST%\inc%_EXT%/testshl/tresstatewrapper.h -..\%__SRC%\misc\build\cppunit-1.8.0\include/testshl/tresstatewrapper.hxx %_DEST%\inc%_EXT%/testshl/tresstatewrapper.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/testshl/versionhelper.hxx %_DEST%\inc%_EXT%/testshl/versionhelper.hxx -..\%__SRC%\misc\build\cppunit-1.8.0\include/testshl/winstuff.hxx %_DEST%\inc%_EXT%/testshl/winstuff.hxx +../%__SRC%/misc/build/cppunit-1.8.0/include/cppunit/*.h %_DEST%/inc%_EXT%/cppunit/*.h +../%__SRC%/misc/build/cppunit-1.8.0/include/cppunit/*.hxx %_DEST%/inc%_EXT%/cppunit/*.hxx +../%__SRC%/misc/build/cppunit-1.8.0/include/cppunit/extensions/*.h %_DEST%/inc%_EXT%/cppunit/extensions/*.h - -..\%__SRC%\lib\cppunit.lib %_DEST%\lib%_EXT%\cppunit.lib -..\%__SRC%\lib\c5t_*.lib %_DEST%\lib%_EXT%\c5t_*.lib -..\%__SRC%\lib\*.a %_DEST%\lib%_EXT%\*.a +../%__SRC%/lib/cppunit.lib %_DEST%/lib%_EXT%/cppunit.lib +../%__SRC%/lib/*.a %_DEST%/lib%_EXT%/*.a diff --git a/hyphen/hyphen-2.4.patch b/hyphen/hyphen-2.4.patch index 27f7085946a3..5aef3422d22a 100644 --- a/hyphen/hyphen-2.4.patch +++ b/hyphen/hyphen-2.4.patch @@ -110,7 +110,7 @@ diff -u misc/hyphen-2.4/Makefile.in misc/build/hyphen-2.4/Makefile.in diff -u misc/hyphen-2.4/makefile.mk misc/build/hyphen-2.4/makefile.mk --- misc/hyphen-2.4/makefile.mk 2008-06-04 10:43:21.000000000 +0200 +++ misc/build/hyphen-2.4/makefile.mk 2008-06-04 12:40:46.000000000 +0200 -@@ -1 +1,57 @@ +@@ -1 +1,58 @@ -dummy +#************************************************************************* +# @@ -151,6 +151,7 @@ diff -u misc/hyphen-2.4/makefile.mk misc/build/hyphen-2.4/makefile.mk + +USE_DEFFILE=TRUE +EXTERNAL_WARNINGS_NOT_ERRORS := TRUE ++UWINAPILIB=
+ +.INCLUDE : settings.mk + diff --git a/hyphen/prj/build.lst b/hyphen/prj/build.lst index dbb21f3325ab..c953a5725f70 100644 --- a/hyphen/prj/build.lst +++ b/hyphen/prj/build.lst @@ -1,3 +1,3 @@ -hyp hyphen : solenv sal NULL +hyp hyphen : soltools solenv NULL hyp hyphen usr1 - all hyp_mkout NULL hyp hyphen nmake - all hyp_hyphen NULL diff --git a/icc/README b/icc/README index 26ec78e40149..672371d411ad 100644 --- a/icc/README +++ b/icc/README @@ -31,11 +31,9 @@ are in: <build>/misc/build/SampleICC-1.3.2/IccProfLib/IccProfLibConf.h -The patches: -SampleICC-1.3.2.patch is the file to be used for Linux and Windows -SampleICC-1.3.2-bendian.patch is the file to be used for -big endian platform, formed from the above patch plus the big endian -forcing. +The patchs: +SampleICC-1.3.2.patch tweaks the build to use the endianness +detected in sal. beppec56@openoffice.org diff --git a/icc/SampleICC-1.3.2-bendian.patch b/icc/SampleICC-1.3.2-bendian.patch deleted file mode 100644 index a4988a2d6287..000000000000 --- a/icc/SampleICC-1.3.2-bendian.patch +++ /dev/null @@ -1,5133 +0,0 @@ -*** misc/SampleICC-1.3.2/configure Mon Aug 20 22:10:59 2007 ---- misc/build/SampleICC-1.3.2/configure Fri Jan 25 14:23:09 2008 -*************** -*** 19991,19997 **** - - - -! ac_config_files="$ac_config_files Makefile IccProfLib/Makefile Tools/Makefile Tools/CmdLine/Makefile Tools/CmdLine/IccApplyNamedCmm/Makefile Tools/CmdLine/IccApplyProfiles/Makefile Tools/CmdLine/IccDumpProfile/Makefile Tools/CmdLine/IccProfLibTest/Makefile Tools/CmdLine/IccStripUnknownTags/Makefile Tools/CmdLine/IccV4ToMPE/Makefile Contrib/Makefile Contrib/CmdLine/Makefile Contrib/CmdLine/create_CLUT_profile/Makefile Contrib/CmdLine/create_CLUT_profile_from_probe/Makefile Contrib/CmdLine/create_display_profile/Makefile Contrib/ICC_utils/Makefile Contrib/Mac_OS_X/Makefile Contrib/Mac_OS_X/create_probe/Makefile Contrib/Mac_OS_X/extract_probe_data/Makefile Contrib/examples/Makefile Contrib/examples/RSR/Makefile Contrib/tests/Makefile Contrib/tests/flatten_AToB_tag/Makefile Contrib/tests/generate_device_codes/Makefile Contrib/tests/reconstruct_measurements/Makefile Contrib/tests/round_trip_PCS_LAB/Makefile" - cat >confcache <<\_ACEOF - # This file is a shell script that caches the results of configure - # tests run on this system so they can be shared between configure ---- 19991,19997 ---- - - - -! ac_config_files="$ac_config_files Makefile IccProfLib/Makefile Tools/Makefile Tools/CmdLine/Makefile Tools/CmdLine/IccDumpProfile/Makefile Tools/CmdLine/IccProfLibTest/Makefile Tools/CmdLine/IccStripUnknownTags/Makefile Tools/CmdLine/IccV4ToMPE/Makefile Contrib/Makefile Contrib/CmdLine/Makefile Contrib/ICC_utils/Makefile Contrib/CmdLine/create_sRGB_profile/Makefile" - cat >confcache <<\_ACEOF - # This file is a shell script that caches the results of configure - # tests run on this system so they can be shared between configure -*************** -*** 20571,20578 **** - "IccProfLib/Makefile" ) CONFIG_FILES="$CONFIG_FILES IccProfLib/Makefile" ;; - "Tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES Tools/Makefile" ;; - "Tools/CmdLine/Makefile" ) CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/Makefile" ;; -- "Tools/CmdLine/IccApplyNamedCmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccApplyNamedCmm/Makefile" ;; -- "Tools/CmdLine/IccApplyProfiles/Makefile" ) CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccApplyProfiles/Makefile" ;; - "Tools/CmdLine/IccDumpProfile/Makefile" ) CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccDumpProfile/Makefile" ;; - "Tools/CmdLine/IccProfLibTest/Makefile" ) CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccProfLibTest/Makefile" ;; - "Tools/CmdLine/IccStripUnknownTags/Makefile" ) CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccStripUnknownTags/Makefile" ;; ---- 20571,20576 ---- -*************** -*** 20579,20598 **** - "Tools/CmdLine/IccV4ToMPE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccV4ToMPE/Makefile" ;; - "Contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/Makefile" ;; - "Contrib/CmdLine/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/Makefile" ;; -! "Contrib/CmdLine/create_CLUT_profile/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/create_CLUT_profile/Makefile" ;; -! "Contrib/CmdLine/create_CLUT_profile_from_probe/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/create_CLUT_profile_from_probe/Makefile" ;; -! "Contrib/CmdLine/create_display_profile/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/create_display_profile/Makefile" ;; - "Contrib/ICC_utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/ICC_utils/Makefile" ;; -- "Contrib/Mac_OS_X/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/Mac_OS_X/Makefile" ;; -- "Contrib/Mac_OS_X/create_probe/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/Mac_OS_X/create_probe/Makefile" ;; -- "Contrib/Mac_OS_X/extract_probe_data/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/Mac_OS_X/extract_probe_data/Makefile" ;; -- "Contrib/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/examples/Makefile" ;; -- "Contrib/examples/RSR/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/examples/RSR/Makefile" ;; -- "Contrib/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/tests/Makefile" ;; -- "Contrib/tests/flatten_AToB_tag/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/tests/flatten_AToB_tag/Makefile" ;; -- "Contrib/tests/generate_device_codes/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/tests/generate_device_codes/Makefile" ;; -- "Contrib/tests/reconstruct_measurements/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/tests/reconstruct_measurements/Makefile" ;; -- "Contrib/tests/round_trip_PCS_LAB/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/tests/round_trip_PCS_LAB/Makefile" ;; - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 - echo "$as_me: error: invalid argument: $ac_config_target" >&2;} ---- 20577,20584 ---- - "Tools/CmdLine/IccV4ToMPE/Makefile" ) CONFIG_FILES="$CONFIG_FILES Tools/CmdLine/IccV4ToMPE/Makefile" ;; - "Contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/Makefile" ;; - "Contrib/CmdLine/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/Makefile" ;; -! "Contrib/CmdLine/create_sRGB_profile/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/CmdLine/create_sRGB_profile/Makefile" ;; - "Contrib/ICC_utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES Contrib/ICC_utils/Makefile" ;; - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 - echo "$as_me: error: invalid argument: $ac_config_target" >&2;} -*** misc/SampleICC-1.3.2/Contrib/Makefile.in Mon Aug 20 22:10:37 2007 ---- misc/build/SampleICC-1.3.2/Contrib/Makefile.in Fri Jan 25 14:23:09 2008 -*************** -*** 103,120 **** - - SUBDIRS = \ - ICC_utils \ -! CmdLine \ -! examples \ -! Mac_OS_X \ -! tests - - - DIST_SUBDIRS = \ - ICC_utils \ -! CmdLine \ -! examples \ -! Mac_OS_X \ -! tests - - subdir = Contrib - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs ---- 103,114 ---- - - SUBDIRS = \ - ICC_utils \ -! CmdLine - - - DIST_SUBDIRS = \ - ICC_utils \ -! CmdLine - - subdir = Contrib - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -*** misc/SampleICC-1.3.2/Contrib/CmdLine/Makefile.in Mon Aug 20 22:10:34 2007 ---- misc/build/SampleICC-1.3.2/Contrib/CmdLine/Makefile.in Fri Jan 25 14:23:09 2008 -*************** -*** 102,116 **** - install_sh = @install_sh@ - - SUBDIRS = \ -! create_CLUT_profile \ -! create_CLUT_profile_from_probe \ -! create_display_profile - - - DIST_SUBDIRS = \ -! create_CLUT_profile \ -! create_CLUT_profile_from_probe \ -! create_display_profile - - subdir = Contrib/CmdLine - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs ---- 102,112 ---- - install_sh = @install_sh@ - - SUBDIRS = \ -! create_sRGB_profile - - - DIST_SUBDIRS = \ -! create_sRGB_profile - - subdir = Contrib/CmdLine - mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs -*** misc/SampleICC-1.3.2/Contrib/ICC_utils/Makefile.in Mon Aug 20 22:10:35 2007 ---- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Makefile.in Fri Jan 25 14:23:09 2008 -*************** -*** 133,139 **** - CONFIG_CLEAN_FILES = - LTLIBRARIES = $(lib_LTLIBRARIES) - -! libICC_utils_la_LIBADD = - am_libICC_utils_la_OBJECTS = Stubs.lo CAT.lo CLUT.lo CLUT_stuffer.lo \ - ICC_tool_exception.lo Vetters.lo - libICC_utils_la_OBJECTS = $(am_libICC_utils_la_OBJECTS) ---- 133,139 ---- - CONFIG_CLEAN_FILES = - LTLIBRARIES = $(lib_LTLIBRARIES) - -! libICC_utils_la_LIBADD = $(LDADD) - am_libICC_utils_la_OBJECTS = Stubs.lo CAT.lo CLUT.lo CLUT_stuffer.lo \ - ICC_tool_exception.lo Vetters.lo - libICC_utils_la_OBJECTS = $(am_libICC_utils_la_OBJECTS) -*** misc/SampleICC-1.3.2/Contrib/ICC_utils/Stubs.h Mon Aug 20 22:04:53 2007 ---- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Stubs.h Fri Jan 25 14:23:09 2008 -*************** -*** 130,136 **** - - // use one of these to force desired sort order in assoc. containers of DPX - bool -! DPX::operator<(const DPX& p) const - { - return (r_ != p.r_) ? (r_ < p.r_) : ((g_ != p.g_) ? (g_ < p.g_) : (b_ < p.b_)); - } ---- 130,136 ---- - - // use one of these to force desired sort order in assoc. containers of DPX - bool -! operator<(const DPX& p) const - { - return (r_ != p.r_) ? (r_ < p.r_) : ((g_ != p.g_) ? (g_ < p.g_) : (b_ < p.b_)); - } -*** misc/SampleICC-1.3.2/Contrib/ICC_utils/Vetters.cpp Mon Aug 20 22:04:54 2007 ---- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Vetters.cpp Fri Jan 25 14:57:06 2008 -*************** -*** 1,322 **** -! /* -! File: Vetters.cpp -! -! Contains: Utility functions to handle common argument-checking tasks, in a -! way that hides platform-specific details from higher-level code. -! -! Version: V1 -! -! Copyright: © see below -! */ -! -! /* -! * The ICC Software License, Version 0.1 -! * -! * -! * Copyright (c) 2003-2006 The International Color Consortium. All rights -! * reserved. -! * -! * Redistribution and use in source and binary forms, with or without -! * modification, are permitted provided that the following conditions -! * are met: -! * -! * 1. Redistributions of source code must retain the above copyright -! * notice, this list of conditions and the following disclaimer. -! * -! * 2. Redistributions in binary form must reproduce the above copyright -! * notice, this list of conditions and the following disclaimer in -! * the documentation and/or other materials provided with the -! * distribution. -! * -! * 3. The end-user documentation included with the redistribution, -! * if any, must include the following acknowledgment: -! * "This product includes software developed by the -! * The International Color Consortium (www.color.org)" -! * Alternately, this acknowledgment may appear in the software itself, -! * if and wherever such third-party acknowledgments normally appear. -! * -! * 4. The names "ICC" and "The International Color Consortium" must -! * not be used to imply that the ICC organization endorses or -! * promotes products derived from this software without prior -! * written permission. For written permission, please see -! * <http://www.color.org/>. -! * -! * -! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED -! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -! * DISCLAIMED. IN NO EVENT SHALL THE INTERNATIONAL COLOR CONSORTIUM OR -! * ITS CONTRIBUTING MEMBERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF -! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -! * SUCH DAMAGE. -! * ==================================================================== -! * -! * This software consists of voluntary contributions made by many -! * individuals on behalf of the The International Color Consortium. -! * -! * -! * Membership in the ICC is encouraged when this software is used for -! * commercial purposes. -! * -! * -! * For more information on The International Color Consortium, please -! * see <http://www.color.org/>. -! * -! * -! */ -! -! ////////////////////////////////////////////////////////////////////// -! // HISTORY: -! // -! // -Initial implementation by Joseph Goldstone sumer 2007 -! // -! ////////////////////////////////////////////////////////////////////// -! -! #include "Vetters.h" -! -! #include <sstream> -! using namespace std; -! -! #ifndef WIN32 -! #include <sys/errno.h> -! #else -! #include <string.h> -! int strerror_r(int errnum, char *str, int strsize) -! { -! const char *errstr = strerror(errnum); -! -! if (errstr) { -! strncpy(str, errstr, strsize); -! return 0; -! } -! -! return -1; -! } -! #define stat _stat -! #endif -! -! #include "ICC_tool_exception.h" -! -! const char* -! path_tail(const char* const s) -! { -! const char* tail = strdup(s); -! const char* last_slash = strrchr(tail, '/'); -! if (last_slash != NULL) -! tail = last_slash + 1; -! return tail; -! } -! -! void -! vet_as_int(const char* const s, const string& name, -! const string& description) -! { -! istringstream ss(s); -! int i; -! ss >> i; -! if (ss.fail()) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', cannot be parsed as" -! << " an integer. It should be an integer representing " -! << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } -! -! void -! vet_as_float(const char* const s, const string& name, -! const string& description) -! { -! istringstream ss(s); -! float i; -! ss >> i; -! if (ss.fail()) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', cannot be parsed as" -! << " a floating-point number. It should be a floating-point number" -! << " representing " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } -! -! #define STRERROR_BUF_SIZE 256 -! off_t -! get_size(const char* const s) -! { -! struct stat sb; -! int stat_returned = stat(s, &sb); -! if (stat_returned < 0) -! { -! int stat_errno = errno; -! char strerror_buf[STRERROR_BUF_SIZE]; -! strerror_r(stat_errno, strerror_buf, STRERROR_BUF_SIZE); -! ostringstream oss; -! oss << "Could not access information for file `" << s << "': " -! << strerror_buf; -! throw ICC_tool_exception(oss.str()); -! } -! return sb.st_size; -! } -! -! bool -! check_mode(const char* const s, mode_t mode) -! { -! struct stat sb; -! int stat_returned = stat(s, &sb); -! if (stat_returned < 0) -! { -! int stat_errno = errno; -! char strerror_buf[STRERROR_BUF_SIZE]; -! strerror_r(stat_errno, strerror_buf, STRERROR_BUF_SIZE); -! ostringstream oss; -! oss << "Could not access information for file `" << s << "': " -! << strerror_buf; -! throw ICC_tool_exception(oss.str()); -! } -! return (sb.st_mode & mode) != 0; -! } -! -! bool -! is_existent_file_pathname(const char* const s) -! { -! struct stat sb; -! return stat(s, &sb) == 0; -! } -! -! bool -! is_plain_file_pathname(const char* const s) -! { -! return check_mode(s, S_IFREG); -! } -! -! bool -! is_directory(const char* const s) -! { -! return check_mode(s, S_IFDIR); -! } -! -! const char* const -! containing_directory(const char* const s) -! { -! if (strlen(s) == 0) -! throw ICC_tool_exception("name of directory passed to containing_directory" -! " function was zero-length."); -! char* tmp = strdup(s); -! // lop off any trailing seperator -! if (tmp[strlen(tmp) - 1] == '/') -! tmp[strlen(tmp) - 1] = 0; -! if (strlen(tmp) == 0) -! throw ICC_tool_exception("root directory (which has no containing" -! " directory) passed to containing_directory" -! " function"); -! char* idx = strrchr(tmp, '/'); -! if (idx != NULL) -! { -! *idx = 0; -! return tmp; -! } -! char* current_directory = getenv("PWD"); -! if (current_directory == NULL) -! throw ICC_tool_exception("pathname passed to containing_directory has no" -! " embedded seperator, and there is no value for" -! " PWD defined in the environment"); -! return strdup(current_directory); -! } -! -! bool -! is_readable_pathname(const char* const s) -! { -! return check_mode(s, S_IRUSR) -! || check_mode(s, S_IRGRP) -! || check_mode(s, S_IROTH); -! } -! -! bool -! is_writable_pathname(const char* const s) -! { -! return check_mode(s, S_IWUSR) -! || check_mode(s, S_IWGRP) -! || check_mode(s, S_IWOTH); -! } -! -! bool -! is_pathname_of_empty_file(const char* const s) -! { -! return get_size(s) > 0; -! } -! -! void -! vet_input_file_pathname(const char* const s, const string& name, -! const string& description) -! { -! if (! is_plain_file_pathname(s)) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', is not the pathname" -! << " of a plain file (i.e. it is the pathname of a directory, or of a" -! << " symbolic link, or of some other sort of special file.) It should be" -! << " " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! if (! is_readable_pathname(s)) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', is not the pathname" -! << " of a readable file (i.e. you do not have permission to read that" -! << " file, or you do not have permission to read some directory" -! << " containing that file."; -! throw ICC_tool_exception(oss.str()); -! } -! if (! is_pathname_of_empty_file(s)) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', is not the pathname" -! << " of an existing readable file, but that file is of zero length." -! << " The argument should be " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } -! -! void -! vet_output_file_pathname(const char* const s, const string& name, -! const string& description, -! bool silent_overwrite_OK) -! { -! const char* const container = containing_directory(s); -! if (! is_writable_pathname(container)) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', has a directory" -! << " component which is not writable." -! << " The argument should be " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! if (is_existent_file_pathname(s)) -! { -! if (is_plain_file_pathname(s)) -! if (is_writable_pathname(s)) -! { -! if (! silent_overwrite_OK) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "' is of an existing" -! << " file." -! << " The argument should be " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } else { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "' is of an existing" -! << " file which is not writable." -! << " The argument should be " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } -! } ---- 1,329 ---- -! /* -! File: Vetters.cpp -! -! Contains: Utility functions to handle common argument-checking tasks, in a -! way that hides platform-specific details from higher-level code. -! -! Version: V1 -! -! Copyright: © see below -! */ -! -! /* -! * The ICC Software License, Version 0.1 -! * -! * -! * Copyright (c) 2003-2006 The International Color Consortium. All rights -! * reserved. -! * -! * Redistribution and use in source and binary forms, with or without -! * modification, are permitted provided that the following conditions -! * are met: -! * -! * 1. Redistributions of source code must retain the above copyright -! * notice, this list of conditions and the following disclaimer. -! * -! * 2. Redistributions in binary form must reproduce the above copyright -! * notice, this list of conditions and the following disclaimer in -! * the documentation and/or other materials provided with the -! * distribution. -! * -! * 3. The end-user documentation included with the redistribution, -! * if any, must include the following acknowledgment: -! * "This product includes software developed by the -! * The International Color Consortium (www.color.org)" -! * Alternately, this acknowledgment may appear in the software itself, -! * if and wherever such third-party acknowledgments normally appear. -! * -! * 4. The names "ICC" and "The International Color Consortium" must -! * not be used to imply that the ICC organization endorses or -! * promotes products derived from this software without prior -! * written permission. For written permission, please see -! * <http://www.color.org/>. -! * -! * -! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED -! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -! * DISCLAIMED. IN NO EVENT SHALL THE INTERNATIONAL COLOR CONSORTIUM OR -! * ITS CONTRIBUTING MEMBERS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF -! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -! * SUCH DAMAGE. -! * ==================================================================== -! * -! * This software consists of voluntary contributions made by many -! * individuals on behalf of the The International Color Consortium. -! * -! * -! * Membership in the ICC is encouraged when this software is used for -! * commercial purposes. -! * -! * -! * For more information on The International Color Consortium, please -! * see <http://www.color.org/>. -! * -! * -! */ -! -! ////////////////////////////////////////////////////////////////////// -! // HISTORY: -! // -! // -Initial implementation by Joseph Goldstone sumer 2007 -! // -! ////////////////////////////////////////////////////////////////////// -! -! #include "Vetters.h" -! -! #include <sstream> -! using namespace std; -! -! #ifndef WIN32 -! #ifdef sun -! #include <errno.h> -! #else -! #include <sys/errno.h> -! #endif -! #else -! #include <string.h> -! #define stat _stat -! #endif -! -! #if defined WIN32 || defined sun -! int strerror_r(int errnum, char *str, int strsize) -! { -! const char *errstr = strerror(errnum); -! -! if (errstr) { -! strncpy(str, errstr, strsize); -! return 0; -! } -! -! return -1; -! } -! #endif -! -! #include "ICC_tool_exception.h" -! -! const char* -! path_tail(const char* const s) -! { -! const char* tail = strdup(s); -! const char* last_slash = strrchr(tail, '/'); -! if (last_slash != NULL) -! tail = last_slash + 1; -! return tail; -! } -! -! void -! vet_as_int(const char* const s, const string& name, -! const string& description) -! { -! istringstream ss(s); -! int i; -! ss >> i; -! if (ss.fail()) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', cannot be parsed as" -! << " an integer. It should be an integer representing " -! << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } -! -! void -! vet_as_float(const char* const s, const string& name, -! const string& description) -! { -! istringstream ss(s); -! float i; -! ss >> i; -! if (ss.fail()) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', cannot be parsed as" -! << " a floating-point number. It should be a floating-point number" -! << " representing " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } -! -! #define STRERROR_BUF_SIZE 256 -! off_t -! get_size(const char* const s) -! { -! struct stat sb; -! int stat_returned = stat(s, &sb); -! if (stat_returned < 0) -! { -! int stat_errno = errno; -! char strerror_buf[STRERROR_BUF_SIZE]; -! strerror_r(stat_errno, strerror_buf, STRERROR_BUF_SIZE); -! ostringstream oss; -! oss << "Could not access information for file `" << s << "': " -! << strerror_buf; -! throw ICC_tool_exception(oss.str()); -! } -! return sb.st_size; -! } -! -! bool -! check_mode(const char* const s, mode_t mode) -! { -! struct stat sb; -! int stat_returned = stat(s, &sb); -! if (stat_returned < 0) -! { -! int stat_errno = errno; -! char strerror_buf[STRERROR_BUF_SIZE]; -! strerror_r(stat_errno, strerror_buf, STRERROR_BUF_SIZE); -! ostringstream oss; -! oss << "Could not access information for file `" << s << "': " -! << strerror_buf; -! throw ICC_tool_exception(oss.str()); -! } -! return (sb.st_mode & mode) != 0; -! } -! -! bool -! is_existent_file_pathname(const char* const s) -! { -! struct stat sb; -! return stat(s, &sb) == 0; -! } -! -! bool -! is_plain_file_pathname(const char* const s) -! { -! return check_mode(s, S_IFREG); -! } -! -! bool -! is_directory(const char* const s) -! { -! return check_mode(s, S_IFDIR); -! } -! -! const char* const -! containing_directory(const char* const s) -! { -! if (strlen(s) == 0) -! throw ICC_tool_exception("name of directory passed to containing_directory" -! " function was zero-length."); -! char* tmp = strdup(s); -! // lop off any trailing seperator -! if (tmp[strlen(tmp) - 1] == '/') -! tmp[strlen(tmp) - 1] = 0; -! if (strlen(tmp) == 0) -! throw ICC_tool_exception("root directory (which has no containing" -! " directory) passed to containing_directory" -! " function"); -! char* idx = strrchr(tmp, '/'); -! if (idx != NULL) -! { -! *idx = 0; -! return tmp; -! } -! char* current_directory = getenv("PWD"); -! if (current_directory == NULL) -! throw ICC_tool_exception("pathname passed to containing_directory has no" -! " embedded seperator, and there is no value for" -! " PWD defined in the environment"); -! return strdup(current_directory); -! } -! -! bool -! is_readable_pathname(const char* const s) -! { -! return check_mode(s, S_IRUSR) -! || check_mode(s, S_IRGRP) -! || check_mode(s, S_IROTH); -! } -! -! bool -! is_writable_pathname(const char* const s) -! { -! return check_mode(s, S_IWUSR) -! || check_mode(s, S_IWGRP) -! || check_mode(s, S_IWOTH); -! } -! -! bool -! is_pathname_of_empty_file(const char* const s) -! { -! return get_size(s) > 0; -! } -! -! void -! vet_input_file_pathname(const char* const s, const string& name, -! const string& description) -! { -! if (! is_plain_file_pathname(s)) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', is not the pathname" -! << " of a plain file (i.e. it is the pathname of a directory, or of a" -! << " symbolic link, or of some other sort of special file.) It should be" -! << " " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! if (! is_readable_pathname(s)) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', is not the pathname" -! << " of a readable file (i.e. you do not have permission to read that" -! << " file, or you do not have permission to read some directory" -! << " containing that file."; -! throw ICC_tool_exception(oss.str()); -! } -! if (! is_pathname_of_empty_file(s)) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', is not the pathname" -! << " of an existing readable file, but that file is of zero length." -! << " The argument should be " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } -! -! void -! vet_output_file_pathname(const char* const s, const string& name, -! const string& description, -! bool silent_overwrite_OK) -! { -! const char* const container = containing_directory(s); -! if (! is_writable_pathname(container)) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "', has a directory" -! << " component which is not writable." -! << " The argument should be " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! if (is_existent_file_pathname(s)) -! { -! if (is_plain_file_pathname(s)) -! if (is_writable_pathname(s)) -! { -! if (! silent_overwrite_OK) -! { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "' is of an existing" -! << " file." -! << " The argument should be " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } else { -! ostringstream oss; -! oss << "The " << name << " argument given, `" << s << "' is of an existing" -! << " file which is not writable." -! << " The argument should be " << description << "."; -! throw ICC_tool_exception(oss.str()); -! } -! } -! } -*** misc/SampleICC-1.3.2/IccProfLib/IccIO.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccIO.cpp Fri Jan 25 14:23:09 2008 -*************** -*** 78,84 **** - #include "IccIO.h" - #include "IccUtil.h" - #include <stdlib.h> -! #include <memory.h> - #include <string.h> - - #ifndef __max ---- 78,84 ---- - #include "IccIO.h" - #include "IccUtil.h" - #include <stdlib.h> -! #include <memory> - #include <string.h> - - #ifndef __max -*** misc/SampleICC-1.3.2/IccProfLib/IccIO.h Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccIO.h Fri Jan 25 14:23:09 2008 -*************** -*** 79,84 **** ---- 79,85 ---- - #define _ICCIO_H - - #include "IccDefs.h" -+ #include "memory" - #include "stdio.h" - - #ifdef USESAMPLEICCNAMESPACE -*** misc/SampleICC-1.3.2/IccProfLib/IccMpeACS.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccMpeACS.cpp Fri Jan 25 14:23:09 2008 -*************** -*** 136,152 **** - icChar sigBuf[30]; - - if (GetBAcsSig()) -! sDescription += "ELEM_bACS\r\n"; - else -! sDescription += "ELEM_eACS\r\n"; - - icGetSig(sigBuf, m_signature); - sDescription += " Signature = "; - sDescription += sigBuf; -! sDescription += "\r\n"; - - if (m_pData) { -! sDescription += "\r\nData Follows:\r\n"; - - icMemDump(sDescription, m_pData, m_nDataSize); - } ---- 136,152 ---- - icChar sigBuf[30]; - - if (GetBAcsSig()) -! sDescription += "ELEM_bACS\n"; - else -! sDescription += "ELEM_eACS\n"; - - icGetSig(sigBuf, m_signature); - sDescription += " Signature = "; - sDescription += sigBuf; -! sDescription += "\n"; - - if (m_pData) { -! sDescription += "\nData Follows:\n"; - - icMemDump(sDescription, m_pData, m_nDataSize); - } -*** misc/SampleICC-1.3.2/IccProfLib/IccMpeBasic.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccMpeBasic.cpp Fri Jan 25 14:23:09 2008 -*************** -*** 218,249 **** - sprintf(buf, "%.8f", m_endPoint); - sDescription += buf; - } -! sprintf(buf, "]\r\nFunctionType: %04Xh\r\n", m_nFunctionType); - sDescription += buf; - - switch(m_nFunctionType) { - case 0x0000: - if (m_params[1]==0.0 && m_params[2]==0.0) -! sprintf(buf, "Y = %.8f\r\n\r\n", m_params[3]); - else if (m_params[0]==1.0 && m_params[1]==1.0 && m_params[2]==0.0 && m_params[3]==0.0) -! sprintf(buf, "Y = X\r\n\r\n"); - else if (m_params[0]==1.0 && m_params[2]==0.0) -! sprintf(buf, "Y = %.8f * X + %.8f\r\n\r\n", - m_params[1], m_params[3]); - else -! sprintf(buf, "Y = (%.8f * X + %.8f)^%.4f + %.8f\r\n\r\n", - m_params[1], m_params[2], m_params[0], m_params[3]); - sDescription += buf; - return; - - case 0x0001: -! sprintf(buf, "Y = %.8f * log (%.8f * (X ^ %.8f) + %.8f) + %.8f\r\n\r\n", - m_params[1], m_params[2], m_params[0], m_params[3], m_params[4]); - sDescription += buf; - return; - - case 0x0002: -! sprintf(buf, "Y = %.8f * (%.8f ^ (%.8f * X + %.8f)) + %.8f\r\n\r\n", - m_params[0], m_params[1], m_params[2], m_params[3], m_params[4]); - sDescription += buf; - return; ---- 218,249 ---- - sprintf(buf, "%.8f", m_endPoint); - sDescription += buf; - } -! sprintf(buf, "]\nFunctionType: %04Xh\n", m_nFunctionType); - sDescription += buf; - - switch(m_nFunctionType) { - case 0x0000: - if (m_params[1]==0.0 && m_params[2]==0.0) -! sprintf(buf, "Y = %.8f\n\n", m_params[3]); - else if (m_params[0]==1.0 && m_params[1]==1.0 && m_params[2]==0.0 && m_params[3]==0.0) -! sprintf(buf, "Y = X\n\n"); - else if (m_params[0]==1.0 && m_params[2]==0.0) -! sprintf(buf, "Y = %.8f * X + %.8f\n\n", - m_params[1], m_params[3]); - else -! sprintf(buf, "Y = (%.8f * X + %.8f)^%.4f + %.8f\n\n", - m_params[1], m_params[2], m_params[0], m_params[3]); - sDescription += buf; - return; - - case 0x0001: -! sprintf(buf, "Y = %.8f * log (%.8f * (X ^ %.8f) + %.8f) + %.8f\n\n", - m_params[1], m_params[2], m_params[0], m_params[3], m_params[4]); - sDescription += buf; - return; - - case 0x0002: -! sprintf(buf, "Y = %.8f * (%.8f ^ (%.8f * X + %.8f)) + %.8f\n\n", - m_params[0], m_params[1], m_params[2], m_params[3], m_params[4]); - sDescription += buf; - return; -*************** -*** 250,260 **** - - default: - int i; -! sprintf(buf, "Unknown Function with %d parameters:\r\n\r\n", m_nParameters); - sDescription += buf; - - for (i=0; i<m_nParameters; i++) { -! sprintf(buf, "Param[%d] = %.8lf\r\n\r\n", i, m_params[i]); - sDescription += buf; - } - } ---- 250,260 ---- - - default: - int i; -! sprintf(buf, "Unknown Function with %d parameters:\n\n", m_nParameters); - sDescription += buf; - - for (i=0; i<m_nParameters; i++) { -! sprintf(buf, "Param[%d] = %.8lf\n\n", i, m_params[i]); - sDescription += buf; - } - } -*************** -*** 496,502 **** - if (m_nReserved || m_nReserved2) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " formula curve has non zero reserved data.\r\n"; - rv = icValidateWarning; - } - ---- 496,502 ---- - if (m_nReserved || m_nReserved2) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " formula curve has non zero reserved data.\n"; - rv = icValidateWarning; - } - -*************** -*** 505,517 **** - if (!m_params || m_nParameters<4) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " formula curve has Invalid formulaCurveSegment parameters.\r\n"; - rv = icValidateCriticalError; - } - else if (m_nParameters > 4) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " formula curve has too many formulaCurveSegment parameters.\r\n"; - rv = icValidateWarning; - } - break; ---- 505,517 ---- - if (!m_params || m_nParameters<4) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " formula curve has Invalid formulaCurveSegment parameters.\n"; - rv = icValidateCriticalError; - } - else if (m_nParameters > 4) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " formula curve has too many formulaCurveSegment parameters.\n"; - rv = icValidateWarning; - } - break; -*************** -*** 520,532 **** - if (!m_params || m_nParameters<5) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " formula curve has Invalid formulaCurveSegment parameters.\r\n"; - rv = icValidateCriticalError; - } - else if (m_nParameters > 5) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " formula curve has too many formulaCurveSegment parameters.\r\n"; - rv = icValidateWarning; - } - break; ---- 520,532 ---- - if (!m_params || m_nParameters<5) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " formula curve has Invalid formulaCurveSegment parameters.\n"; - rv = icValidateCriticalError; - } - else if (m_nParameters > 5) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " formula curve has too many formulaCurveSegment parameters.\n"; - rv = icValidateWarning; - } - break; -*************** -*** 535,547 **** - if (!m_params || m_nParameters<5) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " formula curve has Invalid formulaCurveSegment parameters.\r\n"; - rv = icValidateCriticalError; - } - else if (m_nParameters > 5) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " formula curve has too many formulaCurveSegment parameters.\r\n"; - rv = icValidateWarning; - } - break; ---- 535,547 ---- - if (!m_params || m_nParameters<5) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " formula curve has Invalid formulaCurveSegment parameters.\n"; - rv = icValidateCriticalError; - } - else if (m_nParameters > 5) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " formula curve has too many formulaCurveSegment parameters.\n"; - rv = icValidateWarning; - } - break; -*************** -*** 551,557 **** - icChar buf[128]; - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sprintf(buf, " formula curve uses unknown formulaCurveSegment function type %d\r\n", m_nFunctionType); - sReport += buf; - rv = icValidateCriticalError; - } ---- 551,557 ---- - icChar buf[128]; - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sprintf(buf, " formula curve uses unknown formulaCurveSegment function type %d\n", m_nFunctionType); - sReport += buf; - rv = icValidateCriticalError; - } -*************** -*** 727,733 **** - sDescription += buf; - } - -! sprintf(buf, "]\r\n"); - sDescription += buf; - } - else { ---- 727,733 ---- - sDescription += buf; - } - -! sprintf(buf, "]\n"); - sDescription += buf; - } - else { -*************** -*** 744,752 **** - sprintf(buf, "%.8f", m_endPoint); - sDescription += buf; - } -! sprintf(buf, "]\r\n"); - sDescription += buf; -! sDescription += "IN OUT\r\n"; - - icUInt32Number i; - ---- 744,752 ---- - sprintf(buf, "%.8f", m_endPoint); - sDescription += buf; - } -! sprintf(buf, "]\n"); - sDescription += buf; -! sDescription += "IN OUT\n"; - - icUInt32Number i; - -*************** -*** 754,764 **** - icFloatNumber last = (icFloatNumber)(m_nCount-1); - - for (i=0; i<m_nCount; i++) { -! sprintf(buf, "%.8f %.8f\r\n", m_startPoint + (icFloatNumber)i*range/last, m_pSamples[i]); - sDescription += buf; - } - } -! sDescription += "\r\n"; - } - - /** ---- 754,764 ---- - icFloatNumber last = (icFloatNumber)(m_nCount-1); - - for (i=0; i<m_nCount; i++) { -! sprintf(buf, "%.8f %.8f\n", m_startPoint + (icFloatNumber)i*range/last, m_pSamples[i]); - sDescription += buf; - } - } -! sDescription += "\n"; - } - - /** -*************** -*** 910,916 **** - if (m_nReserved) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " sampled curve has non zero reserved data.\r\n"; - rv = icValidateWarning; - } - ---- 910,916 ---- - if (m_nReserved) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " sampled curve has non zero reserved data.\n"; - rv = icValidateWarning; - } - -*************** -*** 917,929 **** - if (m_nCount<2) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " sampled curve has too few sample points.\r\n"; - rv = icValidateCriticalError; - } - else if (m_endPoint-m_startPoint == 0.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " sampled curve has a range of zero.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - ---- 917,929 ---- - if (m_nCount<2) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " sampled curve has too few sample points.\n"; - rv = icValidateCriticalError; - } - else if (m_endPoint-m_startPoint == 0.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " sampled curve has a range of zero.\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - -*************** -*** 1054,1060 **** - { - CIccCurveSegmentList::iterator i; - -! sDescription += "BEGIN_CURVE\r\n"; - for (i=m_list->begin(); i!=m_list->end(); i++) { - (*i)->Describe(sDescription); - } ---- 1054,1060 ---- - { - CIccCurveSegmentList::iterator i; - -! sDescription += "BEGIN_CURVE\n"; - for (i=m_list->begin(); i!=m_list->end(); i++) { - (*i)->Describe(sDescription); - } -*************** -*** 1342,1348 **** - if (m_nReserved1 || m_nReserved2) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " Segmented curve has non zero reserved data.\r\n"; - rv = icValidateWarning; - } - ---- 1342,1348 ---- - if (m_nReserved1 || m_nReserved2) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " Segmented curve has non zero reserved data.\n"; - rv = icValidateWarning; - } - -*************** -*** 1349,1355 **** - if (m_list->size()==0) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " Has Empty CurveSegment!\r\n"; - return icValidateCriticalError; - } - ---- 1349,1355 ---- - if (m_list->size()==0) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " Has Empty CurveSegment!\n"; - return icValidateCriticalError; - } - -*************** -*** 1599,1609 **** - icChar buf[81]; - int i; - -! sprintf(buf, "BEGIN_CURVE_SET %d\r\n", m_nInputChannels); - sDescription += buf; - - for (i=0; i<m_nInputChannels; i++) { -! sprintf(buf, "Curve %d of %d\r\n", i+1, m_nInputChannels); - sDescription += buf; - if (m_curve[i]) { - m_curve[i]->Describe(sDescription); ---- 1599,1609 ---- - icChar buf[81]; - int i; - -! sprintf(buf, "BEGIN_CURVE_SET %d\n", m_nInputChannels); - sDescription += buf; - - for (i=0; i<m_nInputChannels; i++) { -! sprintf(buf, "Curve %d of %d\n", i+1, m_nInputChannels); - sDescription += buf; - if (m_curve[i]) { - m_curve[i]->Describe(sDescription); -*************** -*** 1877,1883 **** - sReport += " - Element "; - sSigName = Info.GetSigName(GetType()); - sReport += sSigName; -! sReport += " Has Empty Curve Element(s)!\r\n"; - return icValidateCriticalError; - } - ---- 1877,1883 ---- - sReport += " - Element "; - sSigName = Info.GetSigName(GetType()); - sReport += sSigName; -! sReport += " Has Empty Curve Element(s)!\n"; - return icValidateCriticalError; - } - -*************** -*** 2042,2048 **** - int i, j; - icFloatNumber *data = m_pMatrix; - -! sprintf(buf, "BEGIN_ELEM_MATRIX %d %d\r\n", m_nInputChannels, m_nOutputChannels); - sDescription += buf; - - for (j=0; j<m_nOutputChannels; j++) { ---- 2042,2048 ---- - int i, j; - icFloatNumber *data = m_pMatrix; - -! sprintf(buf, "BEGIN_ELEM_MATRIX %d %d\n", m_nInputChannels, m_nOutputChannels); - sDescription += buf; - - for (j=0; j<m_nOutputChannels; j++) { -*************** -*** 2052,2058 **** - sprintf(buf, "%12.8lf", data[i]); - sDescription += buf; - } -! sprintf(buf, " + %12.8lf\r\n", m_pConstants[j]); - sDescription += buf; - data += i; - } ---- 2052,2058 ---- - sprintf(buf, "%12.8lf", data[i]); - sDescription += buf; - } -! sprintf(buf, " + %12.8lf\n", m_pConstants[j]); - sDescription += buf; - data += i; - } -*************** -*** 2273,2279 **** - sReport += " - Element "; - sSigName = Info.GetSigName(GetType()); - sReport += sSigName; -! sReport += " Has Empty Matrix data!\r\n"; - return icValidateCriticalError; - } - ---- 2273,2279 ---- - sReport += " - Element "; - sSigName = Info.GetSigName(GetType()); - sReport += sSigName; -! sReport += " Has Empty Matrix data!\n"; - return icValidateCriticalError; - } - -*************** -*** 2620,2626 **** - sReport += " - Element "; - sSigName = Info.GetSigName(GetType()); - sReport += sSigName; -! sReport += " Has No CLUT!\r\n"; - return icValidateCriticalError; - } - ---- 2620,2626 ---- - sReport += " - Element "; - sSigName = Info.GetSigName(GetType()); - sReport += sSigName; -! sReport += " Has No CLUT!\n"; - return icValidateCriticalError; - } - -*** misc/SampleICC-1.3.2/IccProfLib/IccProfLibConf.h Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccProfLibConf.h Fri Jan 25 14:23:09 2008 -*************** -*** 112,126 **** - #define ICUINT64TYPE unsigned long long - #define ICINT64TYPE long long - -! #if defined(__APPLE__) -! #if defined(__LITTLE_ENDIAN__) -! #define ICC_BYTE_ORDER_LITTLE_ENDIAN -! #else - #define ICC_BYTE_ORDER_BIG_ENDIAN -! #endif -! #else -! #define ICC_BYTE_ORDER_LITTLE_ENDIAN -! #endif - - #define ICCPROFLIB_API - #define ICCPROFLIB_EXTERN ---- 112,126 ---- - #define ICUINT64TYPE unsigned long long - #define ICINT64TYPE long long - -! /* #if defined(__APPLE__) */ -! /* #if defined(__LITTLE_ENDIAN__) */ -! /* #define ICC_BYTE_ORDER_LITTLE_ENDIAN */ -! /* #else */ - #define ICC_BYTE_ORDER_BIG_ENDIAN -! /* #endif */ -! /* #else */ -! /* #define ICC_BYTE_ORDER_LITTLE_ENDIAN */ -! /* #endif */ - - #define ICCPROFLIB_API - #define ICCPROFLIB_EXTERN -*** misc/SampleICC-1.3.2/IccProfLib/IccProfile.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccProfile.cpp Fri Jan 25 14:23:09 2008 -*************** -*** 567,573 **** - - if (!ReadBasic(pIO)) { - sReport += icValidateCriticalErrorMsg; -! sReport += " - Unable to read profile!**\r\n\tProfile has invalid structure!\r\n"; - Cleanup(); - - return icValidateCriticalError; ---- 567,573 ---- - - if (!ReadBasic(pIO)) { - sReport += icValidateCriticalErrorMsg; -! sReport += " - Unable to read profile!**\n\tProfile has invalid structure!\n"; - Cleanup(); - - return icValidateCriticalError; -*************** -*** 576,582 **** - // Check profile header - if (!CheckFileSize(pIO)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Bad Header File Size\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 576,582 ---- - // Check profile header - if (!CheckFileSize(pIO)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Bad Header File Size\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 588,594 **** - CalcProfileID(pIO, &profileID); - if (strncmp((char*)profileID.ID8, (char*)m_Header.profileID.ID8, 16) != 0) { - sReport += icValidateNonCompliantMsg; -! sReport += "Bad Profile ID\r\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 588,594 ---- - CalcProfileID(pIO, &profileID); - if (strncmp((char*)profileID.ID8, (char*)m_Header.profileID.ID8, 16) != 0) { - sReport += icValidateNonCompliantMsg; -! sReport += "Bad Profile ID\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 601,607 **** - sReport += icValidateCriticalErrorMsg; - sReport += " - "; - sReport += Info.GetTagSigName(i->TagInfo.sig); -! sReport += " - Tag has invalid structure!\r\n"; - - rv = icMaxStatus(rv, icValidateCriticalError); - } ---- 601,607 ---- - sReport += icValidateCriticalErrorMsg; - sReport += " - "; - sReport += Info.GetTagSigName(i->TagInfo.sig); -! sReport += " - Tag has invalid structure!\n"; - - rv = icMaxStatus(rv, icValidateCriticalError); - } -*************** -*** 1026,1032 **** - - default: - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Unknown profile class!\r\n", Info.GetProfileClassSigName(m_Header.deviceClass)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } ---- 1026,1032 ---- - - default: - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Unknown profile class!\n", Info.GetProfileClassSigName(m_Header.deviceClass)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } -*************** -*** 1033,1039 **** - - if (!Info.IsValidSpace(m_Header.colorSpace)) { - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Unknown color space!\r\n", Info.GetColorSpaceSigName(m_Header.colorSpace)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } ---- 1033,1039 ---- - - if (!Info.IsValidSpace(m_Header.colorSpace)) { - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Unknown color space!\n", Info.GetColorSpaceSigName(m_Header.colorSpace)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } -*************** -*** 1041,1047 **** - if (m_Header.deviceClass==icSigLinkClass) { - if (!Info.IsValidSpace(m_Header.pcs)) { - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Unknown pcs color space!\r\n", Info.GetColorSpaceSigName(m_Header.pcs)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } ---- 1041,1047 ---- - if (m_Header.deviceClass==icSigLinkClass) { - if (!Info.IsValidSpace(m_Header.pcs)) { - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Unknown pcs color space!\n", Info.GetColorSpaceSigName(m_Header.pcs)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } -*************** -*** 1049,1055 **** - else { - if (m_Header.pcs!=icSigXYZData && m_Header.pcs!=icSigLabData) { - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Invalid pcs color space!\r\n", Info.GetColorSpaceSigName(m_Header.pcs)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } ---- 1049,1055 ---- - else { - if (m_Header.pcs!=icSigXYZData && m_Header.pcs!=icSigLabData) { - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Invalid pcs color space!\n", Info.GetColorSpaceSigName(m_Header.pcs)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } -*************** -*** 1068,1074 **** - - default: - sReport += icValidateWarningMsg; -! sprintf(buf, " - %s: Unknown platform signature.\r\n", Info.GetPlatformSigName(m_Header.platform)); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1068,1074 ---- - - default: - sReport += icValidateWarningMsg; -! sprintf(buf, " - %s: Unknown platform signature.\n", Info.GetPlatformSigName(m_Header.platform)); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1095,1101 **** - - default: - sReport += icValidateWarningMsg; -! sprintf(buf, " - %s: Unregisterd CMM signature.\r\n", Info.GetCmmSigName((icCmmSignature)m_Header.cmmId)); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1095,1101 ---- - - default: - sReport += icValidateWarningMsg; -! sprintf(buf, " - %s: Unregisterd CMM signature.\n", Info.GetCmmSigName((icCmmSignature)m_Header.cmmId)); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1109,1115 **** - - default: - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Unknown rendering intent!\r\n", Info.GetRenderingIntentName((icRenderingIntent)m_Header.renderingIntent)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } ---- 1109,1115 ---- - - default: - sReport += icValidateCriticalErrorMsg; -! sprintf(buf, " - %s: Unknown rendering intent!\n", Info.GetRenderingIntentName((icRenderingIntent)m_Header.renderingIntent)); - sReport += buf; - rv = icMaxStatus(rv, icValidateCriticalError); - } -*************** -*** 1120,1126 **** - icFloatNumber Z = icFtoD(m_Header.illuminant.Z); - if (X<0.9640 || X>0.9644 || Y!=1.0 || Z<0.8247 || Z>0.8251) { - sReport += icValidateNonCompliantMsg; -! sReport += " - Non D50 Illuminant XYZ values.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 1120,1126 ---- - icFloatNumber Z = icFtoD(m_Header.illuminant.Z); - if (X<0.9640 || X>0.9644 || Y!=1.0 || Z<0.8247 || Z>0.8251) { - sReport += icValidateNonCompliantMsg; -! sReport += " - Non D50 Illuminant XYZ values.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 1130,1136 **** - } - if (sum) { - sReport += icValidateNonCompliantMsg; -! sReport += " - Reserved value must be zero.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 1130,1136 ---- - } - if (sum) { - sReport += icValidateNonCompliantMsg; -! sReport += " - Reserved value must be zero.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 1163,1169 **** - { - sReport += icValidateWarningMsg; - sReport += buf; -! sReport += " - Tag exclusion test failed.\r\n"; - rv = false; - } - } ---- 1163,1169 ---- - { - sReport += icValidateWarningMsg; - sReport += buf; -! sReport += " - Tag exclusion test failed.\n"; - rv = false; - } - } -*************** -*** 1177,1183 **** - { - sReport += icValidateWarningMsg; - sReport += buf; -! sReport += " - Tag exclusion test failed.\r\n"; - rv = false; - } - break; ---- 1177,1183 ---- - { - sReport += icValidateWarningMsg; - sReport += buf; -! sReport += " - Tag exclusion test failed.\n"; - rv = false; - } - break; -*************** -*** 1192,1198 **** - { - sReport += icValidateWarningMsg; - sReport += buf; -! sReport += " - Tag exclusion test failed.\r\n"; - rv = false; - } - break; ---- 1192,1198 ---- - { - sReport += icValidateWarningMsg; - sReport += buf; -! sReport += " - Tag exclusion test failed.\n"; - rv = false; - } - break; -*************** -*** 1234,1240 **** - if (!IsTypeValid(tagsig, typesig)) { - sReport += icValidateNonCompliantMsg; - sReport += buf; -! sprintf(buf," - %s: Invalid tag type (Might be critical!).\r\n", Info.GetTagTypeSigName(typesig)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 1234,1240 ---- - if (!IsTypeValid(tagsig, typesig)) { - sReport += icValidateNonCompliantMsg; - sReport += buf; -! sprintf(buf," - %s: Invalid tag type (Might be critical!).\n", Info.GetTagTypeSigName(typesig)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 1477,1483 **** - { - if (m_Tags->size() <= 0) { - sReport += icValidateCriticalErrorMsg; -! sReport += "No tags present.\r\n"; - return icValidateCriticalError; - } - ---- 1477,1483 ---- - { - if (m_Tags->size() <= 0) { - sReport += icValidateCriticalErrorMsg; -! sReport += "No tags present.\n"; - return icValidateCriticalError; - } - -*************** -*** 1486,1492 **** - if (!GetTag(icSigProfileDescriptionTag) || - !GetTag(icSigCopyrightTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Required tags missing.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 1486,1492 ---- - if (!GetTag(icSigProfileDescriptionTag) || - !GetTag(icSigCopyrightTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Required tags missing.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 1495,1501 **** - if (sig != icSigLinkClass) { - if (!GetTag(icSigMediaWhitePointTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Media white point tag missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 1495,1501 ---- - if (sig != icSigLinkClass) { - if (!GetTag(icSigMediaWhitePointTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Media white point tag missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 1505,1511 **** - if (m_Header.colorSpace == icSigGrayData) { - if (!GetTag(icSigGrayTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Gray TRC tag missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 1505,1511 ---- - if (m_Header.colorSpace == icSigGrayData) { - if (!GetTag(icSigGrayTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Gray TRC tag missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 1515,1521 **** - !GetTag(icSigBlueMatrixColumnTag) || !GetTag(icSigRedTRCTag) || - !GetTag(icSigGreenTRCTag) || !GetTag(icSigBlueTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 1515,1521 ---- - !GetTag(icSigBlueMatrixColumnTag) || !GetTag(icSigRedTRCTag) || - !GetTag(icSigGreenTRCTag) || !GetTag(icSigBlueTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 1526,1532 **** - if (m_Header.colorSpace == icSigGrayData) { - if (!GetTag(icSigGrayTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Gray TRC tag missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 1526,1532 ---- - if (m_Header.colorSpace == icSigGrayData) { - if (!GetTag(icSigGrayTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Gray TRC tag missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 1536,1542 **** - !GetTag(icSigBlueMatrixColumnTag) || !GetTag(icSigRedTRCTag) || - !GetTag(icSigGreenTRCTag) || !GetTag(icSigBlueTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 1536,1542 ---- - !GetTag(icSigBlueMatrixColumnTag) || !GetTag(icSigRedTRCTag) || - !GetTag(icSigGreenTRCTag) || !GetTag(icSigBlueTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 1547,1553 **** - if (m_Header.colorSpace == icSigGrayData) { - if (!GetTag(icSigGrayTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Gray TRC tag missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 1547,1553 ---- - if (m_Header.colorSpace == icSigGrayData) { - if (!GetTag(icSigGrayTRCTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Gray TRC tag missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 1556,1568 **** - !GetTag(icSigAToB1Tag) || !GetTag(icSigBToA1Tag) || - !GetTag(icSigAToB2Tag) || !GetTag(icSigBToA2Tag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - - if (!GetTag(icSigGamutTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Gamut tag missing.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 1556,1568 ---- - !GetTag(icSigAToB1Tag) || !GetTag(icSigBToA1Tag) || - !GetTag(icSigAToB2Tag) || !GetTag(icSigBToA2Tag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - - if (!GetTag(icSigGamutTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Gamut tag missing.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 1585,1591 **** - case icSig16colorData: - if (!GetTag(icSigColorantTableTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "xCLR output profile is missing colorantTableTag\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 1585,1591 ---- - case icSig16colorData: - if (!GetTag(icSigColorantTableTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "xCLR output profile is missing colorantTableTag\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 1599,1605 **** - case icSigLinkClass: - if (!GetTag(icSigAToB0Tag) || !GetTag(icSigProfileSequenceDescTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 1599,1605 ---- - case icSigLinkClass: - if (!GetTag(icSigAToB0Tag) || !GetTag(icSigProfileSequenceDescTag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 1606,1612 **** - if (icIsSpaceCLR(m_Header.colorSpace)) { - if (!GetTag(icSigColorantTableTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Required tag(s) missing.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } ---- 1606,1612 ---- - if (icIsSpaceCLR(m_Header.colorSpace)) { - if (!GetTag(icSigColorantTableTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Required tag(s) missing.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } -*************** -*** 1614,1620 **** - if (icIsSpaceCLR(m_Header.pcs)) { - if (!GetTag(icSigColorantTableOutTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Required tag(s) missing.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } ---- 1614,1620 ---- - if (icIsSpaceCLR(m_Header.pcs)) { - if (!GetTag(icSigColorantTableOutTag)) { - sReport += icValidateNonCompliantMsg; -! sReport += "Required tag(s) missing.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } -*************** -*** 1623,1629 **** - case icSigColorSpaceClass: - if (!GetTag(icSigAToB0Tag) || !GetTag(icSigBToA0Tag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; ---- 1623,1629 ---- - case icSigColorSpaceClass: - if (!GetTag(icSigAToB0Tag) || !GetTag(icSigBToA0Tag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; -*************** -*** 1631,1637 **** - case icSigAbstractClass: - if (!GetTag(icSigAToB0Tag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; ---- 1631,1637 ---- - case icSigAbstractClass: - if (!GetTag(icSigAToB0Tag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; -*************** -*** 1639,1645 **** - case icSigNamedColorClass: - if (!GetTag(icSigNamedColor2Tag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 1639,1645 ---- - case icSigNamedColorClass: - if (!GetTag(icSigNamedColor2Tag)) { - sReport += icValidateCriticalErrorMsg; -! sReport += "Critical tag(s) missing.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 1647,1653 **** - - default: - sReport += icValidateCriticalErrorMsg; -! sReport += "Unknown Profile Class.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - break; - } ---- 1647,1653 ---- - - default: - sReport += icValidateCriticalErrorMsg; -! sReport += "Unknown Profile Class.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - break; - } -*************** -*** 1724,1730 **** - // Check for duplicate tags - if (!AreTagsUnique()) { - sReport += icValidateWarning; -! sReport += " - There are duplicate tags.\r\n"; - rv =icMaxStatus(rv, icValidateWarning); - } - ---- 1724,1730 ---- - // Check for duplicate tags - if (!AreTagsUnique()) { - sReport += icValidateWarning; -! sReport += " - There are duplicate tags.\n"; - rv =icMaxStatus(rv, icValidateWarning); - } - -*************** -*** 1979,1985 **** - sReport = icValidateCriticalErrorMsg; - sReport += " - "; - sReport += szFilename; -! sReport += "- Invalid Filename\r\n"; - delete pFileIO; - return NULL; - } ---- 1979,1985 ---- - sReport = icValidateCriticalErrorMsg; - sReport += " - "; - sReport += szFilename; -! sReport += "- Invalid Filename\n"; - delete pFileIO; - return NULL; - } -*** misc/SampleICC-1.3.2/IccProfLib/IccTagBasic.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagBasic.cpp Fri Jan 25 14:23:09 2008 -*************** -*** 166,172 **** - CIccInfo Info; - sReport += icValidateNonCompliantMsg; - sReport += Info.GetSigName(sig); -! sReport += " - Reserved Value must be zero.\r\n"; - - rv = icValidateNonCompliant; - } ---- 166,172 ---- - CIccInfo Info; - sReport += icValidateNonCompliantMsg; - sReport += Info.GetSigName(sig); -! sReport += " - Reserved Value must be zero.\n"; - - rv = icValidateNonCompliant; - } -*************** -*** 340,346 **** - sprintf(buf, "%u Bytes.", m_nSize-4); - sDescription += buf; - -! sDescription += "\r\n\r\nData Follows:\r\n"; - - icMemDump(sDescription, m_pData+4, m_nSize-4); - } ---- 340,346 ---- - sprintf(buf, "%u Bytes.", m_nSize-4); - sDescription += buf; - -! sDescription += "\n\nData Follows:\n"; - - icMemDump(sDescription, m_pData+4, m_nSize-4); - } -*************** -*** 511,517 **** - if (m_szText && *m_szText) - sDescription += m_szText; - -! sDescription += "\"\r\n"; - } - - ---- 511,517 ---- - if (m_szText && *m_szText) - sDescription += m_szText; - -! sDescription += "\"\n"; - } - - -*************** -*** 629,635 **** - if (m_nBufSize<7) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Tag must have at least seven text characters.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; ---- 629,635 ---- - if (m_nBufSize<7) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Tag must have at least seven text characters.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; -*************** -*** 636,642 **** - default: - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Unknown Tag.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - int i; ---- 636,642 ---- - default: - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Unknown Tag.\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - int i; -*************** -*** 644,650 **** - if (m_szText[i]&0x80) { - sReport += icValidateWarning; - sReport += sSigName; -! sReport += " - Text do not contain 7bit data.\r\n"; - } - } - } ---- 644,650 ---- - if (m_szText[i]&0x80) { - sReport += icValidateWarning; - sReport += sSigName; -! sReport += " - Text do not contain 7bit data.\n"; - } - } - } -*************** -*** 651,657 **** - else { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty Tag.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - ---- 651,657 ---- - else { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty Tag.\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - -*************** -*** 941,947 **** - if (m_szText && *m_szText) - sDescription += m_szText; - -! sDescription += "\"\r\n"; - } - - ---- 941,947 ---- - if (m_szText && *m_szText) - sDescription += m_szText; - -! sDescription += "\"\n"; - } - - -*************** -*** 1101,1107 **** - if (m_nScriptSize>67) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - ScriptCode count must not be greater than 67.\r\n"; - - rv =icMaxStatus(rv, icValidateNonCompliant); - } ---- 1101,1107 ---- - if (m_nScriptSize>67) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - ScriptCode count must not be greater than 67.\n"; - - rv =icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 1260,1266 **** - CIccInfo Fmt; - - sDescription += Fmt.GetSigName(m_nSig); -! sDescription += "\r\n"; - } - - ---- 1260,1266 ---- - CIccInfo Fmt; - - sDescription += Fmt.GetSigName(m_nSig); -! sDescription += "\n"; - } - - -*************** -*** 1320,1326 **** - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sprintf(buf, " - %s: Unknown Technology.\r\n", Info.GetSigName(m_nSig)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 1320,1326 ---- - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sprintf(buf, " - %s: Unknown Technology.\n", Info.GetSigName(m_nSig)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 1336,1342 **** - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sprintf(buf, " - %s: Unknown Reference Medium Gamut.\r\n", Info.GetSigName(m_nSig)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 1336,1342 ---- - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sprintf(buf, " - %s: Unknown Reference Medium Gamut.\n", Info.GetSigName(m_nSig)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 1355,1361 **** - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sprintf(buf, " - %s: Unknown Colorimetric Intent Image State.\r\n", Info.GetSigName(m_nSig)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 1355,1361 ---- - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sprintf(buf, " - %s: Unknown Colorimetric Intent Image State.\n", Info.GetSigName(m_nSig)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 1686,1692 **** - - sDescription.reserve(sDescription.size() + m_nSize*79); - -! sprintf(buf, "BEGIN_NAMED_COLORS flags=%08x %u %u\r\n", m_nVendorFlags, m_nSize, m_nDeviceCoords); - sDescription += buf; - - for (i=0; i<m_nSize; i++) { ---- 1686,1692 ---- - - sDescription.reserve(sDescription.size() + m_nSize*79); - -! sprintf(buf, "BEGIN_NAMED_COLORS flags=%08x %u %u\n", m_nVendorFlags, m_nSize, m_nDeviceCoords); - sDescription += buf; - - for (i=0; i<m_nSize; i++) { -*************** -*** 1717,1723 **** - sDescription += buf; - } - } -! sDescription += "\r\n"; - - pNamedColor = (SIccNamedColorEntry*)((icChar*)pNamedColor + m_nColorEntrySize); - } ---- 1717,1723 ---- - sDescription += buf; - } - } -! sDescription += "\n"; - - pNamedColor = (SIccNamedColorEntry*)((icChar*)pNamedColor + m_nColorEntrySize); - } -*************** -*** 2082,2088 **** - if (!m_nSize) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty tag!\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - ---- 2082,2088 ---- - if (!m_nSize) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty tag!\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - -*************** -*** 2092,2098 **** - if (m_nDeviceCoords != nCoords) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Incorrect number of device co-ordinates.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } ---- 2092,2098 ---- - if (m_nDeviceCoords != nCoords) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Incorrect number of device co-ordinates.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } -*************** -*** 2099,2105 **** - else { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } ---- 2099,2105 ---- - else { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } -*************** -*** 2285,2291 **** - icChar buf[128]; - - if (m_nSize == 1 ) { -! sprintf(buf, "X=%.4lf, Y=%.4lf, Z=%.4lf\r\n", icFtoD(m_XYZ[0].X), icFtoD(m_XYZ[0].Y), icFtoD(m_XYZ[0].Z)); - sDescription += buf; - } - else { ---- 2285,2291 ---- - icChar buf[128]; - - if (m_nSize == 1 ) { -! sprintf(buf, "X=%.4lf, Y=%.4lf, Z=%.4lf\n", icFtoD(m_XYZ[0].X), icFtoD(m_XYZ[0].Y), icFtoD(m_XYZ[0].Z)); - sDescription += buf; - } - else { -*************** -*** 2293,2299 **** - sDescription.reserve(sDescription.size() + m_nSize*79); - - for (i=0; i<m_nSize; i++) { -! sprintf(buf, "value[%u]: X=%.4lf, Y=%.4lf, Z=%.4lf\r\n", i, icFtoD(m_XYZ[i].X), icFtoD(m_XYZ[i].Y), icFtoD(m_XYZ[i].Z)); - sDescription += buf; - } - } ---- 2293,2299 ---- - sDescription.reserve(sDescription.size() + m_nSize*79); - - for (i=0; i<m_nSize; i++) { -! sprintf(buf, "value[%u]: X=%.4lf, Y=%.4lf, Z=%.4lf\n", i, icFtoD(m_XYZ[i].X), icFtoD(m_XYZ[i].Y), icFtoD(m_XYZ[i].Z)); - sDescription += buf; - } - } -*************** -*** 2347,2353 **** - if (!m_nSize) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty tag.\r\n"; - - rv = icMaxStatus(rv, icValidateWarning); - return rv; ---- 2347,2353 ---- - if (!m_nSize) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty tag.\n"; - - rv = icMaxStatus(rv, icValidateWarning); - return rv; -*************** -*** 2553,2566 **** - - icUInt32Number i; - //sDescription.reserve(sDescription.size() + m_nChannels*79); -! sprintf(buf, "Number of Channels : %u\r\n", m_nChannels); - sDescription += buf; - -! sprintf(buf, "Colorant Encoding : %s\r\n", Fmt.GetColorantEncoding((icColorantEncoding)m_nColorantType)); - sDescription += buf; - - for (i=0; i<m_nChannels; i++) { -! sprintf(buf, "value[%u]: x=%.3lf, y=%.3lf\r\n", i, icUFtoD(m_xy[i].x), icUFtoD(m_xy[i].y)); - sDescription += buf; - } - ---- 2553,2566 ---- - - icUInt32Number i; - //sDescription.reserve(sDescription.size() + m_nChannels*79); -! sprintf(buf, "Number of Channels : %u\n", m_nChannels); - sDescription += buf; - -! sprintf(buf, "Colorant Encoding : %s\n", Fmt.GetColorantEncoding((icColorantEncoding)m_nColorantType)); - sDescription += buf; - - for (i=0; i<m_nChannels; i++) { -! sprintf(buf, "value[%u]: x=%.3lf, y=%.3lf\n", i, icUFtoD(m_xy[i].x), icUFtoD(m_xy[i].y)); - sDescription += buf; - } - -*************** -*** 2617,2623 **** - if (m_nChannels!=3) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of device channels must be three.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 2617,2623 ---- - if (m_nChannels!=3) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of device channels must be three.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 2629,2635 **** - (m_xy[2].x != icDtoUF((icFloatNumber)0.150)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.060)) ) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Chromaticity data does not match specification.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; ---- 2629,2635 ---- - (m_xy[2].x != icDtoUF((icFloatNumber)0.150)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.060)) ) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Chromaticity data does not match specification.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; -*************** -*** 2642,2648 **** - (m_xy[2].x != icDtoUF((icFloatNumber)0.155)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.070)) ) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Chromaticity data does not match specification.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; ---- 2642,2648 ---- - (m_xy[2].x != icDtoUF((icFloatNumber)0.155)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.070)) ) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Chromaticity data does not match specification.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; -*************** -*** 2655,2661 **** - (m_xy[2].x != icDtoUF((icFloatNumber)0.15)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.06)) ) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Chromaticity data does not match specification.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; ---- 2655,2661 ---- - (m_xy[2].x != icDtoUF((icFloatNumber)0.15)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.06)) ) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Chromaticity data does not match specification.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; -*************** -*** 2668,2674 **** - (m_xy[2].x != icDtoUF((icFloatNumber)0.155)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.070)) ) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Chromaticity data does not match specification.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; ---- 2668,2674 ---- - (m_xy[2].x != icDtoUF((icFloatNumber)0.155)) || (m_xy[2].y != icDtoUF((icFloatNumber)0.070)) ) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Chromaticity data does not match specification.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - break; -*************** -*** 2678,2684 **** - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid colorant type encoding.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } ---- 2678,2684 ---- - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid colorant type encoding.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } -*************** -*** 2884,2892 **** - - if (m_nSize == 1 ) { - if (Tsig==icSigS15Fixed16ArrayType) -! sprintf(buf, "Value = %.4lf\r\n", icFtoD(m_Num[0])); - else -! sprintf(buf, "Value = %.4lf\r\n", icUFtoD(m_Num[0])); - sDescription += buf; - } - else { ---- 2884,2892 ---- - - if (m_nSize == 1 ) { - if (Tsig==icSigS15Fixed16ArrayType) -! sprintf(buf, "Value = %.4lf\n", icFtoD(m_Num[0])); - else -! sprintf(buf, "Value = %.4lf\n", icUFtoD(m_Num[0])); - sDescription += buf; - } - else { -*************** -*** 2893,2910 **** - icUInt32Number i; - - if (Tsig==icSigS15Fixed16ArrayType && m_nSize==9) { -! sDescription += "Matrix Form:\r\n"; - icMatrixDump(sDescription, (icS15Fixed16Number*)m_Num); - -! sDescription += "\r\nArrayForm:\r\n"; - } - sDescription.reserve(sDescription.size() + m_nSize*79); - - for (i=0; i<m_nSize; i++) { - if (Tsig==icSigS15Fixed16ArrayType) -! sprintf(buf, "Value[%u] = %.4lf\r\n", i, icFtoD(m_Num[i])); - else -! sprintf(buf, "Value[%u] = %.4lf\r\n", i, icUFtoD(m_Num[i])); - sDescription += buf; - } - } ---- 2893,2910 ---- - icUInt32Number i; - - if (Tsig==icSigS15Fixed16ArrayType && m_nSize==9) { -! sDescription += "Matrix Form:\n"; - icMatrixDump(sDescription, (icS15Fixed16Number*)m_Num); - -! sDescription += "\nArrayForm:\n"; - } - sDescription.reserve(sDescription.size() + m_nSize*79); - - for (i=0; i<m_nSize; i++) { - if (Tsig==icSigS15Fixed16ArrayType) -! sprintf(buf, "Value[%u] = %.4lf\n", i, icFtoD(m_Num[i])); - else -! sprintf(buf, "Value[%u] = %.4lf\n", i, icUFtoD(m_Num[i])); - sDescription += buf; - } - } -*************** -*** 3172,3178 **** - icChar buf[128]; - - if (m_nSize == 1 ) { -! sprintf(buf, "Value = %u (0x%x)\r\n", m_Num[0], m_Num[0]); - sDescription += buf; - } - else { ---- 3172,3178 ---- - icChar buf[128]; - - if (m_nSize == 1 ) { -! sprintf(buf, "Value = %u (0x%x)\n", m_Num[0], m_Num[0]); - sDescription += buf; - } - else { -*************** -*** 3180,3186 **** - sDescription.reserve(sDescription.size() + m_nSize*79); - - for (i=0; i<m_nSize; i++) { -! sprintf(buf, "Value[%u] = %u (0x%x)\r\n", i, m_Num[i], m_Num[i]); - sDescription += buf; - } - } ---- 3180,3186 ---- - sDescription.reserve(sDescription.size() + m_nSize*79); - - for (i=0; i<m_nSize; i++) { -! sprintf(buf, "Value[%u] = %u (0x%x)\n", i, m_Num[i], m_Num[i]); - sDescription += buf; - } - } -*************** -*** 3374,3388 **** - CIccInfo Fmt; - icChar buf[128]; - -! sDescription += Fmt.GetStandardObserverName(m_Data.stdObserver); sDescription += "\r\n"; -! sprintf(buf, "Backing measurement: X=%.4lf, Y=%.4lf, Z=%.4lf\r\n", - icFtoD(m_Data.backing.X), - icFtoD(m_Data.backing.Y), - icFtoD(m_Data.backing.Z)); - sDescription += buf; -! sDescription += Fmt.GetMeasurementGeometryName(m_Data.geometry); sDescription += "\r\n"; -! sDescription += Fmt.GetMeasurementFlareName(m_Data.flare); sDescription += "\r\n"; -! sDescription += Fmt.GetIlluminantName(m_Data.illuminant); sDescription += "\r\n"; - } - - ---- 3374,3388 ---- - CIccInfo Fmt; - icChar buf[128]; - -! sDescription += Fmt.GetStandardObserverName(m_Data.stdObserver); sDescription += "\n"; -! sprintf(buf, "Backing measurement: X=%.4lf, Y=%.4lf, Z=%.4lf\n", - icFtoD(m_Data.backing.X), - icFtoD(m_Data.backing.Y), - icFtoD(m_Data.backing.Z)); - sDescription += buf; -! sDescription += Fmt.GetMeasurementGeometryName(m_Data.geometry); sDescription += "\n"; -! sDescription += Fmt.GetMeasurementFlareName(m_Data.flare); sDescription += "\n"; -! sDescription += Fmt.GetIlluminantName(m_Data.illuminant); sDescription += "\n"; - } - - -*************** -*** 3416,3422 **** - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid standard observer encoding.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 3416,3422 ---- - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid standard observer encoding.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 3429,3435 **** - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid measurement geometry encoding.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 3429,3435 ---- - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid measurement geometry encoding.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 3448,3454 **** - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid standard illuminant encoding.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 3448,3454 ---- - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid standard illuminant encoding.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 3902,3910 **** - - for (i=m_Strings->begin(); i!=m_Strings->end(); i++) { - if (i!=m_Strings->begin()) -! sDescription += "\r\n"; - -! sprintf(szBuf, "Language = '%c%c', Region = '%c%c'\r\n", - i->m_nLanguageCode>>8, i->m_nLanguageCode, - i->m_nCountryCode>>8, i->m_nCountryCode); - ---- 3902,3910 ---- - - for (i=m_Strings->begin(); i!=m_Strings->end(); i++) { - if (i!=m_Strings->begin()) -! sDescription += "\n"; - -! sprintf(szBuf, "Language = '%c%c', Region = '%c%c'\n", - i->m_nLanguageCode>>8, i->m_nLanguageCode, - i->m_nCountryCode>>8, i->m_nCountryCode); - -*************** -*** 3919,3925 **** - i->GetAnsi(szBuf, nSize); - sDescription += "\""; - sDescription += szBuf; -! sDescription += "\"\r\n"; - } - } - ---- 3919,3925 ---- - i->GetAnsi(szBuf, nSize); - sDescription += "\""; - sDescription += szBuf; -! sDescription += "\"\n"; - } - } - -*************** -*** 3948,3954 **** - if (!m_Strings->size()) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty tag!\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - ---- 3948,3954 ---- - if (!m_Strings->size()) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty tag!\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - -*************** -*** 4246,4260 **** - { - icChar buf[128]; - -! sDescription = "\r\nData:\r\n"; - - if (IsTypeAscii()) { -! sprintf(buf, "%s\r\n", (icChar*)m_pData); - sDescription += buf; - } - else - for (int i = 0; i<(int)m_nSize; i++) { -! sprintf(buf, "%d\r\n", m_pData[i]); - sDescription += buf; - } - ---- 4246,4260 ---- - { - icChar buf[128]; - -! sDescription = "\nData:\n"; - - if (IsTypeAscii()) { -! sprintf(buf, "%s\n", (icChar*)m_pData); - sDescription += buf; - } - else - for (int i = 0; i<(int)m_nSize; i++) { -! sprintf(buf, "%d\n", m_pData[i]); - sDescription += buf; - } - -*************** -*** 4312,4318 **** - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid data flag encoding.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 4312,4318 ---- - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Invalid data flag encoding.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 4477,4487 **** - icChar buf[128]; - - sDescription = "Date = "; -! sprintf(buf, "%u-%u-%u\r\n", m_DateTime.month, m_DateTime.day, m_DateTime.year); - sDescription += buf; - - sDescription += "Time = "; -! sprintf(buf, "%u:%u:%u\r\n", m_DateTime.hours, m_DateTime.minutes, m_DateTime.seconds); - sDescription += buf; - } - ---- 4477,4487 ---- - icChar buf[128]; - - sDescription = "Date = "; -! sprintf(buf, "%u-%u-%u\n", m_DateTime.month, m_DateTime.day, m_DateTime.year); - sDescription += buf; - - sDescription += "Time = "; -! sprintf(buf, "%u:%u:%u\n", m_DateTime.hours, m_DateTime.minutes, m_DateTime.seconds); - sDescription += buf; - } - -*************** -*** 4697,4708 **** - { - icChar buf[128]; - -! sprintf(buf, "Colorant Count : %u\r\n", m_nCount); - sDescription += buf; -! sDescription += "Order of Colorants:\r\n"; - - for (int i=0; i<(int)m_nCount; i++) { -! sprintf(buf, "%u\r\n", m_pData[i]); - sDescription += buf; - } - } ---- 4697,4708 ---- - { - icChar buf[128]; - -! sprintf(buf, "Colorant Count : %u\n", m_nCount); - sDescription += buf; -! sDescription += "Order of Colorants:\n"; - - for (int i=0; i<(int)m_nCount; i++) { -! sprintf(buf, "%u\n", m_pData[i]); - sDescription += buf; - } - } -*************** -*** 4757,4763 **** - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - return rv; - } ---- 4757,4763 ---- - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n"; - rv = icMaxStatus(rv, icValidateWarning); - return rv; - } -*************** -*** 4765,4771 **** - if (m_nCount != icGetSpaceSamples(pProfile->m_Header.colorSpace)) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Incorrect number of colorants.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 4765,4771 ---- - if (m_nCount != icGetSpaceSamples(pProfile->m_Header.colorSpace)) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Incorrect number of colorants.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 4977,4983 **** - icUInt32Number i, nLen, nMaxLen=0; - icFloatNumber Lab[3]; - -! sprintf(buf, "BEGIN_COLORANTS %u\r\n", m_nCount); - sDescription += buf; - - for (i=0; i<m_nCount; i++) { ---- 4977,4983 ---- - icUInt32Number i, nLen, nMaxLen=0; - icFloatNumber Lab[3]; - -! sprintf(buf, "BEGIN_COLORANTS %u\n", m_nCount); - sDescription += buf; - - for (i=0; i<m_nCount; i++) { -*************** -*** 4988,4998 **** - sDescription += "# NAME "; - - if (m_PCS == icSigXYZData) { -! sprintf(buf, "XYZ_X XYZ_Y XYZ_Z\r\n"); - sDescription += buf; - } - else { -! sprintf(buf, "Lab_L Lab_a Lab_b\r\n"); - sDescription += buf; - } - for (i=0; i<m_nCount; i++) { ---- 4988,4998 ---- - sDescription += "# NAME "; - - if (m_PCS == icSigXYZData) { -! sprintf(buf, "XYZ_X XYZ_Y XYZ_Z\n"); - sDescription += buf; - } - else { -! sprintf(buf, "Lab_L Lab_a Lab_b\n"); - sDescription += buf; - } - for (i=0; i<m_nCount; i++) { -*************** -*** 5003,5009 **** - sDescription += buf; - - if (m_PCS == icSigXYZData) { -! sprintf(buf, "%7.4lf %7.4lf %7.4lf\r\n", icUSFtoD(m_pData[i].data[0]), icUSFtoD(m_pData[i].data[1]), icUSFtoD(m_pData[i].data[2])); - sDescription += buf; - } - else { ---- 5003,5009 ---- - sDescription += buf; - - if (m_PCS == icSigXYZData) { -! sprintf(buf, "%7.4lf %7.4lf %7.4lf\n", icUSFtoD(m_pData[i].data[0]), icUSFtoD(m_pData[i].data[1]), icUSFtoD(m_pData[i].data[2])); - sDescription += buf; - } - else { -*************** -*** 5011,5017 **** - Lab[1] = icU16toF(m_pData[i].data[1]); - Lab[2] = icU16toF(m_pData[i].data[2]); - icLabFromPcs(Lab); -! sprintf(buf, "%7.4lf %8.4lf %8.4lf\r\n", Lab[0], Lab[1], Lab[2]); - sDescription += buf; - } - } ---- 5011,5017 ---- - Lab[1] = icU16toF(m_pData[i].data[1]); - Lab[2] = icU16toF(m_pData[i].data[2]); - icLabFromPcs(Lab); -! sprintf(buf, "%7.4lf %8.4lf %8.4lf\n", Lab[0], Lab[1], Lab[2]); - sDescription += buf; - } - } -*************** -*** 5066,5072 **** - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - return rv; - } ---- 5066,5072 ---- - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n"; - rv = icMaxStatus(rv, icValidateWarning); - return rv; - } -*************** -*** 5076,5082 **** - if (pProfile->m_Header.deviceClass!=icSigLinkClass) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Use of this tag is allowed only in DeviceLink Profiles.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } ---- 5076,5082 ---- - if (pProfile->m_Header.deviceClass!=icSigLinkClass) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Use of this tag is allowed only in DeviceLink Profiles.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - } -*************** -*** 5084,5090 **** - if (m_nCount != icGetSpaceSamples(pProfile->m_Header.colorSpace)) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Incorrect number of colorants.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 5084,5090 ---- - if (m_nCount != icGetSpaceSamples(pProfile->m_Header.colorSpace)) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Incorrect number of colorants.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 5261,5273 **** - icChar buf[128]; - CIccInfo Fmt; - -! sprintf(buf, "Illuminant Tristimulus values: X = %.4lf, Y = %.4lf, Z = %.4lf\r\n", - icFtoD(m_XYZIllum.X), - icFtoD(m_XYZIllum.Y), - icFtoD(m_XYZIllum.Z)); - sDescription += buf; - -! sprintf(buf, "Surround Tristimulus values: X = %.4lf, Y = %.4lf, Z = %.4lf\r\n", - icFtoD(m_XYZSurround.X), - icFtoD(m_XYZSurround.Y), - icFtoD(m_XYZSurround.Z)); ---- 5261,5273 ---- - icChar buf[128]; - CIccInfo Fmt; - -! sprintf(buf, "Illuminant Tristimulus values: X = %.4lf, Y = %.4lf, Z = %.4lf\n", - icFtoD(m_XYZIllum.X), - icFtoD(m_XYZIllum.Y), - icFtoD(m_XYZIllum.Z)); - sDescription += buf; - -! sprintf(buf, "Surround Tristimulus values: X = %.4lf, Y = %.4lf, Z = %.4lf\n", - icFtoD(m_XYZSurround.X), - icFtoD(m_XYZSurround.Y), - icFtoD(m_XYZSurround.Z)); -*************** -*** 5276,5282 **** - sDescription += "Illuminant Type: "; - - sDescription += Fmt.GetIlluminantName(m_illumType); -! sDescription += "\r\n"; - - } - ---- 5276,5282 ---- - sDescription += "Illuminant Type: "; - - sDescription += Fmt.GetIlluminantName(m_illumType); -! sDescription += "\n"; - - } - -*************** -*** 5800,5831 **** - icChar buf[128], buf2[28]; - icUInt32Number count=0; - -! sprintf(buf, "Number of Profile Description Structures: %u\r\n", m_Descriptions->size()); - sDescription += buf; - - for (i=m_Descriptions->begin(); i!=m_Descriptions->end(); i++, count++) { -! sDescription += "\r\n"; - -! sprintf(buf, "Profile Description Structure Number [%u] follows:\r\n", count+1); - sDescription += buf; - -! sprintf(buf, "Device Manufacturer Signature: %s\r\n", icGetSig(buf2, i->m_deviceMfg, false)); - sDescription += buf; - -! sprintf(buf, "Device Model Signature: %s\r\n", icGetSig(buf2, i->m_deviceModel, false)); - sDescription += buf; - -! sprintf(buf, "Device Attributes: %08x%08x\r\n", (icUInt32Number)(i->m_attributes >> 32), (icUInt32Number)(i->m_attributes)); - sDescription += buf; - -! sprintf(buf, "Device Technology Signature: %s\r\n", icGetSig(buf2, i->m_technology, false)); - sDescription += buf; - -! sprintf(buf, "Description of device manufacturer: \r\n"); - sDescription += buf; - i->m_deviceMfgDesc.Describe(sDescription); - -! sprintf(buf, "Description of device model: \r\n"); - sDescription += buf; - i->m_deviceModelDesc.Describe(sDescription); - } ---- 5800,5831 ---- - icChar buf[128], buf2[28]; - icUInt32Number count=0; - -! sprintf(buf, "Number of Profile Description Structures: %u\n", m_Descriptions->size()); - sDescription += buf; - - for (i=m_Descriptions->begin(); i!=m_Descriptions->end(); i++, count++) { -! sDescription += "\n"; - -! sprintf(buf, "Profile Description Structure Number [%u] follows:\n", count+1); - sDescription += buf; - -! sprintf(buf, "Device Manufacturer Signature: %s\n", icGetSig(buf2, i->m_deviceMfg, false)); - sDescription += buf; - -! sprintf(buf, "Device Model Signature: %s\n", icGetSig(buf2, i->m_deviceModel, false)); - sDescription += buf; - -! sprintf(buf, "Device Attributes: %08x%08x\n", (icUInt32Number)(i->m_attributes >> 32), (icUInt32Number)(i->m_attributes)); - sDescription += buf; - -! sprintf(buf, "Device Technology Signature: %s\n", icGetSig(buf2, i->m_technology, false)); - sDescription += buf; - -! sprintf(buf, "Description of device manufacturer: \n"); - sDescription += buf; - i->m_deviceMfgDesc.Describe(sDescription); - -! sprintf(buf, "Description of device model: \n"); - sDescription += buf; - i->m_deviceModelDesc.Describe(sDescription); - } -*************** -*** 5886,5892 **** - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sprintf(buf, " - %s: Unknown Technology.\r\n", Info.GetSigName(i->m_technology)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 5886,5892 ---- - { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sprintf(buf, " - %s: Unknown Technology.\n", Info.GetSigName(i->m_technology)); - sReport += buf; - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 5896,5902 **** - sReport += icValidateNonCompliantMsg; - sReport += sSigName; - -! sReport += " Contains non-aligned deviceMfgDesc text tag information\r\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 5896,5902 ---- - sReport += icValidateNonCompliantMsg; - sReport += sSigName; - -! sReport += " Contains non-aligned deviceMfgDesc text tag information\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 5905,5911 **** - sReport += icValidateNonCompliantMsg; - sReport += sSigName; - -! sReport += " Contains non-aligned deviceModelDesc text tag information\r\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 5905,5911 ---- - sReport += icValidateNonCompliantMsg; - sReport += sSigName; - -! sReport += " Contains non-aligned deviceModelDesc text tag information\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 6174,6198 **** - CIccResponse16List::iterator j; - - sDescription += "Measurement Unit: "; -! sDescription += Fmt.GetMeasurementUnit((icSignature)GetMeasurementType()); sDescription += "\r\n"; - - - for (int i=0; i<m_nChannels; i++) { - nResponseList = m_Response16ListArray[i]; - -! sDescription += "\r\n"; -! sprintf(buf, "Maximum Colorant XYZ Measurement for Channel-%u : X=%.4lf, Y=%.4lf, Z=%.4lf\r\n", i+1, - icFtoD(m_maxColorantXYZ[i].X), icFtoD(m_maxColorantXYZ[i].Y), icFtoD(m_maxColorantXYZ[i].Z)); - sDescription += buf; - -! sprintf(buf, "Number of Measurements for Channel-%u : %u\r\n", i+1, nResponseList.size()); - sDescription += buf; - -! sprintf(buf, "Measurement Data for Channel-%u follows:\r\n", i+1); - sDescription += buf; - - for (j=nResponseList.begin(); j!=nResponseList.end(); j++) { -! sprintf(buf, "Device Value= %u : Measurement Value= %.4lf\r\n", j->deviceCode, icFtoD(j->measurementValue)); - sDescription += buf; - } - } ---- 6174,6198 ---- - CIccResponse16List::iterator j; - - sDescription += "Measurement Unit: "; -! sDescription += Fmt.GetMeasurementUnit((icSignature)GetMeasurementType()); sDescription += "\n"; - - - for (int i=0; i<m_nChannels; i++) { - nResponseList = m_Response16ListArray[i]; - -! sDescription += "\n"; -! sprintf(buf, "Maximum Colorant XYZ Measurement for Channel-%u : X=%.4lf, Y=%.4lf, Z=%.4lf\n", i+1, - icFtoD(m_maxColorantXYZ[i].X), icFtoD(m_maxColorantXYZ[i].Y), icFtoD(m_maxColorantXYZ[i].Z)); - sDescription += buf; - -! sprintf(buf, "Number of Measurements for Channel-%u : %u\n", i+1, nResponseList.size()); - sDescription += buf; - -! sprintf(buf, "Measurement Data for Channel-%u follows:\n", i+1); - sDescription += buf; - - for (j=nResponseList.begin(); j!=nResponseList.end(); j++) { -! sprintf(buf, "Device Value= %u : Measurement Value= %.4lf\n", j->deviceCode, icFtoD(j->measurementValue)); - sDescription += buf; - } - } -*************** -*** 6234,6240 **** - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Unknown measurement unit signature.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 6234,6240 ---- - default: - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Unknown measurement unit signature.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 6241,6247 **** - if (!m_nChannels) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Incorrect number of channels.\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - return rv; - } ---- 6241,6247 ---- - if (!m_nChannels) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Incorrect number of channels.\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - return rv; - } -*************** -*** 6479,6495 **** - CIccResponseCurveSet::iterator i; - icChar buf[128]; - -! sprintf(buf, "Number of Channels: %u\r\n", m_nChannels); - sDescription += buf; - -! sprintf(buf, "Number of Measurement Types used: %u\r\n", m_ResponseCurves->size()); - sDescription += buf; - - int count = 0; - for (i=m_ResponseCurves->begin(); i!=m_ResponseCurves->end(); i++, count++) { -! sDescription += "\r\n"; - -! sprintf(buf, "Response Curve for measurement type [%u] follows:\r\n", count+1); - sDescription += buf; - - i->Describe(sDescription); ---- 6479,6495 ---- - CIccResponseCurveSet::iterator i; - icChar buf[128]; - -! sprintf(buf, "Number of Channels: %u\n", m_nChannels); - sDescription += buf; - -! sprintf(buf, "Number of Measurement Types used: %u\n", m_ResponseCurves->size()); - sDescription += buf; - - int count = 0; - for (i=m_ResponseCurves->begin(); i!=m_ResponseCurves->end(); i++, count++) { -! sDescription += "\n"; - -! sprintf(buf, "Response Curve for measurement type [%u] follows:\n", count+1); - sDescription += buf; - - i->Describe(sDescription); -*************** -*** 6658,6664 **** - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - return rv; - } ---- 6658,6664 ---- - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n"; - rv = icMaxStatus(rv, icValidateWarning); - return rv; - } -*************** -*** 6666,6678 **** - if (m_nChannels!=icGetSpaceSamples(pProfile->m_Header.colorSpace)) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Incorrect number of channels.\r\n"; - } - - if (!GetNumResponseCurveTypes()) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty Tag!.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - else { ---- 6666,6678 ---- - if (m_nChannels!=icGetSpaceSamples(pProfile->m_Header.colorSpace)) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Incorrect number of channels.\n"; - } - - if (!GetNumResponseCurveTypes()) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Empty Tag!.\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - else { -*** misc/SampleICC-1.3.2/IccProfLib/IccTagLut.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagLut.cpp Fri Jan 25 14:23:09 2008 -*************** -*** 323,345 **** - icChar buf[128], *ptr; - - if (!m_nSize) { -! sprintf(buf, "BEGIN_CURVE In_Out\r\n"); - sDescription += buf; -! sDescription += "Y = X\r\n"; - } - else if (m_nSize==1) { - icFloatNumber dGamma = (icFloatNumber)(m_Curve[0] * 256.0); -! sprintf(buf, "BEGIN_CURVE In_Out\r\n"); - sDescription += buf; -! sprintf(buf, "Y = X ^ %.4lf\r\n", dGamma); - sDescription += buf; - } - else { - int i; - -! sprintf(buf, "BEGIN_LUT In_Out 1 1\r\n"); - sDescription += buf; -! sDescription += "IN OUT\r\n"; - - for (i=0; i<(int)m_nSize; i++) { - ptr = buf; ---- 323,345 ---- - icChar buf[128], *ptr; - - if (!m_nSize) { -! sprintf(buf, "BEGIN_CURVE In_Out\n"); - sDescription += buf; -! sDescription += "Y = X\n"; - } - else if (m_nSize==1) { - icFloatNumber dGamma = (icFloatNumber)(m_Curve[0] * 256.0); -! sprintf(buf, "BEGIN_CURVE In_Out\n"); - sDescription += buf; -! sprintf(buf, "Y = X ^ %.4lf\n", dGamma); - sDescription += buf; - } - else { - int i; - -! sprintf(buf, "BEGIN_LUT In_Out 1 1\n"); - sDescription += buf; -! sDescription += "IN OUT\n"; - - for (i=0; i<(int)m_nSize; i++) { - ptr = buf; -*************** -*** 354,365 **** - - ptr += strlen(ptr); - -! strcpy(ptr, "\r\n"); - - sDescription += buf; - } - } -! sDescription += "\r\n"; - } - - ---- 354,365 ---- - - ptr += strlen(ptr); - -! strcpy(ptr, "\n"); - - sDescription += buf; - } - } -! sDescription += "\n"; - } - - -*************** -*** 383,405 **** - icChar buf[128], *ptr; - - if (!m_nSize) { -! sprintf(buf, "BEGIN_CURVE %s\r\n", szName); - sDescription += buf; -! sDescription += "Y = X\r\n"; - } - else if (m_nSize==1) { - icFloatNumber dGamma = (icFloatNumber)(m_Curve[0] * 256.0); -! sprintf(buf, "BEGIN_CURVE %s\r\n", szName); - sDescription += buf; -! sprintf(buf, "Y = X ^ %.4lf\r\n", dGamma); - sDescription += buf; - } - else { - int i; - -! sprintf(buf, "BEGIN_LUT %s 1 1\r\n", szName); - sDescription += buf; -! sDescription += "IN OUT\r\n"; - - sDescription.reserve(sDescription.size() + m_nSize * 20); - ---- 383,405 ---- - icChar buf[128], *ptr; - - if (!m_nSize) { -! sprintf(buf, "BEGIN_CURVE %s\n", szName); - sDescription += buf; -! sDescription += "Y = X\n"; - } - else if (m_nSize==1) { - icFloatNumber dGamma = (icFloatNumber)(m_Curve[0] * 256.0); -! sprintf(buf, "BEGIN_CURVE %s\n", szName); - sDescription += buf; -! sprintf(buf, "Y = X ^ %.4lf\n", dGamma); - sDescription += buf; - } - else { - int i; - -! sprintf(buf, "BEGIN_LUT %s 1 1\n", szName); - sDescription += buf; -! sDescription += "IN OUT\n"; - - sDescription.reserve(sDescription.size() + m_nSize * 20); - -*************** -*** 416,427 **** - - ptr += strlen(ptr); - -! strcpy(ptr, "\r\n"); - - sDescription += buf; - } - } -! sDescription += "\r\n"; - } - - ---- 416,427 ---- - - ptr += strlen(ptr); - -! strcpy(ptr, "\n"); - - sDescription += buf; - } - } -! sDescription += "\n"; - } - - -*************** -*** 614,620 **** - if (m_Curve[0]>0.0 || m_Curve[m_nSize-1]<1.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Curve cannot be accurately inverted.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } ---- 614,620 ---- - if (m_Curve[0]>0.0 || m_Curve[m_nSize-1]<1.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Curve cannot be accurately inverted.\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } -*************** -*** 822,877 **** - { - icChar buf[128]; - -! sprintf(buf, "FunctionType: %04Xh\r\n", m_nFunctionType); - sDescription += buf; - - switch(m_nFunctionType) { - case 0x0000: -! sprintf(buf, "Y = X ^ %.4lf\r\n", icFtoD(m_Param[0])); - sDescription += buf; - return; - - case 0x0001: -! sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf when (X >= %.4lf / %.4lf)\r\n", - icFtoD(m_Param[1]), icFtoD(m_Param[2]), icFtoD(m_Param[0]), - -icFtoD(m_Param[2]), icFtoD(m_Param[1])); - sDescription += buf; - -! sprintf(buf, "Y = 0 when (X < %.4lf / %.4lf)\r\n", - -icFtoD(m_Param[2]), icFtoD(m_Param[1])); - sDescription += buf; - return; - - case 0x0002: -! sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf + %.4lf when (X >= %.4lf / %.4lf)\r\n", - icFtoD(m_Param[1]), icFtoD(m_Param[2]), icFtoD(m_Param[0]), - icFtoD(m_Param[3]), - -icFtoD(m_Param[2]), icFtoD(m_Param[1])); - sDescription += buf; - -! sprintf(buf, "Y = %.4lf when (X < %.4lf / %.4lf)\r\n", icFtoD(m_Param[3]), - -icFtoD(m_Param[2]), icFtoD(m_Param[1])); - sDescription += buf; - return; - - case 0x0003: -! sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf when (X >= %.4lf)\r\n", - icFtoD(m_Param[1]), icFtoD(m_Param[2]), icFtoD(m_Param[0]), - icFtoD(m_Param[4])); - sDescription += buf; - -! sprintf(buf, "Y = %lf * X when (X < %.4lf)\r\n", - icFtoD(m_Param[3]), icFtoD(m_Param[4])); - sDescription += buf; - return; - - case 0x0004: -! sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf + %.4lf when (X >= %.4lf)\r\n", - icFtoD(m_Param[1]), icFtoD(m_Param[2]), icFtoD(m_Param[0]), - icFtoD(m_Param[5]), icFtoD(m_Param[4])); - sDescription += buf; - -! sprintf(buf, "Y = %lf * X + %.4lf when (X < %.4lf)\r\n", - icFtoD(m_Param[3]), icFtoD(m_Param[6]), icFtoD(m_Param[4])); - sDescription += buf; - return; ---- 822,877 ---- - { - icChar buf[128]; - -! sprintf(buf, "FunctionType: %04Xh\n", m_nFunctionType); - sDescription += buf; - - switch(m_nFunctionType) { - case 0x0000: -! sprintf(buf, "Y = X ^ %.4lf\n", icFtoD(m_Param[0])); - sDescription += buf; - return; - - case 0x0001: -! sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf when (X >= %.4lf / %.4lf)\n", - icFtoD(m_Param[1]), icFtoD(m_Param[2]), icFtoD(m_Param[0]), - -icFtoD(m_Param[2]), icFtoD(m_Param[1])); - sDescription += buf; - -! sprintf(buf, "Y = 0 when (X < %.4lf / %.4lf)\n", - -icFtoD(m_Param[2]), icFtoD(m_Param[1])); - sDescription += buf; - return; - - case 0x0002: -! sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf + %.4lf when (X >= %.4lf / %.4lf)\n", - icFtoD(m_Param[1]), icFtoD(m_Param[2]), icFtoD(m_Param[0]), - icFtoD(m_Param[3]), - -icFtoD(m_Param[2]), icFtoD(m_Param[1])); - sDescription += buf; - -! sprintf(buf, "Y = %.4lf when (X < %.4lf / %.4lf)\n", icFtoD(m_Param[3]), - -icFtoD(m_Param[2]), icFtoD(m_Param[1])); - sDescription += buf; - return; - - case 0x0003: -! sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf when (X >= %.4lf)\n", - icFtoD(m_Param[1]), icFtoD(m_Param[2]), icFtoD(m_Param[0]), - icFtoD(m_Param[4])); - sDescription += buf; - -! sprintf(buf, "Y = %lf * X when (X < %.4lf)\n", - icFtoD(m_Param[3]), icFtoD(m_Param[4])); - sDescription += buf; - return; - - case 0x0004: -! sprintf(buf, "Y = (%.4lf * X + %.4lf) ^ %.4lf + %.4lf when (X >= %.4lf)\n", - icFtoD(m_Param[1]), icFtoD(m_Param[2]), icFtoD(m_Param[0]), - icFtoD(m_Param[5]), icFtoD(m_Param[4])); - sDescription += buf; - -! sprintf(buf, "Y = %lf * X + %.4lf when (X < %.4lf)\n", - icFtoD(m_Param[3]), icFtoD(m_Param[6]), icFtoD(m_Param[4])); - sDescription += buf; - return; -*************** -*** 878,888 **** - - default: - int i; -! sprintf(buf, "Unknown Function with %d parameters:\r\n"); - sDescription += buf; - - for (i=0; i<m_nNumParam; i++) { -! sprintf(buf, "Param[%d] = %.4lf\r\n", i, icFtoD(m_Param[i])); - sDescription += buf; - } - } ---- 878,888 ---- - - default: - int i; -! sprintf(buf, "Unknown Function with %d parameters:\n", m_nNumParam); - sDescription += buf; - - for (i=0; i<m_nNumParam; i++) { -! sprintf(buf, "Param[%d] = %.4lf\n", i, icFtoD(m_Param[i])); - sDescription += buf; - } - } -*************** -*** 907,916 **** - { - icChar buf[128]; - -! sprintf(buf, "BEGIN_CURVE %s\r\n", szName); - sDescription += buf; - Describe(sDescription); -! sDescription += "\r\n"; - } - - ---- 907,916 ---- - { - icChar buf[128]; - -! sprintf(buf, "BEGIN_CURVE %s\n", szName); - sDescription += buf; - Describe(sDescription); -! sDescription += "\n"; - } - - -*************** -*** 1106,1112 **** - if (m_nReserved2!=0) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Reserved Value must be zero.\r\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 1106,1112 ---- - if (m_nReserved2!=0) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Reserved Value must be zero.\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 1116,1122 **** - if (m_nNumParam!=1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; ---- 1116,1122 ---- - if (m_nNumParam!=1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; -*************** -*** 1125,1131 **** - if (m_nNumParam!=3) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; ---- 1125,1131 ---- - if (m_nNumParam!=3) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; -*************** -*** 1134,1140 **** - if (m_nNumParam!=4) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; ---- 1134,1140 ---- - if (m_nNumParam!=4) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; -*************** -*** 1143,1149 **** - if (m_nNumParam!=5) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; ---- 1143,1149 ---- - if (m_nNumParam!=5) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; -*************** -*** 1152,1158 **** - if (m_nNumParam!=7) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; ---- 1152,1158 ---- - if (m_nNumParam!=7) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Number of parameters inconsistent with function type.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - break; -*************** -*** 1160,1166 **** - default: - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Unknown function type.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 1160,1166 ---- - default: - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Unknown function type.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 1170,1176 **** - if (lval>0.0 || uval<1.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Curve cannot be accurately inverted.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } ---- 1170,1176 ---- - if (lval>0.0 || uval<1.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Curve cannot be accurately inverted.\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } -*************** -*** 1255,1286 **** - { - icChar buf[128]; - -! sprintf(buf, "BEGIN_MATRIX %s\r\n", szName); - sDescription += buf; - - if (!m_bUseConstants) { -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n", - m_e[0], m_e[1], m_e[2]); - sDescription += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n", - m_e[3], m_e[4], m_e[5]); - sDescription += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n", - m_e[6], m_e[7], m_e[8]); - sDescription += buf; - } - else { -! sprintf(buf, "%8.4lf %8.4lf %8.4lf + %8.4lf\r\n", - m_e[0], m_e[1], m_e[2], m_e[9]); - sDescription += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf + %8.4lf\r\n", - m_e[3], m_e[4], m_e[5], m_e[10]); - sDescription += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf + %8.4lf\r\n", - m_e[6], m_e[7], m_e[8], m_e[11]); - sDescription += buf; - } -! sDescription += "\r\n"; - } - - /** ---- 1255,1286 ---- - { - icChar buf[128]; - -! sprintf(buf, "BEGIN_MATRIX %s\n", szName); - sDescription += buf; - - if (!m_bUseConstants) { -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\n", - m_e[0], m_e[1], m_e[2]); - sDescription += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\n", - m_e[3], m_e[4], m_e[5]); - sDescription += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\n", - m_e[6], m_e[7], m_e[8]); - sDescription += buf; - } - else { -! sprintf(buf, "%8.4lf %8.4lf %8.4lf + %8.4lf\n", - m_e[0], m_e[1], m_e[2], m_e[9]); - sDescription += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf + %8.4lf\n", - m_e[3], m_e[4], m_e[5], m_e[10]); - sDescription += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf + %8.4lf\n", - m_e[6], m_e[7], m_e[8], m_e[11]); - sDescription += buf; - } -! sDescription += "\n"; - } - - /** -*************** -*** 1377,1383 **** - if (m_e[0]!=1.0 || m_e[4]!=1.0 || m_e[9]!=1.0 || sum!=3.0) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Matrix must be identity.\r\n"; - rv = icValidateNonCompliant; - } - } ---- 1377,1383 ---- - if (m_e[0]!=1.0 || m_e[4]!=1.0 || m_e[9]!=1.0 || sum!=3.0) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Matrix must be identity.\n"; - rv = icValidateNonCompliant; - } - } -*************** -*** 1754,1760 **** - - ptr += sprintf(ptr, " %s", m_pVal); - } -! strcpy(ptr, "\r\n"); - sDescription += (const icChar*)m_pOutText; - - } ---- 1754,1760 ---- - - ptr += sprintf(ptr, " %s", m_pVal); - } -! strcpy(ptr, "\n"); - sDescription += (const icChar*)m_pOutText; - - } -*************** -*** 1866,1872 **** - icChar szOutText[2048], szColor[40]; - int i, len; - -! sprintf(szOutText, "BEGIN_LUT %s %d %d\r\n", szName, m_nInput, m_nOutput); - sDescription += szOutText; - - for (i=0; i<m_nInput; i++) { ---- 1866,1872 ---- - icChar szOutText[2048], szColor[40]; - int i, len; - -! sprintf(szOutText, "BEGIN_LUT %s %d %d\n", szName, m_nInput, m_nOutput); - sDescription += szOutText; - - for (i=0; i<m_nInput; i++) { -*************** -*** 1883,1889 **** - sDescription += szOutText; - } - -! sDescription += "\r\n"; - - len = 0; - for (i=0; i<m_nInput; i++) { ---- 1883,1889 ---- - sDescription += szOutText; - } - -! sDescription += "\n"; - - len = 0; - for (i=0; i<m_nInput; i++) { -*************** -*** 1907,1913 **** - - Iterate(sDescription, 0, 0); - -! sDescription += "\r\n"; - } - - ---- 1907,1913 ---- - - Iterate(sDescription, 0, 0); - -! sDescription += "\n"; - } - - -*************** -*** 2693,2699 **** - if (m_nReserved2[0]!=0 || m_nReserved2[1]!=0 || m_nReserved2[2]!=0) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Reserved Value must be zero.\r\n"; - - rv = icValidateNonCompliant; - } ---- 2693,2699 ---- - if (m_nReserved2[0]!=0 || m_nReserved2[1]!=0 || m_nReserved2[2]!=0) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - Reserved Value must be zero.\n"; - - rv = icValidateNonCompliant; - } -*************** -*** 2704,2710 **** - if (m_GridPoints[i]<2) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sprintf(temp, " - CLUT: At least 2 grid points should be present in dimension %u.\r\n",i ); - sReport += temp; - rv = icMaxStatus(rv, icValidateCriticalError); - } ---- 2704,2710 ---- - if (m_GridPoints[i]<2) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sprintf(temp, " - CLUT: At least 2 grid points should be present in dimension %u.\n",i ); - sReport += temp; - rv = icMaxStatus(rv, icValidateCriticalError); - } -*************** -*** 3122,3128 **** - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - return rv; - } ---- 3122,3128 ---- - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n"; - rv = icMaxStatus(rv, icValidateWarning); - return rv; - } -*************** -*** 3138,3144 **** - if (m_nInput!=nInput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of input channels.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 3138,3144 ---- - if (m_nInput!=nInput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of input channels.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 3146,3152 **** - if (m_nOutput!=nOutput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of output channels.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 3146,3152 ---- - if (m_nOutput!=nOutput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of output channels.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 3160,3166 **** - if (m_nInput!=nInput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of input channels.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 3160,3166 ---- - if (m_nInput!=nInput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of input channels.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 3168,3174 **** - if (m_nOutput!=nOutput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of output channels.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 3168,3174 ---- - if (m_nOutput!=nOutput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of output channels.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 3180,3186 **** - if (m_nInput!=nInput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of input channels.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 3180,3186 ---- - if (m_nInput!=nInput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of input channels.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 3188,3194 **** - if (m_nOutput!=nOutput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of output channels.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 3188,3194 ---- - if (m_nOutput!=nOutput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of output channels.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 3206,3212 **** - if (!m_CLUT) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - CLUT must be present.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 3206,3212 ---- - if (!m_CLUT) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - CLUT must be present.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 3748,3754 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of B-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 3748,3754 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of B-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 3762,3768 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of M-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 3762,3768 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of M-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 3772,3778 **** - if (!m_CLUT) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - CLUT must be present if using A-curves.\r\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 3772,3778 ---- - if (!m_CLUT) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - CLUT must be present if using A-curves.\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 3784,3790 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of A-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 3784,3790 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of A-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 3876,3882 **** - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - return rv; - } ---- 3876,3882 ---- - if (!pProfile) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Tag validation incomplete: Pointer to profile unavailable.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - return rv; - } -*************** -*** 3900,3906 **** - if (m_nOutput!=nOutput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of output channels.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - ---- 3900,3906 ---- - if (m_nOutput!=nOutput) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of output channels.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - -*************** -*** 3913,3919 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of B-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 3913,3919 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of B-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 3927,3933 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of M-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 3927,3933 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of M-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 3937,3943 **** - if (!m_CLUT) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - CLUT must be present if using A-curves.\r\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } ---- 3937,3943 ---- - if (!m_CLUT) { - sReport += icValidateNonCompliantMsg; - sReport += sSigName; -! sReport += " - CLUT must be present if using A-curves.\n"; - - rv = icMaxStatus(rv, icValidateNonCompliant); - } -*************** -*** 3949,3955 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of A-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 3949,3955 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of A-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 4311,4317 **** - if (pTagCurve->GetSize()==1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - lut8Tags do not support single entry gamma curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 4311,4317 ---- - if (pTagCurve->GetSize()==1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - lut8Tags do not support single entry gamma curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 4319,4325 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of B-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 4319,4325 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of B-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 4336,4342 **** - if (m_XYZMatrix[0]!=1.0 || m_XYZMatrix[4]!=1.0 || m_XYZMatrix[9]!=1.0 || sum!=3.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Matrix must be identity.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } ---- 4336,4342 ---- - if (m_XYZMatrix[0]!=1.0 || m_XYZMatrix[4]!=1.0 || m_XYZMatrix[9]!=1.0 || sum!=3.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Matrix must be identity.\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } -*************** -*** 4351,4357 **** - if (pTagCurve->GetSize()==1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - lut8Tags do not support single entry gamma curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 4351,4357 ---- - if (pTagCurve->GetSize()==1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - lut8Tags do not support single entry gamma curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 4359,4365 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of A-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 4359,4365 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of A-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 4721,4727 **** - if (pTagCurve->GetSize()==1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - lut16Tags do not support single entry gamma curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 4721,4727 ---- - if (pTagCurve->GetSize()==1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - lut16Tags do not support single entry gamma curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 4729,4735 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of B-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 4729,4735 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of B-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 4746,4752 **** - if (m_XYZMatrix[0]!=1.0 || m_XYZMatrix[4]!=1.0 || m_XYZMatrix[9]!=1.0 || sum!=3.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Matrix must be identity.\r\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } ---- 4746,4752 ---- - if (m_XYZMatrix[0]!=1.0 || m_XYZMatrix[4]!=1.0 || m_XYZMatrix[9]!=1.0 || sum!=3.0) { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " - Matrix must be identity.\n"; - rv = icMaxStatus(rv, icValidateWarning); - } - } -*************** -*** 4761,4767 **** - if (pTagCurve->GetSize()==1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - lut16Tags do not support single entry gamma curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 4761,4767 ---- - if (pTagCurve->GetSize()==1) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - lut16Tags do not support single entry gamma curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*************** -*** 4769,4775 **** - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of A-curves.\r\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } ---- 4769,4775 ---- - else { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " - Incorrect number of A-curves.\n"; - rv = icMaxStatus(rv, icValidateCriticalError); - } - } -*** misc/SampleICC-1.3.2/IccProfLib/IccTagMPE.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagMPE.cpp Fri Jan 25 14:23:09 2008 -*************** -*** 218,224 **** - icGetSig(sigbuf, m_sig), m_nSize); - sDescription += buf; - -! sDescription += "\r\n\r\nData Follows:\r\n"; - - icMemDump(sDescription, m_pData, m_nSize); - ---- 218,224 ---- - icGetSig(sigbuf, m_sig), m_nSize); - sDescription += buf; - -! sDescription += "\n\nData Follows:\n"; - - icMemDump(sDescription, m_pData, m_nSize); - -*************** -*** 364,370 **** - sReport += " - Contains unknown processing element type ("; - icGetSig(buf, m_sig, true); - sReport += buf; -! sReport += ").\r\n"; - - return icValidateCriticalError; - } ---- 364,370 ---- - sReport += " - Contains unknown processing element type ("; - icGetSig(buf, m_sig, true); - sReport += buf; -! sReport += ").\n"; - - return icValidateCriticalError; - } -*************** -*** 392,398 **** - sReport += " - Element "; - sSigName = Info.GetSigName(GetType()); - sReport += sSigName; -! sReport += " - Reserved Value must be zero.\r\n"; - - rv = icValidateNonCompliant; - } ---- 392,398 ---- - sReport += " - Element "; - sSigName = Info.GetSigName(GetType()); - sReport += sSigName; -! sReport += " - Reserved Value must be zero.\n"; - - rv = icValidateNonCompliant; - } -*************** -*** 738,755 **** - { - icChar buf[128]; - -! sprintf(buf, "BEGIN MULTI_PROCESS_ELEMENT_TAG %d %d\r\n", m_nInputChannels, m_nOutputChannels); - sDescription += buf; -! sDescription += "\r\n"; - - CIccMultiProcessElementList::iterator i; - int j; - - for (j=0, i=m_list->begin(); i!=m_list->end(); j++, i++) { -! sprintf(buf, "PROCESS_ELEMENT #%d\r\n", j+1); - sDescription += buf; - i->ptr->Describe(sDescription); -! sDescription += "\r\n"; - } - } - ---- 738,755 ---- - { - icChar buf[128]; - -! sprintf(buf, "BEGIN MULTI_PROCESS_ELEMENT_TAG %d %d\n", m_nInputChannels, m_nOutputChannels); - sDescription += buf; -! sDescription += "\n"; - - CIccMultiProcessElementList::iterator i; - int j; - - for (j=0, i=m_list->begin(); i!=m_list->end(); j++, i++) { -! sprintf(buf, "PROCESS_ELEMENT #%d\n", j+1); - sDescription += buf; - i->ptr->Describe(sDescription); -! sDescription += "\n"; - } - } - -*************** -*** 1207,1219 **** - if (m_nInputChannels != m_nOutputChannels) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " No processing elements and input and output channels do not match!\r\n"; - return icValidateCriticalError; - } - else { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " No processing elements.\r\n"; - return icValidateWarning; - } - } ---- 1207,1219 ---- - if (m_nInputChannels != m_nOutputChannels) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " No processing elements and input and output channels do not match!\n"; - return icValidateCriticalError; - } - else { - sReport += icValidateWarningMsg; - sReport += sSigName; -! sReport += " No processing elements.\n"; - return icValidateWarning; - } - } -*************** -*** 1224,1230 **** - if (i->ptr->NumInputChannels() != m_nInputChannels) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " Mis-matching number of input channels!\r\n"; - return icValidateCriticalError; - } - ---- 1224,1230 ---- - if (i->ptr->NumInputChannels() != m_nInputChannels) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " Mis-matching number of input channels!\n"; - return icValidateCriticalError; - } - -*************** -*** 1239,1245 **** - sReport += "->"; - sReport += i->ptr->GetClassName(); - -! sReport += " Mis-matching number of channels!\r\n"; - return icValidateCriticalError; - } - } ---- 1239,1245 ---- - sReport += "->"; - sReport += i->ptr->GetClassName(); - -! sReport += " Mis-matching number of channels!\n"; - return icValidateCriticalError; - } - } -*************** -*** 1251,1257 **** - if (last && last->NumOutputChannels() != m_nOutputChannels) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " Mis-matching number of output channels!\r\n"; - return icValidateCriticalError; - } - ---- 1251,1257 ---- - if (last && last->NumOutputChannels() != m_nOutputChannels) { - sReport += icValidateCriticalErrorMsg; - sReport += sSigName; -! sReport += " Mis-matching number of output channels!\n"; - return icValidateCriticalError; - } - -*** misc/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.cpp Fri Jan 25 14:23:09 2008 -*************** -*** 234,240 **** - { - std::string Dump; - -! sDescription += "ProfileID:\r\n"; - - int i; - char buf[20]; ---- 234,240 ---- - { - std::string Dump; - -! sDescription += "ProfileID:\n"; - - int i; - char buf[20]; -*************** -*** 244,255 **** - sprintf(buf, "%2x", m_profileID.ID8[i]); - sDescription += buf; - } -! sDescription += "\r\n"; - -! sDescription += "Description:\r\n"; - m_desc.Describe(sDescription); - -! sDescription += "\r\n"; - } - - ---- 244,255 ---- - sprintf(buf, "%2x", m_profileID.ID8[i]); - sDescription += buf; - } -! sDescription += "\n"; - -! sDescription += "Description:\n"; - m_desc.Describe(sDescription); - -! sDescription += "\n"; - } - - -*************** -*** 434,454 **** - { - icChar buf[128]; - -! sprintf(buf, "BEGIN ProfileSequenceIdentification_TAG\r\n"); - sDescription += buf; -! sDescription += "\r\n"; - - int i; - CIccProfileIdDescList::iterator j; - for (i=0, j=m_list->begin(); j!=m_list->end(); i++, j++) { -! sprintf(buf, "ProfileDescription_%d:\r\n", i+1); - sDescription += buf; - j->Describe(sDescription); - } - -! sprintf(buf, "END ProfileSequenceIdentification_TAG\r\n"); - sDescription += buf; -! sDescription += "\r\n"; - } - - ---- 434,454 ---- - { - icChar buf[128]; - -! sprintf(buf, "BEGIN ProfileSequenceIdentification_TAG\n"); - sDescription += buf; -! sDescription += "\n"; - - int i; - CIccProfileIdDescList::iterator j; - for (i=0, j=m_list->begin(); j!=m_list->end(); i++, j++) { -! sprintf(buf, "ProfileDescription_%d:\n", i+1); - sDescription += buf; - j->Describe(sDescription); - } - -! sprintf(buf, "END ProfileSequenceIdentification_TAG\n"); - sDescription += buf; -! sDescription += "\n"; - } - - -*** misc/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.h Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.h Fri Jan 25 14:23:09 2008 -*************** -*** 161,164 **** - } - #endif - -! #endif //_ICCTAGPROFSEQID_H ---- 161,164 ---- - } - #endif - -! #endif //_ICCTAGPROFSEQID_H -*** misc/SampleICC-1.3.2/IccProfLib/IccUtil.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccUtil.cpp Fri Jan 25 14:23:09 2008 -*************** -*** 79,85 **** - #include "IccUtil.h" - #include "IccTagFactory.h" - #include <stdlib.h> -! #include <memory.h> - #include <ctype.h> - #include <math.h> - #include <string.h> ---- 79,85 ---- - #include "IccUtil.h" - #include "IccTagFactory.h" - #include <stdlib.h> -! #include <memory> - #include <ctype.h> - #include <math.h> - #include <string.h> -*************** -*** 678,688 **** - { - icChar buf[128]; - -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n", icFtoD(pMatrix[0]), icFtoD(pMatrix[1]), icFtoD(pMatrix[2])); - sDump += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n", icFtoD(pMatrix[3]), icFtoD(pMatrix[4]), icFtoD(pMatrix[5])); - sDump += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\r\n", icFtoD(pMatrix[6]), icFtoD(pMatrix[7]), icFtoD(pMatrix[8])); - sDump += buf; - } - ---- 679,689 ---- - { - icChar buf[128]; - -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\n", icFtoD(pMatrix[0]), icFtoD(pMatrix[1]), icFtoD(pMatrix[2])); - sDump += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\n", icFtoD(pMatrix[3]), icFtoD(pMatrix[4]), icFtoD(pMatrix[5])); - sDump += buf; -! sprintf(buf, "%8.4lf %8.4lf %8.4lf\n", icFtoD(pMatrix[6]), icFtoD(pMatrix[7]), icFtoD(pMatrix[8])); - sDump += buf; - } - -*************** -*** 1516,1534 **** - - if (XYZ.X < 0) { - sReport += icValidateNonCompliantMsg; -! sReport += " - XYZNumber: Negative X value!\r\n"; - rv = icValidateNonCompliant; - } - - if (XYZ.Y < 0) { - sReport += icValidateNonCompliantMsg; -! sReport += " - XYZNumber: Negative Y value!\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - - if (XYZ.Z < 0) { - sReport += icValidateNonCompliantMsg; -! sReport += " - XYZNumber: Negative Z value!\r\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - ---- 1517,1535 ---- - - if (XYZ.X < 0) { - sReport += icValidateNonCompliantMsg; -! sReport += " - XYZNumber: Negative X value!\n"; - rv = icValidateNonCompliant; - } - - if (XYZ.Y < 0) { - sReport += icValidateNonCompliantMsg; -! sReport += " - XYZNumber: Negative Y value!\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - - if (XYZ.Z < 0) { - sReport += icValidateNonCompliantMsg; -! sReport += " - XYZNumber: Negative Z value!\n"; - rv = icMaxStatus(rv, icValidateNonCompliant); - } - -*************** -*** 1548,1554 **** - icChar buf[128]; - if (dateTime.year<1992) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid year!\r\n",dateTime.year); - sReport += buf; - rv = icValidateWarning; - } ---- 1549,1555 ---- - icChar buf[128]; - if (dateTime.year<1992) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid year!\n",dateTime.year); - sReport += buf; - rv = icValidateWarning; - } -*************** -*** 1557,1563 **** - if (newtime->tm_mon==11 && newtime->tm_mday==31) { - if (dateTime.year>(year+1)) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid year!\r\n",dateTime.year); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1558,1564 ---- - if (newtime->tm_mon==11 && newtime->tm_mday==31) { - if (dateTime.year>(year+1)) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid year!\n",dateTime.year); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1565,1571 **** - else { - if (dateTime.year>year) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid year!\r\n",dateTime.year); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1566,1572 ---- - else { - if (dateTime.year>year) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid year!\n",dateTime.year); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1573,1579 **** - - if (dateTime.month<1 || dateTime.month>12) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid month!\r\n",dateTime.month); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1574,1580 ---- - - if (dateTime.month<1 || dateTime.month>12) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid month!\n",dateTime.month); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1580,1586 **** - - if (dateTime.day<1 || dateTime.day>31) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid day!\r\n",dateTime.day); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1581,1587 ---- - - if (dateTime.day<1 || dateTime.day>31) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid day!\n",dateTime.day); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1588,1594 **** - if (dateTime.month==2) { - if (dateTime.day>29) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid day for February!\r\n",dateTime.day); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1589,1595 ---- - if (dateTime.month==2) { - if (dateTime.day>29) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid day for February!\n",dateTime.day); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1596,1602 **** - if (dateTime.day==29) { - if ((dateTime.year%4)!=0) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid day for February, year is not a leap year(%u)!\r\n",dateTime.day, dateTime.year); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1597,1603 ---- - if (dateTime.day==29) { - if ((dateTime.year%4)!=0) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid day for February, year is not a leap year(%u)!\n",dateTime.day, dateTime.year); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1605,1611 **** - - if (dateTime.hours>23) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid hour!\r\n",dateTime.hours); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1606,1612 ---- - - if (dateTime.hours>23) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid hour!\n",dateTime.hours); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1612,1618 **** - - if (dateTime.minutes>59) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid minutes!\r\n",dateTime.minutes); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1613,1619 ---- - - if (dateTime.minutes>59) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid minutes!\n",dateTime.minutes); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*************** -*** 1619,1625 **** - - if (dateTime.seconds>59) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid seconds!\r\n",dateTime.hours); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } ---- 1620,1626 ---- - - if (dateTime.seconds>59) { - sReport += icValidateWarningMsg; -! sprintf(buf," - %u: Invalid seconds!\n",dateTime.hours); - sReport += buf; - rv = icMaxStatus(rv, icValidateWarning); - } -*** misc/SampleICC-1.3.2/IccProfLib/icProfileHeader.h Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/icProfileHeader.h Fri Jan 25 14:23:09 2008 -*************** -*** 659,668 **** - typedef enum { - icFlare0 = 0x00000000, /* 0% flare */ - icFlare100 = 0x00000001, /* 100% flare */ - } icMeasurementFlare; - - /** Convenience Enum Definition - Not defined in ICC specification*/ -! #define icMaxEnumFlare ((icMeasurementFlare) 0xFFFFFFFF) - #define icMaxFlare ((icMeasurementFlare) 0xFFFFFFFF) /* as defined by earlier versions */ - - ---- 659,669 ---- - typedef enum { - icFlare0 = 0x00000000, /* 0% flare */ - icFlare100 = 0x00000001, /* 100% flare */ -+ icMaxEnumFlare = 0xFFFFFFFF - } icMeasurementFlare; - - /** Convenience Enum Definition - Not defined in ICC specification*/ -! /*#define icMaxEnumFlare ((icMeasurementFlare) 0xFFFFFFFF)*/ - #define icMaxFlare ((icMeasurementFlare) 0xFFFFFFFF) /* as defined by earlier versions */ - - -*** misc/SampleICC-1.3.2/Tools/CmdLine/Makefile.in Mon Aug 20 22:10:42 2007 ---- misc/build/SampleICC-1.3.2/Tools/CmdLine/Makefile.in Fri Jan 25 14:23:09 2008 -*************** -*** 101,117 **** - am__quote = @am__quote@ - install_sh = @install_sh@ - -! SUBDIRS = IccApplyNamedCmm \ -! @SICC_ICC_APPLY_PROFILES@ \ -! IccDumpProfile \ - IccProfLibTest \ - IccStripUnknownTags \ - IccV4ToMPE - - -! DIST_SUBDIRS = IccApplyNamedCmm \ -! IccApplyProfiles \ -! IccDumpProfile \ - IccProfLibTest \ - IccStripUnknownTags \ - IccV4ToMPE ---- 101,113 ---- - am__quote = @am__quote@ - install_sh = @install_sh@ - -! SUBDIRS = IccDumpProfile \ - IccProfLibTest \ - IccStripUnknownTags \ - IccV4ToMPE - - -! DIST_SUBDIRS = IccDumpProfile \ - IccProfLibTest \ - IccStripUnknownTags \ - IccV4ToMPE -*** misc/SampleICC-1.3.2/Contrib/ICC_utils/CLUT.cpp 2007-08-20 22:04:53.000000000 +0200 ---- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/CLUT.cpp 2008-01-31 13:53:16.000000000 +0100 -*************** -*** 77,82 **** ---- 77,84 ---- - // - ////////////////////////////////////////////////////////////////////// - -+ #include <stdlib.h> -+ #include <string.h> - #include <iostream> - #include <fstream> - #include <sstream> -*** misc/SampleICC-1.3.2/Contrib/ICC_utils/ICC_tool_exception.h 2007-08-20 22:04:54.000000000 +0200 ---- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/ICC_tool_exception.h 2008-01-31 13:54:51.000000000 +0100 -*************** -*** 83,88 **** ---- 83,89 ---- - #ifndef __DEFINED_ICC_TOOL_EXCEPTION_H__ - #define __DEFINED_ICC_TOOL_EXCEPTION_H__ - -+ #include <string.h> - #include <exception> - #include <string> - -*** misc/SampleICC-1.3.2/IccProfLib/IccCmm.cpp 2007-08-20 22:05:00.000000000 +0200 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccCmm.cpp 2008-01-31 13:49:54.000000000 +0100 -*************** -*** 79,84 **** ---- 79,86 ---- - #pragma warning( disable: 4786) //disable warning in <list.h> - #endif - -+ #include <stdlib.h> -+ #include <string.h> - #include "IccCmm.h" - #include "IccTag.h" - #include "IccIO.h" -*** misc/SampleICC-1.3.2/Contrib/ICC_utils/Vetters.h 2007-08-20 22:04:53.000000000 +0200 ---- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Vetters.h 2008-01-31 14:05:58.000000000 +0100 -*************** -*** 83,88 **** ---- 83,89 ---- - #include <string> - #include <sys/types.h> - #include <sys/stat.h> -+ #include <stdlib.h> - - #ifdef WIN32 - typedef unsigned short mode_t; diff --git a/icc/SampleICC-1.3.2.patch b/icc/SampleICC-1.3.2.patch index ed072b63afaa..dadce6f60c56 100644 --- a/icc/SampleICC-1.3.2.patch +++ b/icc/SampleICC-1.3.2.patch @@ -1,5 +1,5 @@ *** misc/SampleICC-1.3.2/configure Mon Aug 20 22:10:59 2007 ---- misc/build/SampleICC-1.3.2/configure Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/configure Fri Jan 25 14:23:09 2008 *************** *** 19991,19997 **** @@ -60,7 +60,7 @@ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} *** misc/SampleICC-1.3.2/Contrib/Makefile.in Mon Aug 20 22:10:37 2007 ---- misc/build/SampleICC-1.3.2/Contrib/Makefile.in Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/Contrib/Makefile.in Fri Jan 25 14:23:09 2008 *************** *** 103,120 **** @@ -95,7 +95,7 @@ subdir = Contrib mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs *** misc/SampleICC-1.3.2/Contrib/CmdLine/Makefile.in Mon Aug 20 22:10:34 2007 ---- misc/build/SampleICC-1.3.2/Contrib/CmdLine/Makefile.in Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/Contrib/CmdLine/Makefile.in Fri Jan 25 14:23:09 2008 *************** *** 102,116 **** install_sh = @install_sh@ @@ -126,7 +126,7 @@ subdir = Contrib/CmdLine mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs *** misc/SampleICC-1.3.2/Contrib/ICC_utils/Makefile.in Mon Aug 20 22:10:35 2007 ---- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Makefile.in Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Makefile.in Fri Jan 25 14:23:09 2008 *************** *** 133,139 **** CONFIG_CLEAN_FILES = @@ -145,7 +145,7 @@ ICC_tool_exception.lo Vetters.lo libICC_utils_la_OBJECTS = $(am_libICC_utils_la_OBJECTS) *** misc/SampleICC-1.3.2/Contrib/ICC_utils/Stubs.h Mon Aug 20 22:04:53 2007 ---- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Stubs.h Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Stubs.h Fri Jan 25 14:23:09 2008 *************** *** 130,136 **** @@ -164,7 +164,7 @@ return (r_ != p.r_) ? (r_ < p.r_) : ((g_ != p.g_) ? (g_ < p.g_) : (b_ < p.b_)); } *** misc/SampleICC-1.3.2/Contrib/ICC_utils/Vetters.cpp Mon Aug 20 22:04:54 2007 ---- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Vetters.cpp Fri Jan 25 14:49:56 2008 +--- misc/build/SampleICC-1.3.2/Contrib/ICC_utils/Vetters.cpp Fri Jan 25 14:57:06 2008 *************** *** 1,322 **** ! /* @@ -820,7 +820,7 @@ ! } ! } *** misc/SampleICC-1.3.2/IccProfLib/IccIO.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccIO.cpp Fri Jan 25 14:25:33 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccIO.cpp Fri Jan 25 14:23:09 2008 *************** *** 78,84 **** #include "IccIO.h" @@ -838,8 +838,20 @@ #include <string.h> #ifndef __max +*** misc/SampleICC-1.3.2/IccProfLib/IccIO.h Mon Aug 20 22:05:00 2007 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccIO.h Fri Jan 25 14:23:09 2008 +*************** +*** 79,84 **** +--- 79,85 ---- + #define _ICCIO_H + + #include "IccDefs.h" ++ #include "memory" + #include "stdio.h" + + #ifdef USESAMPLEICCNAMESPACE *** misc/SampleICC-1.3.2/IccProfLib/IccMpeACS.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccMpeACS.cpp Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccMpeACS.cpp Fri Jan 25 14:23:09 2008 *************** *** 136,152 **** icChar sigBuf[30]; @@ -878,7 +890,7 @@ icMemDump(sDescription, m_pData, m_nDataSize); } *** misc/SampleICC-1.3.2/IccProfLib/IccMpeBasic.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccMpeBasic.cpp Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccMpeBasic.cpp Fri Jan 25 14:23:09 2008 *************** *** 218,249 **** sprintf(buf, "%.8f", m_endPoint); @@ -1362,8 +1374,56 @@ return icValidateCriticalError; } +*** misc/SampleICC-1.3.2/IccProfLib/IccProfLibConf.h Mon Aug 20 22:05:00 2007 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccProfLibConf.h Fri Jan 25 14:23:09 2008 +*************** +*** 107,126 **** + + #else // non-PC, perhaps Mac or Linux + +! #define ICCUINT64 unsigned long long +! #define ICCINT64 long long +! #define ICUINT64TYPE unsigned long long +! #define ICINT64TYPE long long +! +! #if defined(__APPLE__) +! #if defined(__LITTLE_ENDIAN__) +! #define ICC_BYTE_ORDER_LITTLE_ENDIAN +! #else +! #define ICC_BYTE_ORDER_BIG_ENDIAN +! #endif +! #else +! #define ICC_BYTE_ORDER_LITTLE_ENDIAN +! #endif + + #define ICCPROFLIB_API + #define ICCPROFLIB_EXTERN +--- 107,129 ---- + + #else // non-PC, perhaps Mac or Linux + +! #include <sal/types.h> +! #include <osl/endian.h> +! +! #define ICCUINT64 sal_uInt64 +! #define ICCINT64 sal_Int64 +! #define ICUINT64TYPE sal_uInt64 +! #define ICINT64TYPE sal_Int64 +! #define ICINT32TYPE sal_Int32 +! #define ICUINT32TYPE sal_uInt32 +! +! #if defined(_LITTLE_ENDIAN) +! # define ICC_BYTE_ORDER_LITTLE_ENDIAN +! #elif defined(_BIG_ENDIAN) +! # define ICC_BYTE_ORDER_BIG_ENDIAN +! #else +! # error "ENDIAN unknown" +! #endif + + #define ICCPROFLIB_API + #define ICCPROFLIB_EXTERN *** misc/SampleICC-1.3.2/IccProfLib/IccProfile.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccProfile.cpp Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccProfile.cpp Fri Jan 25 14:23:09 2008 *************** *** 567,573 **** @@ -1989,7 +2049,7 @@ return NULL; } *** misc/SampleICC-1.3.2/IccProfLib/IccTagBasic.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagBasic.cpp Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccTagBasic.cpp Fri Jan 25 14:23:09 2008 *************** *** 166,172 **** CIccInfo Info; @@ -3311,7 +3371,7 @@ } else { *** misc/SampleICC-1.3.2/IccProfLib/IccTagLut.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagLut.cpp Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccTagLut.cpp Fri Jan 25 14:23:09 2008 *************** *** 323,345 **** icChar buf[128], *ptr; @@ -4443,7 +4503,7 @@ } } *** misc/SampleICC-1.3.2/IccProfLib/IccTagMPE.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagMPE.cpp Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccTagMPE.cpp Fri Jan 25 14:23:09 2008 *************** *** 218,224 **** icGetSig(sigbuf, m_sig), m_nSize); @@ -4615,7 +4675,7 @@ } *** misc/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.cpp Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.cpp Fri Jan 25 14:23:09 2008 *************** *** 234,240 **** { @@ -4706,7 +4766,7 @@ *** misc/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.h Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.h Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccTagProfSeqId.h Fri Jan 25 14:23:09 2008 *************** *** 161,164 **** } @@ -4719,7 +4779,7 @@ ! #endif //_ICCTAGPROFSEQID_H *** misc/SampleICC-1.3.2/IccProfLib/IccUtil.cpp Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/IccUtil.cpp Fri Jan 25 14:27:16 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/IccUtil.cpp Fri Jan 25 14:23:09 2008 *************** *** 79,85 **** #include "IccUtil.h" @@ -4974,7 +5034,7 @@ rv = icMaxStatus(rv, icValidateWarning); } *** misc/SampleICC-1.3.2/IccProfLib/icProfileHeader.h Mon Aug 20 22:05:00 2007 ---- misc/build/SampleICC-1.3.2/IccProfLib/icProfileHeader.h Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/IccProfLib/icProfileHeader.h Fri Jan 25 14:23:09 2008 *************** *** 659,668 **** typedef enum { @@ -5000,7 +5060,7 @@ *** misc/SampleICC-1.3.2/Tools/CmdLine/Makefile.in Mon Aug 20 22:10:42 2007 ---- misc/build/SampleICC-1.3.2/Tools/CmdLine/Makefile.in Fri Jan 25 14:24:00 2008 +--- misc/build/SampleICC-1.3.2/Tools/CmdLine/Makefile.in Fri Jan 25 14:23:09 2008 *************** *** 101,117 **** am__quote = @am__quote@ diff --git a/icc/makefile.mk b/icc/makefile.mk index abd8b59165a1..2f353bc4a793 100644 --- a/icc/makefile.mk +++ b/icc/makefile.mk @@ -41,12 +41,7 @@ TARGET=icc # --- Files -------------------------------------------------------- TARFILE_NAME=SampleICC-1.3.2 -#checking for endianess -.IF "$(CPU)"=="I" PATCH_FILES=$(TARFILE_NAME).patch -.ELSE -PATCH_FILES=$(TARFILE_NAME)-bendian.patch -.ENDIF CONVERTFILES= \ IccProfLib$/IccTagProfSeqId.h \ diff --git a/icc/prj/build.lst b/icc/prj/build.lst index 7ce035bd4d92..9eace5df121a 100644 --- a/icc/prj/build.lst +++ b/icc/prj/build.lst @@ -1,3 +1,3 @@ -ip icc : solenv external NULL +ip icc : solenv stlport external sal NULL ip icc usr1 - all ip_mkout NULL ip icc nmake - all ip_icc NULL diff --git a/libegg/prj/build.lst b/libegg/prj/build.lst index a4cb56a1c0c9..f9d2c7bd3a57 100644 --- a/libegg/prj/build.lst +++ b/libegg/prj/build.lst @@ -1,2 +1,2 @@ -eg libegg : soltools NULL +eg libegg : soltools stlport NULL eg libegg\source nmake - u eg_src NULL diff --git a/libegg/source/eggtrayicon.c b/libegg/source/eggtrayicon.c index 9c2b67355826..603e66fbc99d 100644 --- a/libegg/source/eggtrayicon.c +++ b/libegg/source/eggtrayicon.c @@ -76,6 +76,14 @@ static void egg_tray_icon_update_manager_window (EggTrayIcon *icon, static void egg_tray_icon_manager_window_destroyed (EggTrayIcon *icon); #endif +/* + * This is made somewhat more 'interesting' by the facts that: + * a) GTypePlugin is a foul & tangled mess + * b) We may have been unloaded, and left an invalid + * EggTrayIcon class lying around in the GType database, + * we could use GTypePlugin to fix this, but see a) - + * this is far easier and simpler. + */ GType egg_tray_icon_get_type (void) { @@ -88,18 +96,23 @@ egg_tray_icon_get_type (void) sizeof (EggTrayIconClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, - (GClassInitFunc) egg_tray_icon_class_init, + (GClassInitFunc) NULL, /* class_init */ NULL, /* class_finalize */ NULL, /* class_data */ sizeof (EggTrayIcon), 0, /* n_preallocs */ - (GInstanceInitFunc) egg_tray_icon_init, + (GInstanceInitFunc) NULL, /* instance_init */ NULL }; - our_type = g_type_register_static (GTK_TYPE_PLUG, "EggTrayIcon", &our_info, 0); + our_type = g_type_from_name ("EggTrayIcon"); + if (!our_type) + our_type = g_type_register_static (GTK_TYPE_PLUG, "EggTrayIcon", &our_info, 0); } + /* always overwrite the function pointers */ + egg_tray_icon_class_init (g_type_class_ref (our_type)); + return our_type; } @@ -128,22 +141,15 @@ egg_tray_icon_class_init (EggTrayIconClass *klass) container_class->add = egg_tray_icon_add; - g_object_class_install_property (gobject_class, - PROP_ORIENTATION, - g_param_spec_enum ("orientation", - _("Orientation"), - _("The orientation of the tray."), - GTK_TYPE_ORIENTATION, - GTK_ORIENTATION_HORIZONTAL, - G_PARAM_READABLE)); - -#if defined (GDK_WINDOWING_X11) - /* Nothing */ -#elif defined (GDK_WINDOWING_WIN32) - g_warning ("Port eggtrayicon to Win32"); -#else - g_warning ("Port eggtrayicon to this GTK+ backend"); -#endif + if (!g_object_class_find_property (gobject_class, "orientation")) + g_object_class_install_property (gobject_class, + PROP_ORIENTATION, + g_param_spec_enum ("orientation", + "Orientation", + "The orientation of the tray.", + GTK_TYPE_ORIENTATION, + GTK_ORIENTATION_HORIZONTAL, + G_PARAM_READABLE)); } static void @@ -471,7 +477,9 @@ egg_tray_icon_new_for_screen (GdkScreen *screen, const char *name) EggTrayIcon* egg_tray_icon_new (const gchar *name) { - return g_object_new (EGG_TYPE_TRAY_ICON, "title", name, NULL); + EggTrayIcon *icon = g_object_new (EGG_TYPE_TRAY_ICON, "title", name, NULL); + egg_tray_icon_init (icon); + return icon; } guint diff --git a/libtextcat/libtextcat-2.2.patch b/libtextcat/libtextcat-2.2.patch index c9ce4add875c..b9124f3df377 100644 --- a/libtextcat/libtextcat-2.2.patch +++ b/libtextcat/libtextcat-2.2.patch @@ -932,7 +932,7 @@ +} --- misc/libtextcat-2.2/src/makefile.mk Mon Mar 31 11:30:06 2008 +++ misc/build/libtextcat-2.2/src/makefile.mk Mon Mar 31 11:29:42 2008 -@@ -1 +1,90 @@ +@@ -1 +1,91 @@ -dummy +#************************************************************************* +# @@ -973,6 +973,7 @@ + +USE_DEFFILE=TRUE +EXTERNAL_WARNINGS_NOT_ERRORS := TRUE ++UWINAPILIB= + +.INCLUDE : settings.mk + diff --git a/libtextcat/prj/build.lst b/libtextcat/prj/build.lst index e4bc4af795aa..da155db3d291 100644 --- a/libtextcat/prj/build.lst +++ b/libtextcat/prj/build.lst @@ -1,3 +1,3 @@ -ltc libtextcat : solenv sal NULL +ltc libtextcat : stlport soltools solenv NULL ltc libtextcat usr1 - all ltc_mkout NULL ltc libtextcat nmake - all ltc_libtextcat NULL diff --git a/libwpd/prj/build.lst b/libwpd/prj/build.lst index 1da425b02ab3..7e5ae5ce9ce2 100644 --- a/libwpd/prj/build.lst +++ b/libwpd/prj/build.lst @@ -1,3 +1,3 @@ -lw libwpd : soltools NULL +lw libwpd : soltools stlport NULL lw libwpd usr1 - all lw_mkout NULL lw libwpd nmake - all lw_libwpd NULL diff --git a/libxmlsec/prj/build.lst b/libxmlsec/prj/build.lst index b557aa31ccb5..a4faaa8f00fa 100644 --- a/libxmlsec/prj/build.lst +++ b/libxmlsec/prj/build.lst @@ -1,3 +1,3 @@ -ls libxmlsec : stlport soltools LIBXML2:libxml2 MOZ:moz SO:moz_prebuilt sal NULL +ls libxmlsec : stlport soltools LIBXML2:libxml2 MOZ:moz SO:moz_prebuilt NULL ls libxmlsec usr1 - all ls_mkout NULL ls libxmlsec nmake - all ls_xmlsec1 NULL diff --git a/lpsolve/prj/build.lst b/lpsolve/prj/build.lst index 516f37ae9f1c..e6965a1e25e7 100644 --- a/lpsolve/prj/build.lst +++ b/lpsolve/prj/build.lst @@ -1,3 +1,3 @@ -lps lpsolve : sal NULL +lps lpsolve : NULL lps lpsolve usr1 - all lps_mkout NULL lps lpsolve nmake - all lps_lpsolve NULL diff --git a/openssl/makefile.mk b/openssl/makefile.mk index 6fb48b7ac352..d8446f94f708 100644 --- a/openssl/makefile.mk +++ b/openssl/makefile.mk @@ -134,7 +134,11 @@ OUT2BIN += out/libeay32.dll # The env. vars CC and PERL are used by nmake, and nmake insists on '\'s # If WRAPCMD is set it is prepended before the compiler, don't touch that. .IF "$(WRAPCMD)"=="" - CC!:=$(subst,/,\ $(normpath,1 $(CC))) + # relace / with \ first word only + cc_first_repl = $(subst,/,\ $(normpath,1 $(CC:1))) + cc_first = $(normpath,1 $(CC:1)) + CC!:=$(subst,$(cc_first),$(cc_first_repl) $(normpath,1 $(CC))) +# CC!:=$(subst,/,\ $(normpath,1 $(CC))) .EXPORT : CC .ENDIF PERL_bak:=$(PERL) diff --git a/redland/prj/build.lst b/redland/prj/build.lst index 1264756d796b..f6d0562d4bb4 100644 --- a/redland/prj/build.lst +++ b/redland/prj/build.lst @@ -1,4 +1,4 @@ -rld redland : sal soltools LIBXML2:libxml2 LIBXSLT:libxslt OPENSSL:openssl NULL +rld redland : stlport soltools LIBXML2:libxml2 LIBXSLT:libxslt OPENSSL:openssl NULL rld redland usr1 - all rld_mkout NULL rld redland\raptor nmake - all rld_raptor NULL rld redland\rasqal nmake - all rld_rasqal rld_raptor NULL diff --git a/redland/raptor/raptor-1.4.18.patch.dmake b/redland/raptor/raptor-1.4.18.patch.dmake index aa0f5ab29117..a112796e693f 100644 --- a/redland/raptor/raptor-1.4.18.patch.dmake +++ b/redland/raptor/raptor-1.4.18.patch.dmake @@ -1,6 +1,6 @@ --- misc/raptor-1.4.18/src/makefile.mk Thu Nov 6 15:25:51 2008 +++ misc/build/raptor-1.4.18/src/makefile.mk Thu Nov 6 15:33:14 2008 -@@ -1,1 +1,122 @@ +@@ -1,1 +1,123 @@ -dummy +#************************************************************************* +# @@ -38,8 +38,10 @@ +PRJNAME=redland +TARGET=raptor +LIBTARGET=NO ++UWINAPIDLL= + +EXTERNAL_WARNINGS_NOT_ERRORS=TRUE ++UWINAPILIB= + + +# --- Settings ----------------------------------------------------- diff --git a/redland/rasqal/rasqal-0.9.16.patch.dmake b/redland/rasqal/rasqal-0.9.16.patch.dmake index adfade9670bb..f79e38f33c2d 100644 --- a/redland/rasqal/rasqal-0.9.16.patch.dmake +++ b/redland/rasqal/rasqal-0.9.16.patch.dmake @@ -1,6 +1,6 @@ --- misc/rasqal-0.9.16/src/makefile.mk Thu Nov 6 15:56:45 2008 +++ misc/build/rasqal-0.9.16/src/makefile.mk Thu Nov 6 15:55:09 2008 -@@ -1,1 +1,97 @@ +@@ -1,1 +1,98 @@ -dummy +#************************************************************************* +# @@ -38,6 +38,7 @@ +PRJNAME=redland +TARGET=rasqal +LIBTARGET=NO ++UWINAPILIB= + +EXTERNAL_WARNINGS_NOT_ERRORS=TRUE + diff --git a/redland/redland/redland-1.0.8.patch.dmake b/redland/redland/redland-1.0.8.patch.dmake index d88f9548a341..39931b7b1b4b 100644 --- a/redland/redland/redland-1.0.8.patch.dmake +++ b/redland/redland/redland-1.0.8.patch.dmake @@ -1,6 +1,6 @@ --- misc/redland-1.0.8/librdf/makefile.mk Mon Jun 16 19:32:46 2008 +++ misc/build/redland-1.0.8/librdf/makefile.mk Mon Jun 16 19:26:20 2008 -@@ -1,1 +1,114 @@ +@@ -1,1 +1,115 @@ -dummy +#************************************************************************* +# @@ -38,6 +38,7 @@ +PRJNAME=redland +TARGET=librdf +LIBTARGET=NO ++UWINAPILIB= + +EXTERNAL_WARNINGS_NOT_ERRORS=TRUE + |