Update ooo320-m1
[ooovba.git] / bridges / source / cpp_uno / gcc3_linux_s390x / share.hxx
blob525355e998f680987f740db6c52df33fdc16e90b
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: share.hxx,v $
11 * $Revision: 1.3 $
13 * This file is part of OpenOffice.org.
15 * OpenOffice.org is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU Lesser General Public License version 3
17 * only, as published by the Free Software Foundation.
19 * OpenOffice.org is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU Lesser General Public License version 3 for more details
23 * (a copy is included in the LICENSE file that accompanied this code).
25 * You should have received a copy of the GNU Lesser General Public License
26 * version 3 along with OpenOffice.org. If not, see
27 * <http://www.openoffice.org/license.html>
28 * for a copy of the LGPLv3 License.
30 ************************************************************************/
32 #include "uno/mapping.h"
34 #include <typeinfo>
35 #include <exception>
36 #include <cstddef>
38 namespace CPPU_CURRENT_NAMESPACE
41 void dummy_can_throw_anything( char const * );
44 // ----- following decl from libstdc++-v3/libsupc++/unwind-cxx.h and unwind.h
46 struct _Unwind_Exception
48 unsigned exception_class __attribute__((__mode__(__DI__)));
49 void * exception_cleanup;
50 unsigned private_1 __attribute__((__mode__(__word__)));
51 unsigned private_2 __attribute__((__mode__(__word__)));
52 } __attribute__((__aligned__));
54 struct __cxa_exception
56 ::std::type_info *exceptionType;
57 void (*exceptionDestructor)(void *);
59 ::std::unexpected_handler unexpectedHandler;
60 ::std::terminate_handler terminateHandler;
62 __cxa_exception *nextException;
64 int handlerCount;
66 int handlerSwitchValue;
67 const unsigned char *actionRecord;
68 const unsigned char *languageSpecificData;
69 void *catchTemp;
70 void *adjustedPtr;
72 _Unwind_Exception unwindHeader;
73 };
75 extern "C" void *__cxa_allocate_exception(
76 std::size_t thrown_size ) throw();
77 extern "C" void __cxa_throw (
78 void *thrown_exception, std::type_info *tinfo, void (*dest) (void *) ) __attribute__((noreturn));
80 struct __cxa_eh_globals
82 __cxa_exception *caughtExceptions;
83 unsigned int uncaughtExceptions;
85 extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
87 // -----
89 //==================================================================================================
90 void raiseException(
91 uno_Any * pUnoExc, uno_Mapping * pUno2Cpp );
92 //==================================================================================================
93 void fillUnoException(
94 __cxa_exception * header, uno_Any *, uno_Mapping * pCpp2Uno );
97 namespace s390x
99 enum s390xlimits { MAX_GPR_REGS = 5, MAX_SSE_REGS = 4 };
102 /* vi:set tabstop=4 shiftwidth=4 expandtab: */