summaryrefslogtreecommitdiff
path: root/editors/openoffice.org-1.1/files
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2007-01-08 00:51:01 +0000
committerMaho Nakata <maho@FreeBSD.org>2007-01-08 00:51:01 +0000
commit93f361f0005c8525bbb7d1a0e50e83192cd706d7 (patch)
tree5390fa0ca09c437e65ca32e8cbbd062996943ccb /editors/openoffice.org-1.1/files
parentDo not forget about #i22253# for amd64. (diff)
o Better bridge code
Submitted by jkim (for OOo2 and adopted to ooo1.1)
Notes
Notes: svn path=/head/; revision=181737
Diffstat (limited to 'editors/openoffice.org-1.1/files')
-rw-r--r--editors/openoffice.org-1.1/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel120
-rw-r--r--editors/openoffice.org-1.1/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel+except.cxx21
2 files changed, 120 insertions, 21 deletions
diff --git a/editors/openoffice.org-1.1/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel b/editors/openoffice.org-1.1/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel
new file mode 100644
index 000000000000..ae3ff61e295b
--- /dev/null
+++ b/editors/openoffice.org-1.1/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel
@@ -0,0 +1,120 @@
+Index: bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx
+===================================================================
+RCS file: /cvs/udk/bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx,v
+retrieving revision 1.3
+diff -u -r1.3 cpp2uno.cxx
+--- bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx 28 Apr 2003 16:28:20 -0000 1.3
++++ bridges/source/cpp_uno/gcc3_freebsd_intel/cpp2uno.cxx 8 Jan 2007 00:45:53 -0000
+@@ -59,9 +59,9 @@
+ *
+ ************************************************************************/
+
++#include <stdlib.h>
+ #include <hash_map>
+
+-#include <sal/alloca.h>
+ #include <rtl/alloc.h>
+ #include <osl/mutex.hxx>
+
+Index: bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
+===================================================================
+RCS file: /cvs/udk/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx,v
+retrieving revision 1.4
+diff -u -r1.4 except.cxx
+--- bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx 28 Apr 2003 16:41:25 -0000 1.4
++++ bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx 8 Jan 2007 00:45:53 -0000
+@@ -63,6 +63,7 @@
+ #include <dlfcn.h>
+ #include <cxxabi.h>
+ #include <hash_map>
++#include <sys/param.h>
+
+ #include <rtl/strbuf.hxx>
+ #include <rtl/ustrbuf.hxx>
+@@ -147,7 +148,11 @@
+ };
+ //__________________________________________________________________________________________________
+ RTTI::RTTI() SAL_THROW( () )
++#if __FreeBSD_version < 700022 /* #i22253# */
++ : m_hApp( dlopen( 0, RTLD_NOW | RTLD_GLOBAL ) )
++#else
+ : m_hApp( dlopen( 0, RTLD_LAZY ) )
++#endif
+ {
+ }
+ //__________________________________________________________________________________________________
+@@ -182,7 +187,11 @@
+ buf.append( 'E' );
+
+ OString symName( buf.makeStringAndClear() );
++#if __FreeBSD_version < 700022
++ rtti = (type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );
++#else
+ rtti = (type_info *)dlsym( m_hApp, symName.getStr() );
++#endif
+
+ if (rtti)
+ {
+@@ -253,7 +262,7 @@
+ //==================================================================================================
+ void raiseException( uno_Any * pUnoExc, uno_Mapping * pUno2Cpp )
+ {
+-#if defined DEBUG
++#if OSL_DEBUG_LEVEL > 1
+ OString cstr(
+ OUStringToOString(
+ *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
+@@ -275,7 +284,7 @@
+ *reinterpret_cast< OUString const * >( &pUnoExc->pType->pTypeName ),
+ Reference< XInterface >() );
+ }
+-
++
+ pCppExc = __cxa_allocate_exception( pTypeDescr->nSize );
+ ::uno_copyAndConvertData( pCppExc, pUnoExc->pData, pTypeDescr, pUno2Cpp );
+
+@@ -321,16 +330,16 @@
+ Reference< XInterface >() );
+ Type const & rType = ::getCppuType( &aRE );
+ uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
+-#if defined _DEBUG
++#if OSL_DEBUG_LEVEL > 0
+ OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
+ OSL_ENSURE( 0, cstr.getStr() );
+ #endif
+ return;
+ }
+-
++
+ typelib_TypeDescription * pExcTypeDescr = 0;
+ OUString unoName( toUNOname( header->exceptionType->name() ) );
+-#if defined DEBUG
++#if OSL_DEBUG_LEVEL > 1
+ OString cstr_unoName( OUStringToOString( unoName, RTL_TEXTENCODING_ASCII_US ) );
+ fprintf( stderr, "> c++ exception occured: %s\n", cstr_unoName.getStr() );
+ #endif
+@@ -342,7 +351,7 @@
+ Reference< XInterface >() );
+ Type const & rType = ::getCppuType( &aRE );
+ uno_type_any_constructAndConvert( pUnoExc, &aRE, rType.getTypeLibType(), pCpp2Uno );
+-#if defined _DEBUG
++#if OSL_DEBUG_LEVEL > 0
+ OString cstr( OUStringToOString( aRE.Message, RTL_TEXTENCODING_ASCII_US ) );
+ OSL_ENSURE( 0, cstr.getStr() );
+ #endif
+Index: bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx
+===================================================================
+RCS file: /cvs/udk/bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx,v
+retrieving revision 1.4
+diff -u -r1.4 uno2cpp.cxx
+--- bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx 28 Apr 2003 16:28:35 -0000 1.4
++++ bridges/source/cpp_uno/gcc3_freebsd_intel/uno2cpp.cxx 8 Jan 2007 00:45:53 -0000
+@@ -59,7 +59,7 @@
+ *
+ ************************************************************************/
+
+-#include <sal/alloca.h>
++#include <stdlib.h>
+ #include <rtl/alloc.h>
+
+ #include <uno/data.h>
diff --git a/editors/openoffice.org-1.1/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel+except.cxx b/editors/openoffice.org-1.1/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel+except.cxx
deleted file mode 100644
index a69314657945..000000000000
--- a/editors/openoffice.org-1.1/files/patch-bridges+source+cpp_uno+gcc3_freebsd_intel+except.cxx
+++ /dev/null
@@ -1,21 +0,0 @@
-Issuetracker : #i22253#
-CWS : N/A
-Author : <mrauch@openoffice.org> (JCA)
-Description :
-
-Index: bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx
-===================================================================
-RCS file: /cvs/udk/bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx,v
-retrieving revision 1.4
-diff -u -r1.4 except.cxx
---- bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx 28 Apr 2003 16:41:25 -0000 1.4
-+++ bridges/source/cpp_uno/gcc3_freebsd_intel/except.cxx 13 Aug 2005 04:40:14 -0000
-@@ -182,7 +182,7 @@
- buf.append( 'E' );
-
- OString symName( buf.makeStringAndClear() );
-- rtti = (type_info *)dlsym( m_hApp, symName.getStr() );
-+ rtti = (type_info *)dlsym( RTLD_DEFAULT, symName.getStr() );
-
- if (rtti)
- {