ReactOS 0.4.16-dev-847-g386fccd
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 276 of file cpp.c.

278{
279 TRACE("(%p %p)\n", _this, rhs);
280 return __exception_copy_ctor(_this, rhs, &__non_rtti_object_vtable);
281}
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 287 of file cpp.c.

289{
290 TRACE("(%p %s)\n", _this, name);
291 return __exception_ctor(_this, name, &__non_rtti_object_vtable);
292}
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 298 of file cpp.c.

299{
300 TRACE("(%p)\n", _this);
301 bad_typeid_dtor(_this);
302}
void __thiscall bad_typeid_dtor(bad_typeid *_this)
Definition: cpp.c:220

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 308 of file cpp.c.

310{
311 TRACE("(%p %p)\n", _this, rhs);
312 bad_typeid_opequals(_this, rhs);
313 return _this;
314}
bad_typeid *__thiscall bad_typeid_opequals(bad_typeid *_this, const bad_typeid *rhs)
Definition: cpp.c:230

◆ __non_rtti_object_scalar_dtor()

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

Definition at line 343 of file cpp.c.

344{
345 TRACE("(%p %x)\n", _this, flags);
347 if (flags & 1) operator_delete(_this);
348 return _this;
349}
void _cdecl operator_delete(void *mem)
Definition: stubs.c:19
GLbitfield flags
Definition: glext.h:7161
void __thiscall __non_rtti_object_dtor(__non_rtti_object *_this)
Definition: cpp.c:298

◆ __non_rtti_object_vector_dtor()

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

Definition at line 320 of file cpp.c.

321{
322 TRACE("(%p %x)\n", _this, flags);
323 if (flags & 2)
324 {
325 /* we have an array, with the number of elements stored before the first object */
326 INT_PTR i, *ptr = (INT_PTR *)_this - 1;
327
328 for (i = *ptr - 1; i >= 0; i--) __non_rtti_object_dtor(_this + i);
330 }
331 else
332 {
334 if (flags & 1) operator_delete(_this);
335 }
336 return _this;
337}
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 366 of file cpp.c.

367{
368 TRACE("(%p %p)\n", _this, rhs);
369 return __exception_copy_ctor(_this, rhs, &bad_cast_vtable);
370}
const vtable_ptr bad_cast_vtable

◆ bad_cast_ctor()

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

Definition at line 356 of file cpp.c.

357{
358 TRACE("(%p %s)\n", _this, *name);
359 return __exception_ctor(_this, *name, &bad_cast_vtable);
360}

Referenced by __RTDynamicCast().

◆ bad_cast_ctor_charptr()

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

Definition at line 376 of file cpp.c.

377{
378 TRACE("(%p %s)\n", _this, name);
379 return __exception_ctor(_this, name, &bad_cast_vtable);
380}

Referenced by bad_cast_default_ctor().

◆ bad_cast_default_ctor()

bad_cast *__thiscall bad_cast_default_ctor ( bad_cast *  _this)

Definition at line 386 of file cpp.c.

387{
388 return bad_cast_ctor_charptr( _this, "bad cast" );
389}
bad_cast *__thiscall bad_cast_ctor_charptr(bad_cast *_this, const char *name)
Definition: cpp.c:376

◆ bad_cast_dtor()

void __thiscall bad_cast_dtor ( bad_cast *  _this)

Definition at line 395 of file cpp.c.

396{
397 TRACE("(%p)\n", _this);
398 exception_dtor(_this);
399}
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 405 of file cpp.c.

406{
407 TRACE("(%p %p)\n", _this, rhs);
408 exception_opequals(_this, rhs);
409 return _this;
410}
exception __thiscall exception_opequals(exception *_this, const exception *rhs)
Definition: cpp.c:163

◆ bad_cast_scalar_dtor()

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

Definition at line 439 of file cpp.c.

440{
441 TRACE("(%p %x)\n", _this, flags);
442 bad_cast_dtor(_this);
443 if (flags & 1) operator_delete(_this);
444 return _this;
445}
void __thiscall bad_cast_dtor(bad_cast *_this)
Definition: cpp.c:395

◆ bad_cast_vector_dtor()

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

Definition at line 416 of file cpp.c.

417{
418 TRACE("(%p %x)\n", _this, flags);
419 if (flags & 2)
420 {
421 /* we have an array, with the number of elements stored before the first object */
422 INT_PTR i, *ptr = (INT_PTR *)_this - 1;
423
424 for (i = *ptr - 1; i >= 0; i--) bad_cast_dtor(_this + i);
426 }
427 else
428 {
429 bad_cast_dtor(_this);
430 if (flags & 1) operator_delete(_this);
431 }
432 return _this;
433}

◆ bad_typeid_copy_ctor()

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

Definition at line 191 of file cpp.c.

192{
193 TRACE("(%p %p)\n", _this, rhs);
194 return __exception_copy_ctor(_this, rhs, &bad_typeid_vtable);
195}
const vtable_ptr bad_typeid_vtable

◆ bad_typeid_ctor()

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

Definition at line 201 of file cpp.c.

202{
203 TRACE("(%p %s)\n", _this, name);
204 return __exception_ctor(_this, name, &bad_typeid_vtable);
205}

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 211 of file cpp.c.

212{
213 return bad_typeid_ctor( _this, "bad typeid" );
214}
bad_typeid *__thiscall bad_typeid_ctor(bad_typeid *_this, const char *name)
Definition: cpp.c:201

◆ bad_typeid_dtor()

void __thiscall bad_typeid_dtor ( bad_typeid *  _this)

Definition at line 220 of file cpp.c.

221{
222 TRACE("(%p)\n", _this);
223 exception_dtor(_this);
224}

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 230 of file cpp.c.

231{
232 TRACE("(%p %p)\n", _this, rhs);
233 exception_opequals(_this, rhs);
234 return _this;
235}

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 264 of file cpp.c.

265{
266 TRACE("(%p %x)\n", _this, flags);
267 bad_typeid_dtor(_this);
268 if (flags & 1) operator_delete(_this);
269 return _this;
270}

◆ bad_typeid_vector_dtor()

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

Definition at line 241 of file cpp.c.

242{
243 TRACE("(%p %x)\n", _this, flags);
244 if (flags & 2)
245 {
246 /* we have an array, with the number of elements stored before the first object */
247 INT_PTR i, *ptr = (INT_PTR *)_this - 1;
248
249 for (i = *ptr - 1; i >= 0; i--) bad_typeid_dtor(_this + i);
251 }
252 else
253 {
254 bad_typeid_dtor(_this);
255 if (flags & 1) operator_delete(_this);
256 }
257 return _this;
258}

◆ exception_copy_ctor()

exception __thiscall exception_copy_ctor ( exception _this,
const exception rhs 
)

Referenced by exception_opequals().

◆ exception_ctor_noalloc()

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

Definition at line 140 of file cpp.c.

141{
142 TRACE("(%p,%s)\n", _this, *name);
143 _this->vtable = &exception_vtable;
144 _this->name = *name;
145 _this->do_free = FALSE;
146 return _this;
147}
#define FALSE
Definition: types.h:117
char * name
Definition: cpp.c:28
vtable_ptr * vtable
Definition: cpp.c:27
int do_free
Definition: cpp.c:29

◆ exception_default_ctor()

exception __thiscall exception_default_ctor ( exception _this)

Definition at line 153 of file cpp.c.

154{
155 TRACE("(%p)\n", _this);
156 return __exception_ctor(_this, NULL, &exception_vtable);
157}
#define NULL
Definition: types.h:112

◆ exception_dtor()

◆ exception_opequals()

exception __thiscall exception_opequals ( exception _this,
const exception rhs 
)

Definition at line 163 of file cpp.c.

164{
165 TRACE("(%p %p)\n", _this, rhs);
166 if (_this != rhs)
167 {
168 exception_dtor(_this);
169 exception_copy_ctor(_this, rhs);
170 }
171 TRACE("name = %s\n", _this->name);
172 return _this;
173}
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 179 of file cpp.c.

180{
181 TRACE("(%p %x)\n", _this, flags);
182 exception_dtor(_this);
183 if (flags & 1) operator_delete(_this);
184 return _this;
185}

◆ 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 473 of file cpp.c.

474{
475 int ret = strcmp(_this->mangled + 1, rhs->mangled + 1) < 0;
476 TRACE("(%p %p) returning %d\n", _this, rhs, ret);
477 return ret;
478}
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
char mangled[16]
Definition: cpp.c:36
int ret

◆ type_info_dtor()

void __thiscall type_info_dtor ( type_info _this)

Definition at line 484 of file cpp.c.

485{
486 TRACE("(%p)\n", _this);
487 free(_this->name);
488}
#define free
Definition: debug_ros.c:5
char * name
Definition: cpp.c:35

◆ type_info_name()

const char *__thiscall type_info_name ( type_info _this)

Definition at line 494 of file cpp.c.

495{
496 if (!_this->name)
497 {
498 /* Create and set the demangled name */
499 /* Note: mangled name in type_info struct always starts with a '.', while
500 * it isn't valid for mangled name.
501 * Is this '.' really part of the mangled name, or has it some other meaning ?
502 */
503 char* name = __unDName(0, _this->mangled + 1, 0,
505 if (name)
506 {
507 unsigned int len = strlen(name);
508
509 /* It seems _unDName may leave blanks at the end of the demangled name */
510 while (len && name[--len] == ' ')
511 name[len] = '\0';
512
513 if (InterlockedCompareExchangePointer((void**)&_this->name, name, NULL))
514 {
515 /* Another thread set this member since we checked above - use it */
516 free(name);
517 }
518 }
519 }
520 TRACE("(%p) returning %s\n", _this, _this->name);
521 return _this->name;
522}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
#define UNDNAME_32_BIT_DECODE
Definition: dbghelp.h:1264
#define UNDNAME_NO_ARGUMENTS
Definition: dbghelp.h:1266
#define malloc
Definition: debug_ros.c:4
GLenum GLsizei len
Definition: glext.h:6722
#define InterlockedCompareExchangePointer
Definition: interlocked.h:129
char *__cdecl __unDName(char *, const char *, int, malloc_func_t, free_func_t, unsigned short int)
Definition: undname.c:1650

◆ type_info_opequals_equals()

int __thiscall type_info_opequals_equals ( type_info _this,
const type_info rhs 
)

Definition at line 451 of file cpp.c.

452{
453 int ret = !strcmp(_this->mangled + 1, rhs->mangled + 1);
454 TRACE("(%p %p) returning %d\n", _this, rhs, ret);
455 return ret;
456}

◆ type_info_opnot_equals()

int __thiscall type_info_opnot_equals ( type_info _this,
const type_info rhs 
)

Definition at line 462 of file cpp.c.

463{
464 int ret = !!strcmp(_this->mangled + 1, rhs->mangled + 1);
465 TRACE("(%p %p) returning %d\n", _this, rhs, ret);
466 return ret;
467}

◆ type_info_raw_name()

const char *__thiscall type_info_raw_name ( type_info _this)

Definition at line 528 of file cpp.c.

529{
530 TRACE("(%p) returning %s\n", _this, _this->mangled);
531 return _this->mangled;
532}

◆ type_info_vector_dtor()

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