ReactOS 0.4.16-dev-2104-gb84fa49
wine_msc.h File Reference

Go to the source code of this file.

Functions

exception __thiscall MSVCRT_exception_ctor (exception *_this, const char **name)
 
exception __thiscall exception_ctor_noalloc (exception *_this, char **name, int noalloc)
 
exception __thiscall exception_copy_ctor (exception *_this, const exception *rhs)
 
exception __thiscall exception_default_ctor (exception *_this)
 
void __thiscall exception_dtor (exception *_this)
 
exception __thiscall exception_opequals (exception *_this, const exception *rhs)
 
void *__thiscall exception_vector_dtor (exception *_this, unsigned int flags)
 
void *__thiscall exception_scalar_dtor (exception *_this, unsigned int flags)
 
const char *__thiscall exception_what (exception *_this)
 
bad_typeid *__thiscall bad_typeid_copy_ctor (bad_typeid *_this, const bad_typeid *rhs)
 
bad_typeid *__thiscall bad_typeid_ctor (bad_typeid *_this, const char *name)
 
bad_typeid *__thiscall bad_typeid_default_ctor (bad_typeid *_this)
 
void __thiscall bad_typeid_dtor (bad_typeid *_this)
 
bad_typeid *__thiscall bad_typeid_opequals (bad_typeid *_this, const bad_typeid *rhs)
 
void *__thiscall bad_typeid_vector_dtor (bad_typeid *_this, unsigned int flags)
 
void *__thiscall bad_typeid_scalar_dtor (bad_typeid *_this, unsigned int flags)
 
__non_rtti_object *__thiscall __non_rtti_object_copy_ctor (__non_rtti_object *_this, const __non_rtti_object *rhs)
 
__non_rtti_object *__thiscall __non_rtti_object_ctor (__non_rtti_object *_this, const char *name)
 
void __thiscall __non_rtti_object_dtor (__non_rtti_object *_this)
 
__non_rtti_object *__thiscall __non_rtti_object_opequals (__non_rtti_object *_this, const __non_rtti_object *rhs)
 
void *__thiscall __non_rtti_object_vector_dtor (__non_rtti_object *_this, unsigned int flags)
 
void *__thiscall __non_rtti_object_scalar_dtor (__non_rtti_object *_this, unsigned int flags)
 
bad_cast *__thiscall bad_cast_ctor (bad_cast *_this, const char **name)
 
bad_cast *__thiscall bad_cast_copy_ctor (bad_cast *_this, const bad_cast *rhs)
 
bad_cast *__thiscall bad_cast_ctor_charptr (bad_cast *_this, const char *name)
 
bad_cast *__thiscall bad_cast_default_ctor (bad_cast *_this)
 
void __thiscall bad_cast_dtor (bad_cast *_this)
 
bad_cast *__thiscall bad_cast_opequals (bad_cast *_this, const bad_cast *rhs)
 
void *__thiscall bad_cast_vector_dtor (bad_cast *_this, unsigned int flags)
 
void *__thiscall bad_cast_scalar_dtor (bad_cast *_this, unsigned int flags)
 
int __thiscall type_info_opequals_equals (type_info *_this, const type_info *rhs)
 
int __thiscall type_info_opnot_equals (type_info *_this, const type_info *rhs)
 
int __thiscall type_info_before (type_info *_this, const type_info *rhs)
 
void __thiscall type_info_dtor (type_info *_this)
 
const char *__thiscall type_info_name (type_info *_this)
 
const char *__thiscall type_info_raw_name (type_info *_this)
 
void *__thiscall type_info_vector_dtor (type_info *_this, unsigned int flags)
 

Function Documentation

◆ __non_rtti_object_copy_ctor()

__non_rtti_object *__thiscall __non_rtti_object_copy_ctor ( __non_rtti_object _this,
const __non_rtti_object rhs 
)

Definition at line 251 of file cpp.c.

253{
254 TRACE("(%p %p)\n", _this, rhs);
255 return __exception_copy_ctor(_this, rhs, &__non_rtti_object_vtable);
256}
const vtable_ptr __non_rtti_object_vtable
#define TRACE(s)
Definition: solgame.cpp:4

◆ __non_rtti_object_ctor()

__non_rtti_object *__thiscall __non_rtti_object_ctor ( __non_rtti_object _this,
const char name 
)

Definition at line 262 of file cpp.c.

264{
265 TRACE("(%p %s)\n", _this, name);
266 return __exception_ctor(_this, name, &__non_rtti_object_vtable);
267}
Definition: name.c:39

Referenced by __RTCastToVoid(), __RTDynamicCast(), and __RTtypeid().

◆ __non_rtti_object_dtor()

void __thiscall __non_rtti_object_dtor ( __non_rtti_object _this)

Definition at line 273 of file cpp.c.

274{
275 TRACE("(%p)\n", _this);
276 bad_typeid_dtor(_this);
277}
void __thiscall bad_typeid_dtor(bad_typeid *_this)
Definition: cpp.c:195

Referenced by __non_rtti_object_scalar_dtor(), and __non_rtti_object_vector_dtor().

◆ __non_rtti_object_opequals()

__non_rtti_object *__thiscall __non_rtti_object_opequals ( __non_rtti_object _this,
const __non_rtti_object rhs 
)

Definition at line 283 of file cpp.c.

285{
286 TRACE("(%p %p)\n", _this, rhs);
287 bad_typeid_opequals(_this, rhs);
288 return _this;
289}
bad_typeid *__thiscall bad_typeid_opequals(bad_typeid *_this, const bad_typeid *rhs)
Definition: cpp.c:205

◆ __non_rtti_object_scalar_dtor()

void *__thiscall __non_rtti_object_scalar_dtor ( __non_rtti_object _this,
unsigned int  flags 
)

Definition at line 318 of file cpp.c.

319{
320 TRACE("(%p %x)\n", _this, flags);
322 if (flags & 1) operator_delete(_this);
323 return _this;
324}
void __thiscall __non_rtti_object_dtor(__non_rtti_object *_this)
Definition: cpp.c:273
void CDECL DECLSPEC_HOTPATCH operator_delete(void *mem)
Definition: heap.c:177
GLbitfield flags
Definition: glext.h:7161

◆ __non_rtti_object_vector_dtor()

void *__thiscall __non_rtti_object_vector_dtor ( __non_rtti_object _this,
unsigned int  flags 
)

Definition at line 295 of file cpp.c.

296{
297 TRACE("(%p %x)\n", _this, flags);
298 if (flags & 2)
299 {
300 /* we have an array, with the number of elements stored before the first object */
301 INT_PTR i, *ptr = (INT_PTR *)_this - 1;
302
303 for (i = *ptr - 1; i >= 0; i--) __non_rtti_object_dtor(_this + i);
305 }
306 else
307 {
309 if (flags & 1) operator_delete(_this);
310 }
311 return _this;
312}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static PVOID ptr
Definition: dispmode.c:27
int32_t INT_PTR
Definition: typedefs.h:64

◆ bad_cast_copy_ctor()

bad_cast *__thiscall bad_cast_copy_ctor ( bad_cast _this,
const bad_cast rhs 
)

Definition at line 341 of file cpp.c.

342{
343 TRACE("(%p %p)\n", _this, rhs);
344 return __exception_copy_ctor(_this, rhs, &bad_cast_vtable);
345}
const vtable_ptr bad_cast_vtable

◆ bad_cast_ctor()

bad_cast *__thiscall bad_cast_ctor ( bad_cast _this,
const char **  name 
)

Definition at line 331 of file cpp.c.

332{
333 TRACE("(%p %s)\n", _this, *name);
334 return __exception_ctor(_this, *name, &bad_cast_vtable);
335}

Referenced by __RTDynamicCast().

◆ bad_cast_ctor_charptr()

bad_cast *__thiscall bad_cast_ctor_charptr ( bad_cast _this,
const char name 
)

Definition at line 351 of file cpp.c.

352{
353 TRACE("(%p %s)\n", _this, name);
354 return __exception_ctor(_this, name, &bad_cast_vtable);
355}

Referenced by bad_cast_default_ctor().

◆ bad_cast_default_ctor()

bad_cast *__thiscall bad_cast_default_ctor ( bad_cast _this)

Definition at line 361 of file cpp.c.

362{
363 return bad_cast_ctor_charptr( _this, "bad cast" );
364}
bad_cast *__thiscall bad_cast_ctor_charptr(bad_cast *_this, const char *name)
Definition: cpp.c:351

◆ bad_cast_dtor()

void __thiscall bad_cast_dtor ( bad_cast _this)

Definition at line 370 of file cpp.c.

371{
372 TRACE("(%p)\n", _this);
373 exception_dtor(_this);
374}
void __thiscall exception_dtor(exception *_this)

Referenced by bad_cast_scalar_dtor(), and bad_cast_vector_dtor().

◆ bad_cast_opequals()

bad_cast *__thiscall bad_cast_opequals ( bad_cast _this,
const bad_cast rhs 
)

Definition at line 380 of file cpp.c.

381{
382 TRACE("(%p %p)\n", _this, rhs);
383 exception_opequals(_this, rhs);
384 return _this;
385}
exception __thiscall exception_opequals(exception *_this, const exception *rhs)
Definition: cpp.c:138

◆ bad_cast_scalar_dtor()

void *__thiscall bad_cast_scalar_dtor ( bad_cast _this,
unsigned int  flags 
)

Definition at line 414 of file cpp.c.

415{
416 TRACE("(%p %x)\n", _this, flags);
417 bad_cast_dtor(_this);
418 if (flags & 1) operator_delete(_this);
419 return _this;
420}
void __thiscall bad_cast_dtor(bad_cast *_this)
Definition: cpp.c:370

◆ bad_cast_vector_dtor()

void *__thiscall bad_cast_vector_dtor ( bad_cast _this,
unsigned int  flags 
)

Definition at line 391 of file cpp.c.

392{
393 TRACE("(%p %x)\n", _this, flags);
394 if (flags & 2)
395 {
396 /* we have an array, with the number of elements stored before the first object */
397 INT_PTR i, *ptr = (INT_PTR *)_this - 1;
398
399 for (i = *ptr - 1; i >= 0; i--) bad_cast_dtor(_this + i);
401 }
402 else
403 {
404 bad_cast_dtor(_this);
405 if (flags & 1) operator_delete(_this);
406 }
407 return _this;
408}

◆ bad_typeid_copy_ctor()

bad_typeid *__thiscall bad_typeid_copy_ctor ( bad_typeid _this,
const bad_typeid rhs 
)

Definition at line 166 of file cpp.c.

167{
168 TRACE("(%p %p)\n", _this, rhs);
169 return __exception_copy_ctor(_this, rhs, &bad_typeid_vtable);
170}
const vtable_ptr bad_typeid_vtable

◆ bad_typeid_ctor()

bad_typeid *__thiscall bad_typeid_ctor ( bad_typeid _this,
const char name 
)

Definition at line 176 of file cpp.c.

177{
178 TRACE("(%p %s)\n", _this, name);
179 return __exception_ctor(_this, name, &bad_typeid_vtable);
180}

Referenced by __RTtypeid(), and bad_typeid_default_ctor().

◆ bad_typeid_default_ctor()

bad_typeid *__thiscall bad_typeid_default_ctor ( bad_typeid _this)

Definition at line 186 of file cpp.c.

187{
188 return bad_typeid_ctor( _this, "bad typeid" );
189}
bad_typeid *__thiscall bad_typeid_ctor(bad_typeid *_this, const char *name)
Definition: cpp.c:176

◆ bad_typeid_dtor()

void __thiscall bad_typeid_dtor ( bad_typeid _this)

Definition at line 195 of file cpp.c.

196{
197 TRACE("(%p)\n", _this);
198 exception_dtor(_this);
199}

Referenced by __non_rtti_object_dtor(), bad_typeid_scalar_dtor(), and bad_typeid_vector_dtor().

◆ bad_typeid_opequals()

bad_typeid *__thiscall bad_typeid_opequals ( bad_typeid _this,
const bad_typeid rhs 
)

Definition at line 205 of file cpp.c.

206{
207 TRACE("(%p %p)\n", _this, rhs);
208 exception_opequals(_this, rhs);
209 return _this;
210}

Referenced by __non_rtti_object_opequals().

◆ bad_typeid_scalar_dtor()

void *__thiscall bad_typeid_scalar_dtor ( bad_typeid _this,
unsigned int  flags 
)

Definition at line 239 of file cpp.c.

240{
241 TRACE("(%p %x)\n", _this, flags);
242 bad_typeid_dtor(_this);
243 if (flags & 1) operator_delete(_this);
244 return _this;
245}

◆ bad_typeid_vector_dtor()

void *__thiscall bad_typeid_vector_dtor ( bad_typeid _this,
unsigned int  flags 
)

Definition at line 216 of file cpp.c.

217{
218 TRACE("(%p %x)\n", _this, flags);
219 if (flags & 2)
220 {
221 /* we have an array, with the number of elements stored before the first object */
222 INT_PTR i, *ptr = (INT_PTR *)_this - 1;
223
224 for (i = *ptr - 1; i >= 0; i--) bad_typeid_dtor(_this + i);
226 }
227 else
228 {
229 bad_typeid_dtor(_this);
230 if (flags & 1) operator_delete(_this);
231 }
232 return _this;
233}

◆ exception_copy_ctor()

exception __thiscall exception_copy_ctor ( exception _this,
const exception rhs 
)

◆ exception_ctor_noalloc()

exception __thiscall exception_ctor_noalloc ( exception _this,
char **  name,
int  noalloc 
)

Definition at line 115 of file cpp.c.

116{
117 TRACE("(%p,%s)\n", _this, *name);
118 _this->vtable = &exception_vtable;
119 _this->name = *name;
120 _this->do_free = FALSE;
121 return _this;
122}
#define FALSE
Definition: types.h:117
char * name
Definition: cxx.h:326
const vtable_ptr * vtable
Definition: cxx.h:325
int do_free
Definition: cxx.h:327

◆ exception_default_ctor()

exception __thiscall exception_default_ctor ( exception _this)

Definition at line 128 of file cpp.c.

129{
130 TRACE("(%p)\n", _this);
131 return __exception_ctor(_this, NULL, &exception_vtable);
132}
#define NULL
Definition: types.h:112

◆ exception_dtor()

void __thiscall exception_dtor ( exception _this)

◆ exception_opequals()

exception __thiscall exception_opequals ( exception _this,
const exception rhs 
)

Definition at line 138 of file cpp.c.

139{
140 TRACE("(%p %p)\n", _this, rhs);
141 if (_this != rhs)
142 {
143 exception_dtor(_this);
144 exception_copy_ctor(_this, rhs);
145 }
146 TRACE("name = %s\n", _this->name);
147 return _this;
148}
exception *__thiscall exception_copy_ctor(exception *_this, const exception *rhs)

Referenced by bad_cast_opequals(), and bad_typeid_opequals().

◆ exception_scalar_dtor()

void *__thiscall exception_scalar_dtor ( exception _this,
unsigned int  flags 
)

Definition at line 154 of file cpp.c.

155{
156 TRACE("(%p %x)\n", _this, flags);
157 exception_dtor(_this);
158 if (flags & 1) operator_delete(_this);
159 return _this;
160}

◆ exception_vector_dtor()

void *__thiscall exception_vector_dtor ( exception _this,
unsigned int  flags 
)

◆ exception_what()

const char *__thiscall exception_what ( exception _this)

◆ MSVCRT_exception_ctor()

exception __thiscall MSVCRT_exception_ctor ( exception _this,
const char **  name 
)

◆ type_info_before()

int __thiscall type_info_before ( type_info _this,
const type_info rhs 
)

Definition at line 448 of file cpp.c.

449{
450 int ret = strcmp(_this->mangled + 1, rhs->mangled + 1) < 0;
451 TRACE("(%p %p) returning %d\n", _this, rhs, ret);
452 return ret;
453}
_ACRTIMP int __cdecl strcmp(const char *, const char *)
Definition: string.c:3319
return ret
Definition: mutex.c:146
char mangled[128]
Definition: cxx.h:335

◆ type_info_dtor()

void __thiscall type_info_dtor ( type_info _this)

Definition at line 459 of file cpp.c.

460{
461 TRACE("(%p)\n", _this);
462 free(_this->name);
463}
#define free
Definition: debug_ros.c:5
char * name
Definition: cxx.h:334

◆ type_info_name()

const char *__thiscall type_info_name ( type_info _this)

Definition at line 469 of file cpp.c.

470{
471 if (!_this->name)
472 {
473 /* Create and set the demangled name */
474 /* Note: mangled name in type_info struct always starts with a '.', while
475 * it isn't valid for mangled name.
476 * Is this '.' really part of the mangled name, or has it some other meaning ?
477 */
478 char* name = __unDName(0, _this->mangled + 1, 0,
480 if (name)
481 {
482 unsigned int len = strlen(name);
483
484 /* It seems _unDName may leave blanks at the end of the demangled name */
485 while (len && name[--len] == ' ')
486 name[len] = '\0';
487
488 if (InterlockedCompareExchangePointer((void**)&_this->name, name, NULL))
489 {
490 /* Another thread set this member since we checked above - use it */
491 free(name);
492 }
493 }
494 }
495 TRACE("(%p) returning %s\n", _this, _this->name);
496 return _this->name;
497}
#define UNDNAME_32_BIT_DECODE
Definition: dbghelp.h:1264
#define UNDNAME_NO_ARGUMENTS
Definition: dbghelp.h:1266
#define malloc
Definition: debug_ros.c:4
_ACRTIMP size_t __cdecl strlen(const char *)
Definition: string.c:1592
char *__cdecl __unDName(char *, const char *, int, malloc_func_t, free_func_t, unsigned short int)
Definition: undname.c:1783
GLenum GLsizei len
Definition: glext.h:6722
#define InterlockedCompareExchangePointer
Definition: interlocked.h:144

◆ type_info_opequals_equals()

int __thiscall type_info_opequals_equals ( type_info _this,
const type_info rhs 
)

Definition at line 426 of file cpp.c.

427{
428 int ret = !strcmp(_this->mangled + 1, rhs->mangled + 1);
429 TRACE("(%p %p) returning %d\n", _this, rhs, ret);
430 return ret;
431}

◆ type_info_opnot_equals()

int __thiscall type_info_opnot_equals ( type_info _this,
const type_info rhs 
)

Definition at line 437 of file cpp.c.

438{
439 int ret = !!strcmp(_this->mangled + 1, rhs->mangled + 1);
440 TRACE("(%p %p) returning %d\n", _this, rhs, ret);
441 return ret;
442}

◆ type_info_raw_name()

const char *__thiscall type_info_raw_name ( type_info _this)

Definition at line 503 of file cpp.c.

504{
505 TRACE("(%p) returning %s\n", _this, _this->mangled);
506 return _this->mangled;
507}

◆ type_info_vector_dtor()

void *__thiscall type_info_vector_dtor ( type_info _this,
unsigned int  flags 
)