Kaydet (Commit) abc1c428 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Clean up function declarations

Change-Id: I1f4a18e7aa6288e147c7f4c3f17bb99f1f0df5c5
üst 691a54cc
......@@ -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
(
......
/* -*- 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: */
......@@ -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 */ )
......
......@@ -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(())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment