python/keyring: update to 24.3.1
[oi-userland.git] / components / desktop / libreoffice / files / gcc3_solaris_x86-64 / share.hxx
blob237813f3b77b6f679ab1e90ba5b6740c83bb3e2c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_BRIDGES_SOURCE_CPP_UNO_GCC3_SOLARIS_X86_64_SHARE_HXX
20 #define INCLUDED_BRIDGES_SOURCE_CPP_UNO_GCC3_SOLARIS_X86_64_SHARE_HXX
22 #include "uno/mapping.h"
24 #include <typeinfo>
25 #include <exception>
26 #include <cstddef>
28 #include <sal/alloca.h>
30 #include <uno/data.h>
32 #include <typelib/typedescription.hxx>
34 #include <com/sun/star/uno/genfunc.hxx>
35 #include <com/sun/star/uno/Exception.hpp>
36 #include "com/sun/star/uno/RuntimeException.hpp"
38 #include "bridge.hxx"
39 #include "types.hxx"
42 extern "C" void asm_vtable_call_wrapper( ... );
43 bool isSimple(typelib_TypeDescription const * type);
44 bool isSimple(typelib_TypeDescriptionReference const * type);
45 bool isSmallStruct(typelib_TypeDescription const * tDesc);
46 bool isStructReturnedByReference(typelib_StructTypeDescription const * tDesc);
48 namespace CPPU_CURRENT_NAMESPACE
51 void dummy_can_throw_anything( char const * );
53 // ----- following decl from libstdc++-v3/libsupc++/unwind-cxx.h and unwind.h
55 struct _Unwind_Exception
57 unsigned exception_class __attribute__((__mode__(__DI__)));
58 void * exception_cleanup;
59 unsigned private_1 __attribute__((__mode__(__word__)));
60 unsigned private_2 __attribute__((__mode__(__word__)));
61 } __attribute__((__aligned__));
63 struct __cxa_exception
65 std::type_info *exceptionType;
66 void (*exceptionDestructor)(void *);
68 void (*unexpectedHandler)(); // std::unexpected_handler dropped from C++17
69 std::terminate_handler terminateHandler;
71 __cxa_exception *nextException;
73 int handlerCount;
75 int handlerSwitchValue;
76 const unsigned char *actionRecord;
77 const unsigned char *languageSpecificData;
78 void *catchTemp;
79 void *adjustedPtr;
81 _Unwind_Exception unwindHeader;
84 extern "C" void *__cxa_allocate_exception(
85 std::size_t thrown_size ) throw();
86 extern "C" void __cxa_throw (
87 void *thrown_exception, std::type_info *tinfo, void (*dest) (void *) ) __attribute__((noreturn));
89 struct __cxa_eh_globals
91 __cxa_exception *caughtExceptions;
92 unsigned int uncaughtExceptions;
94 extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
95 extern "C" std::type_info *__cxa_current_exception_type() throw();
97 void raiseException(
98 uno_Any * pUnoExc, uno_Mapping * pUno2Cpp );
100 void fillUnoException(uno_Any *, uno_Mapping * pCpp2Uno);
103 #endif
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */