tdf#130857 qt weld: Support mail merge "Server Auth" dialog
[LibreOffice.git] / bridges / source / cpp_uno / gcc3_linux_powerpc64 / share.hxx
blob8286a878a10f675661c75e14beaee996faa147bc
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 #pragma once
21 #include "uno/mapping.h"
23 #include <typeinfo>
24 #include <exception>
25 #include <cstddef>
27 namespace CPPU_CURRENT_NAMESPACE
30 void dummy_can_throw_anything( char const * );
33 // ----- following decl from libstdc++-v3/libsupc++/unwind-cxx.h and unwind.h
35 struct _Unwind_Exception
37 unsigned exception_class __attribute__((__mode__(__DI__)));
38 void * exception_cleanup;
39 unsigned private_1 __attribute__((__mode__(__word__)));
40 unsigned private_2 __attribute__((__mode__(__word__)));
41 } __attribute__((__aligned__));
43 struct __cxa_exception
45 std::type_info *exceptionType;
46 void (*exceptionDestructor)(void *);
48 void (*unexpectedHandler)(); // std::unexpected_handler dropped from C++17
49 std::terminate_handler terminateHandler;
51 __cxa_exception *nextException;
53 int handlerCount;
55 int handlerSwitchValue;
56 const unsigned char *actionRecord;
57 const unsigned char *languageSpecificData;
58 void *catchTemp;
59 void *adjustedPtr;
61 _Unwind_Exception unwindHeader;
64 extern "C" void *__cxa_allocate_exception(
65 std::size_t thrown_size ) throw();
66 extern "C" void __cxa_throw (
67 void *thrown_exception, std::type_info *tinfo, void (*dest) (void *) ) __attribute__((noreturn));
69 struct __cxa_eh_globals
71 __cxa_exception *caughtExceptions;
72 unsigned int uncaughtExceptions;
75 extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
76 extern "C" std::type_info *__cxa_current_exception_type() throw();
78 void raiseException(
79 uno_Any * pUnoExc, uno_Mapping * pUno2Cpp );
81 void fillUnoException(uno_Any *, uno_Mapping * pCpp2Uno);
84 namespace ppc64
86 enum ppclimits { MAX_GPR_REGS = 8, MAX_SSE_REGS = 13 };
87 bool return_in_hidden_param( typelib_TypeDescriptionReference *pTypeRef );
90 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */