os/kernelhwsrv/kernel/eka/compsupp/symaehabi/cxxabi.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/* Copyright (c) Edison Design Group, 2002-2004. */
sl@0
     2
/*
sl@0
     3
cxxabi.h -- Include file for IA-64 ABI entry points.
sl@0
     4
*/
sl@0
     5
sl@0
     6
#ifndef __CXXABI_H
sl@0
     7
#define __CXXABI_H
sl@0
     8
sl@0
     9
#ifndef __STDDEF_H
sl@0
    10
#include <stddef.h>
sl@0
    11
#endif  /* ifndef __STDDEF_H */
sl@0
    12
sl@0
    13
namespace std
sl@0
    14
{
sl@0
    15
	#ifdef __EDG__
sl@0
    16
	#pragma define_type_info
sl@0
    17
	#endif
sl@0
    18
sl@0
    19
	class type_info
sl@0
    20
		{
sl@0
    21
	public:
sl@0
    22
		IMPORT_C virtual ~type_info();
sl@0
    23
		IMPORT_C bool operator==(const type_info&) const;
sl@0
    24
		IMPORT_C bool operator!=(const type_info&) const;
sl@0
    25
		IMPORT_C bool before(const type_info&) const;
sl@0
    26
		IMPORT_C const char* name() const;
sl@0
    27
	private:
sl@0
    28
		type_info(const type_info&);
sl@0
    29
		type_info& operator=(const type_info&);
sl@0
    30
	private:
sl@0
    31
		const char *__type_name;
sl@0
    32
		};
sl@0
    33
sl@0
    34
	class exception
sl@0
    35
		{
sl@0
    36
	public:
sl@0
    37
		IMPORT_C exception() throw ();
sl@0
    38
		IMPORT_C exception(const exception&) throw ();
sl@0
    39
		IMPORT_C exception& operator=(const exception&) throw ();
sl@0
    40
		IMPORT_C virtual ~exception() throw ();
sl@0
    41
		IMPORT_C virtual const char* what() const throw ();
sl@0
    42
		};
sl@0
    43
sl@0
    44
	class bad_exception : public exception
sl@0
    45
		{
sl@0
    46
	public:
sl@0
    47
		bad_exception() throw ();
sl@0
    48
		bad_exception(const bad_exception&) throw ();
sl@0
    49
		bad_exception& operator=(const bad_exception&) throw ();
sl@0
    50
sl@0
    51
		virtual ~bad_exception() throw ();
sl@0
    52
sl@0
    53
		virtual const char* what() const throw ();
sl@0
    54
		};
sl@0
    55
sl@0
    56
	class bad_cast : public exception
sl@0
    57
		{
sl@0
    58
	public:
sl@0
    59
		IMPORT_C bad_cast() throw ();
sl@0
    60
		IMPORT_C bad_cast(const bad_cast&) throw ();
sl@0
    61
		IMPORT_C bad_cast& operator=(const bad_cast&) throw ();
sl@0
    62
		IMPORT_C virtual ~bad_cast() throw ();
sl@0
    63
		IMPORT_C virtual const char* what() const throw ();
sl@0
    64
		};
sl@0
    65
sl@0
    66
	class bad_typeid : public exception
sl@0
    67
		{
sl@0
    68
	public:
sl@0
    69
		IMPORT_C bad_typeid() throw ();
sl@0
    70
		IMPORT_C bad_typeid(const bad_typeid&) throw ();
sl@0
    71
		IMPORT_C bad_typeid& operator=(const bad_typeid&) throw ();
sl@0
    72
		IMPORT_C virtual ~bad_typeid() throw ();
sl@0
    73
		IMPORT_C virtual const char* what() const throw ();
sl@0
    74
		};
sl@0
    75
}
sl@0
    76
sl@0
    77
sl@0
    78
sl@0
    79
#ifdef __EDG_RUNTIME_USES_NAMESPACES
sl@0
    80
namespace __cxxabiv1 {
sl@0
    81
  using namespace std;
sl@0
    82
#endif /* ifdef __EDG_RUNTIME_USES_NAMESPACES */
sl@0
    83
sl@0
    84
  /* type_info implementation classes */
sl@0
    85
sl@0
    86
#pragma define_type_info
sl@0
    87
  class __fundamental_type_info : public type_info {
sl@0
    88
  public:
sl@0
    89
    virtual ~__fundamental_type_info();
sl@0
    90
  };
sl@0
    91
sl@0
    92
#pragma define_type_info
sl@0
    93
  class __array_type_info : public type_info {
sl@0
    94
  public:
sl@0
    95
    virtual ~__array_type_info();
sl@0
    96
  };
sl@0
    97
sl@0
    98
#pragma define_type_info
sl@0
    99
  class __function_type_info : public type_info {
sl@0
   100
  public:
sl@0
   101
    virtual ~__function_type_info();
sl@0
   102
  };
sl@0
   103
sl@0
   104
#pragma define_type_info
sl@0
   105
  class __enum_type_info : public type_info {
sl@0
   106
  public:
sl@0
   107
    virtual ~__enum_type_info();
sl@0
   108
  };
sl@0
   109
sl@0
   110
#pragma define_type_info
sl@0
   111
  class __class_type_info : public type_info {
sl@0
   112
  public:
sl@0
   113
    virtual ~__class_type_info();
sl@0
   114
  };
sl@0
   115
sl@0
   116
#pragma define_type_info
sl@0
   117
  class __si_class_type_info : public __class_type_info {
sl@0
   118
  public:
sl@0
   119
    virtual ~__si_class_type_info();
sl@0
   120
    const __class_type_info *__base_type;
sl@0
   121
  };
sl@0
   122
sl@0
   123
  struct __base_class_type_info {
sl@0
   124
    const __class_type_info *__base_type;
sl@0
   125
    long __offset_flags;
sl@0
   126
sl@0
   127
    enum __offset_flags_masks {
sl@0
   128
      __virtual_mask = 0x1,
sl@0
   129
      __public_mask = 0x2,
sl@0
   130
      __offset_shift = 8
sl@0
   131
    };
sl@0
   132
  };
sl@0
   133
sl@0
   134
#pragma define_type_info
sl@0
   135
  class __vmi_class_type_info : public __class_type_info {
sl@0
   136
  public:
sl@0
   137
    virtual ~__vmi_class_type_info();
sl@0
   138
    unsigned int __flags;
sl@0
   139
    unsigned int __base_count;
sl@0
   140
    __base_class_type_info __base_info[1];
sl@0
   141
sl@0
   142
    enum __flags_masks {
sl@0
   143
      __non_diamond_repeat_mask = 0x1,
sl@0
   144
      __diamond_shaped_mask = 0x2
sl@0
   145
    };
sl@0
   146
  };
sl@0
   147
sl@0
   148
#pragma define_type_info
sl@0
   149
  class __pbase_type_info : public type_info {
sl@0
   150
  public:
sl@0
   151
    virtual ~__pbase_type_info();
sl@0
   152
    unsigned int __flags;
sl@0
   153
    const type_info *__pointee;
sl@0
   154
    
sl@0
   155
    enum __masks {
sl@0
   156
      __const_mask = 0x1,
sl@0
   157
      __volatile_mask = 0x2,
sl@0
   158
      __restrict_mask = 0x4,
sl@0
   159
      __incomplete_mask = 0x8,
sl@0
   160
      __incomplete_class_mask = 0x10
sl@0
   161
    };
sl@0
   162
  }; 
sl@0
   163
sl@0
   164
#pragma define_type_info
sl@0
   165
  class __pointer_type_info : public __pbase_type_info {
sl@0
   166
    virtual ~__pointer_type_info();
sl@0
   167
  };
sl@0
   168
sl@0
   169
#pragma define_type_info
sl@0
   170
  class __pointer_to_member_type_info : public __pbase_type_info {
sl@0
   171
    virtual ~__pointer_to_member_type_info();
sl@0
   172
    const __class_type_info *__context;
sl@0
   173
  };
sl@0
   174
sl@0
   175
  extern "C" {
sl@0
   176
    /* Pure virtual function calls. */
sl@0
   177
    void __cxa_pure_virtual();
sl@0
   178
sl@0
   179
    /* Constructors return void in the IA-64 ABI.  But in the ARM EABI
sl@0
   180
       variant, they return void*. */
sl@0
   181
#ifdef __EDG_IA64_ABI_VARIANT_CTORS_AND_DTORS_RETURN_THIS
sl@0
   182
    typedef void* __ctor_dtor_return_type;
sl@0
   183
#else /* ifndef __EDG_IA64_ABI_VARIANT_CTORS_AND_DTORS_RETURN_THIS */
sl@0
   184
    typedef void __ctor_dtor_return_type;
sl@0
   185
#endif /* ifdef __EDG_IA64_ABI_VARIANT_CTORS_AND_DTORS_RETURN_THIS */
sl@0
   186
sl@0
   187
    /* Guard variables are 64 bits in the IA-64 ABI but only 32 bits in
sl@0
   188
       the ARM EABI. */
sl@0
   189
#ifdef __EDG_IA64_ABI_USE_INT_STATIC_INIT_GUARD
sl@0
   190
    typedef int __guard_variable_type;
sl@0
   191
#else /* ifndef __EDG_IA64_ABI_USE_INT_STATIC_INIT_GUARD */
sl@0
   192
    typedef unsigned long long __guard_variable_type;
sl@0
   193
#endif /* ifdef __EDG_IA64_ABI_USE_INT_STATIC_INIT_GUARD */
sl@0
   194
  
sl@0
   195
    /* Guard variables for the initialization of variables with static storage
sl@0
   196
       duration. */
sl@0
   197
    int __cxa_guard_acquire(__guard_variable_type *);
sl@0
   198
    void __cxa_guard_release(__guard_variable_type *);
sl@0
   199
    void __cxa_guard_abort(__guard_variable_type *);
sl@0
   200
sl@0
   201
    /* Construction and destruction of arrays. */
sl@0
   202
    void *__cxa_vec_new(size_t, size_t, size_t,
sl@0
   203
                        __ctor_dtor_return_type (*)(void *),
sl@0
   204
                        __ctor_dtor_return_type (*)(void *));
sl@0
   205
    void *__cxa_vec_new2(size_t, size_t, size_t,
sl@0
   206
                         __ctor_dtor_return_type (*)(void *),
sl@0
   207
                         __ctor_dtor_return_type (*)(void *),
sl@0
   208
                         void *(*)(size_t),
sl@0
   209
                         void (*)(void *));
sl@0
   210
    void *__cxa_vec_new3(size_t, size_t, size_t,
sl@0
   211
                         __ctor_dtor_return_type (*)(void *),
sl@0
   212
                         __ctor_dtor_return_type (*)(void *),
sl@0
   213
                         void *(*)(size_t),
sl@0
   214
                         void (*)(void *, size_t));
sl@0
   215
#ifndef CXXABI_VEC_CTOR_RETURNS_VOID
sl@0
   216
    /* The C++ ABI says this returns 'void' but we actually return
sl@0
   217
       'void *' to remain compatible with RVCT 2.0 objects.  But the
sl@0
   218
       compiler no longer assumes it. */
sl@0
   219
    void *
sl@0
   220
#else /* def CXXABI_VEC_CTOR_RETURNS_VOID */
sl@0
   221
    void
sl@0
   222
#endif /* def CXXABI_VEC_CTOR_RETURNS_VOID */
sl@0
   223
         __cxa_vec_ctor(void *, size_t, size_t,
sl@0
   224
                        __ctor_dtor_return_type (*)(void *),
sl@0
   225
                        __ctor_dtor_return_type (*)(void *));
sl@0
   226
    void __cxa_vec_dtor(void *, size_t, size_t,
sl@0
   227
                        __ctor_dtor_return_type (*)(void *));
sl@0
   228
    void __cxa_vec_cleanup(void *, size_t, size_t,
sl@0
   229
                           __ctor_dtor_return_type (*)(void *));
sl@0
   230
    void __cxa_vec_delete(void *, size_t, size_t,
sl@0
   231
                          __ctor_dtor_return_type (*)(void *));
sl@0
   232
    void __cxa_vec_delete2(void *, size_t, size_t,
sl@0
   233
                           __ctor_dtor_return_type (*)(void *),
sl@0
   234
                           void (*)(void *));
sl@0
   235
    void __cxa_vec_delete3(void *, size_t, size_t,
sl@0
   236
                           __ctor_dtor_return_type (*)(void *),
sl@0
   237
                           void (*)(void *, size_t));
sl@0
   238
#ifndef CXXABI_VEC_CTOR_RETURNS_VOID
sl@0
   239
    /* The C++ ABI says this returns 'void' but we actually return
sl@0
   240
       'void *' to remain compatible with RVCT 2.0 objects.  But the
sl@0
   241
       compiler no longer assumes it. */
sl@0
   242
    void *
sl@0
   243
#else /* def CXXABI_VEC_CTOR_RETURNS_VOID */
sl@0
   244
    void
sl@0
   245
#endif /* def CXXABI_VEC_CTOR_RETURNS_VOID */
sl@0
   246
         __cxa_vec_cctor(void *, void *, size_t, size_t, 
sl@0
   247
                         __ctor_dtor_return_type (*)(void *, void *),
sl@0
   248
                         __ctor_dtor_return_type (*)(void *));
sl@0
   249
sl@0
   250
    /* Finalization. */
sl@0
   251
    int __cxa_atexit(void (*)(void *), void *, void *);
sl@0
   252
    void __cxa_finalize(void *);
sl@0
   253
sl@0
   254
    /* Exception-handling support. */
sl@0
   255
    void __cxa_bad_cast();
sl@0
   256
    void __cxa_bad_typeid();
sl@0
   257
sl@0
   258
    /* Demangling interface. */
sl@0
   259
    char *__cxa_demangle(const char* __mangled_name,
sl@0
   260
                         char        *__buf,
sl@0
   261
                         size_t      *__n,
sl@0
   262
                         int         *__status);
sl@0
   263
sl@0
   264
  }  /* extern "C" */
sl@0
   265
#ifdef __EDG_RUNTIME_USES_NAMESPACES
sl@0
   266
}  /* namespace __cxxabiv1 */
sl@0
   267
sl@0
   268
/* Create the "abi" namespace alias. */
sl@0
   269
namespace abi = __cxxabiv1;
sl@0
   270
#endif /* ifdef __EDG_RUNTIME_USES_NAMESPACES */
sl@0
   271
sl@0
   272
#endif /* ifndef __CXXABI_H */