diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-07-01 11:16:47 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-07-01 11:16:47 +0000 |
commit | a5a20bc6c1d437759ce8776b2b07a7d020fc26f2 (patch) | |
tree | 554d18352098ee4d084597feabbb75a31b117e00 /bridges/source/cpp_uno/cc50_solaris_sparc | |
parent | bbc25f6ea0aeed50c7145bfa34e6281c645a6cc2 (diff) |
INTEGRATION: CWS sb34 (1.16.32); FILE MERGED
2005/06/28 15:23:52 sb 1.16.32.1: #b6280765# Adapted Solaris C++--UNO bridge code to be compliant with libCrun (problems with ex_alloc/ex_throw usage, and pointers within RTTI structures).
Diffstat (limited to 'bridges/source/cpp_uno/cc50_solaris_sparc')
-rw-r--r-- | bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx b/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx index 2946def67809..ce66d184ee6b 100644 --- a/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx +++ b/bridges/source/cpp_uno/cc50_solaris_sparc/cpp2uno.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cpp2uno.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: kz $ $Date: 2005-01-13 17:44:40 $ + * last change: $Author: kz $ $Date: 2005-07-01 12:16:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -71,6 +71,7 @@ #include "bridges/cpp_uno/shared/vtablefactory.hxx" #include "cc50_solaris_sparc.hxx" +#include "flushcode.hxx" using namespace com::sun::star::uno; @@ -542,15 +543,8 @@ unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions( return code; } -extern "C" void doFlushCode(unsigned long address, unsigned long count); - void bridges::cpp_uno::shared::VtableFactory::flushCode( unsigned char const * begin, unsigned char const * end) { - unsigned long n = end - begin; - if (n != 0) { - unsigned long adr = reinterpret_cast< unsigned long >(begin); - unsigned long off = adr & 7; - doFlushCode(adr - off, (n + off + 7) >> 3); - } + bridges::cpp_uno::cc50_solaris_sparc::flushCode(begin, end); } |