diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-10 15:45:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-10 15:46:05 +0200 |
commit | abc1c428e028e081a94527b7cb5dc5199147fcfb (patch) | |
tree | 90156d868a4e73c732090c32a79d77b6b93856dc /bridges | |
parent | 691a54ccdf89489b64ea9dfffd07b824b2f1a964 (diff) |
Clean up function declarations
Change-Id: I1f4a18e7aa6288e147c7f4c3f17bb99f1f0df5c5
Diffstat (limited to 'bridges')
4 files changed, 56 insertions, 6 deletions
diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/call.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/call.cxx index 96834dae6e51..16f5e784e29e 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/call.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/call.cxx @@ -18,8 +18,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -extern "C" void -privateSnippetExecutor() +#include <sal/config.h> + +#include <call.hxx> + +void privateSnippetExecutor() { asm volatile ( diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/call.hxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/call.hxx new file mode 100644 index 000000000000..6738970d2fb7 --- /dev/null +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/call.hxx @@ -0,0 +1,37 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * 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_GCC3_MACOSX_X86_64_CALL_HXX +#define INCLUDED_BRIDGES_SOURCE_CPP_UNO_GCC3_MACOSX_X86_64_CALL_HXX + +#include <sal/config.h> + +#include <sal/types.h> +#include <typelib/typeclass.h> + +extern "C" typelib_TypeClass cpp_vtable_call( + sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset, + void ** gpreg, void ** fpreg, void ** ovrflw, + sal_uInt64 * pRegisterReturn /* space for register return */ ); + +extern "C" void privateSnippetExecutor(); + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx index 67d2f88a0a94..86089c3ce5a1 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/cpp2uno.cxx @@ -36,6 +36,7 @@ #include "bridges/cpp_uno/shared/vtablefactory.hxx" #include "abi.hxx" +#include "call.hxx" #include "share.hxx" using namespace ::osl; @@ -250,8 +251,7 @@ static typelib_TypeClass cpp2uno_call( } } - -extern "C" typelib_TypeClass cpp_vtable_call( +typelib_TypeClass cpp_vtable_call( sal_Int32 nFunctionIndex, sal_Int32 nVtableOffset, void ** gpreg, void ** fpreg, void ** ovrflw, sal_uInt64 * pRegisterReturn /* space for register return */ ) diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx index 6988dcb42e64..664a5c09d8d3 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx @@ -55,11 +55,13 @@ namespace CPPU_CURRENT_NAMESPACE { namespace { struct Fake_type_info { - virtual ~Fake_type_info() {} + virtual ~Fake_type_info() SAL_DELETED_FUNCTION; char const * name; }; -struct Fake_class_type_info: Fake_type_info {}; +struct Fake_class_type_info: Fake_type_info { + virtual ~Fake_class_type_info() SAL_DELETED_FUNCTION; +}; #if MACOSX_SDK_VERSION < 1070 BOOST_STATIC_ASSERT( @@ -67,6 +69,7 @@ BOOST_STATIC_ASSERT( #endif struct Fake_si_class_type_info: Fake_class_type_info { + virtual ~Fake_si_class_type_info() SAL_DELETED_FUNCTION; void const * base; }; @@ -117,9 +120,16 @@ std::type_info * createFake_si_class_type_info( } +#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE && HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-function" +#endif void dummy_can_throw_anything( char const * ) { } +#if HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE && HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY +#pragma GCC diagnostic pop +#endif static OUString toUNOname( char const * p ) SAL_THROW(()) { |