1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #include "uno/mapping.h"
35 namespace CPPU_CURRENT_NAMESPACE
38 void dummy_can_throw_anything( char const * );
41 // ----- following decl from libstdc++-v3/libsupc++/unwind-cxx.h and unwind.h
43 struct _Unwind_Exception
45 unsigned exception_class
__attribute__((__mode__(__DI__
)));
46 void * exception_cleanup
;
47 unsigned private_1
__attribute__((__mode__(__word__
)));
48 unsigned private_2
__attribute__((__mode__(__word__
)));
49 } __attribute__((__aligned__
));
51 struct __cxa_exception
53 ::std::type_info
*exceptionType
;
54 void (*exceptionDestructor
)(void *);
56 ::std::unexpected_handler unexpectedHandler
;
57 ::std::terminate_handler terminateHandler
;
59 __cxa_exception
*nextException
;
63 int handlerSwitchValue
;
64 const unsigned char *actionRecord
;
65 const unsigned char *languageSpecificData
;
69 _Unwind_Exception unwindHeader
;
72 extern "C" void *__cxa_allocate_exception(
73 std::size_t thrown_size
) throw();
74 extern "C" void __cxa_throw (
75 void *thrown_exception
, std::type_info
*tinfo
, void (*dest
) (void *) ) __attribute__((noreturn
));
77 struct __cxa_eh_globals
79 __cxa_exception
*caughtExceptions
;
80 unsigned int uncaughtExceptions
;
82 extern "C" __cxa_eh_globals
*__cxa_get_globals () throw();
86 //==================================================================================================
88 uno_Any
* pUnoExc
, uno_Mapping
* pUno2Cpp
);
89 //==================================================================================================
90 void fillUnoException(
91 __cxa_exception
* header
, uno_Any
*, uno_Mapping
* pCpp2Uno
);
96 enum s390xlimits
{ MAX_GPR_REGS
= 5, MAX_SSE_REGS
= 4 };
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */