diff options
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/msvc_win32_x86-64/call.hxx | 32 | ||||
-rw-r--r-- | bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx | 3 | ||||
-rw-r--r-- | bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx | 10 |
3 files changed, 39 insertions, 6 deletions
diff --git a/bridges/source/cpp_uno/msvc_win32_x86-64/call.hxx b/bridges/source/cpp_uno/msvc_win32_x86-64/call.hxx new file mode 100644 index 000000000000..668fb523edbd --- /dev/null +++ b/bridges/source/cpp_uno/msvc_win32_x86-64/call.hxx @@ -0,0 +1,32 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ + +#ifndef INCLUDED_BRIDGES_SOURCE_CPP_UNO_MSVC_WIN32_X86_64_CALL_HXX +#define INCLUDED_BRIDGES_SOURCE_CPP_UNO_MSVC_WIN32_X86_64_CALL_HXX + +#include <sal/config.h> + +#include <sal/types.h> +#include <typelib/typeclass.h> + +extern "C" typelib_TypeClass cpp_vtable_call(sal_Int64 nOffsetAndIndex, void** pStack); + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx index 216f261d6d55..3abbfaf9b7dd 100644 --- a/bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx +++ b/bridges/source/cpp_uno/msvc_win32_x86-64/cpp2uno.cxx @@ -30,6 +30,7 @@ #include <types.hxx> #include <vtablefactory.hxx> +#include "call.hxx" #include "mscx.hxx" using namespace ::com::sun::star::uno; @@ -382,7 +383,7 @@ extern "C" char privateSnippetExecutor; // - Loads functionIndex and vtableOffset into scratch registers // - Jumps to privateSnippetExecutor -unsigned char * codeSnippet( +static unsigned char * codeSnippet( unsigned char * code, CPPU_CURRENT_NAMESPACE::RegParamKind param_kind[4], sal_Int32 nFunctionIndex, diff --git a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx index b1e14fbdf234..27879b066a59 100644 --- a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx +++ b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx @@ -262,7 +262,7 @@ using namespace ::osl; namespace CPPU_CURRENT_NAMESPACE { - int mscx_getRTTI_len(OUString const & rUNOname); + static int mscx_getRTTI_len(OUString const & rUNOname); static inline OUString toUNOname( @@ -425,7 +425,7 @@ RTTInfos::RTTInfos() throw () { } -void * __cdecl copyConstruct( +static void * __cdecl copyConstruct( void * pExcThis, void * pSource, typelib_TypeDescription * pTD ) throw () @@ -434,7 +434,7 @@ void * __cdecl copyConstruct( return pExcThis; } -void * __cdecl destruct( +static void * __cdecl destruct( void * pExcThis, typelib_TypeDescription * pTD ) throw () { @@ -444,7 +444,7 @@ void * __cdecl destruct( const int codeSnippetSize = 40; -void GenerateConstructorTrampoline( +static void GenerateConstructorTrampoline( unsigned char * code, typelib_TypeDescription * pTD ) throw () { @@ -464,7 +464,7 @@ void GenerateConstructorTrampoline( assert( p < code + codeSnippetSize ); } -void GenerateDestructorTrampoline( +static void GenerateDestructorTrampoline( unsigned char * code, typelib_TypeDescription * pTD ) throw () { |