merge the formfield patch from ooo-build
[ooovba.git] / bridges / source / cpp_uno / gcc3_linux_arm / share.hxx
blob4aa879198590a23bdcaf09c9d4e5891586e769f3
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 $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _ARM_SHARE_HXX
31 #define _ARM_SHARE_HXX
32 #include "uno/mapping.h"
34 #include <typeinfo>
35 #include <exception>
36 #include <cstddef>
37 #include <unwind.h>
39 namespace CPPU_CURRENT_NAMESPACE
42 void dummy_can_throw_anything( char const * );
44 // -- following decl from libstdc++-v3/libsupc++/unwind-cxx.h and unwind.h
46 struct __cxa_exception
48 ::std::type_info *exceptionType;
49 void (*exceptionDestructor)(void *);
51 ::std::unexpected_handler unexpectedHandler;
52 ::std::terminate_handler terminateHandler;
54 __cxa_exception *nextException;
56 int handlerCount;
57 #ifdef __ARM_EABI__
58 __cxa_exception *nextPropagatingException;
59 int propagationCount;
60 #else
61 int handlerSwitchValue;
62 const unsigned char *actionRecord;
63 const unsigned char *languageSpecificData;
64 void *catchTemp;
65 void *adjustedPtr;
66 #endif
67 _Unwind_Exception unwindHeader;
68 };
70 extern "C" void *__cxa_allocate_exception(
71 std::size_t thrown_size ) throw();
72 extern "C" void __cxa_throw (
73 void *thrown_exception, std::type_info *tinfo,
74 void (*dest) (void *) ) __attribute__((noreturn));
76 struct __cxa_eh_globals
78 __cxa_exception *caughtExceptions;
79 unsigned int uncaughtExceptions;
80 #ifdef __ARM_EABI__
81 __cxa_exception *propagatingExceptions;
82 #endif
84 extern "C" __cxa_eh_globals *__cxa_get_globals () throw();
86 // -----
88 //====================================================================
89 void raiseException(
90 uno_Any * pUnoExc, uno_Mapping * pUno2Cpp );
91 //====================================================================
92 void fillUnoException(
93 __cxa_exception * header, uno_Any *, uno_Mapping * pCpp2Uno );
95 #endif
96 /* vi:set tabstop=4 shiftwidth=4 expandtab: */