Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
256a08ae
Commit
256a08ae
authored
Aug 23, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Added _String_base::Xinvarg implementation.
parent
0ca29092
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
110 additions
and
2 deletions
+110
-2
exception.c
dlls/msvcp90/exception.c
+98
-0
msvcp90.h
dlls/msvcp90/msvcp90.h
+2
-1
msvcp90.spec
dlls/msvcp90/msvcp90.spec
+1
-1
string.c
dlls/msvcp90/string.c
+9
-0
No files found.
dlls/msvcp90/exception.c
View file @
256a08ae
...
@@ -102,6 +102,7 @@ extern const vtable_ptr MSVCP_bad_alloc_vtable;
...
@@ -102,6 +102,7 @@ extern const vtable_ptr MSVCP_bad_alloc_vtable;
extern
const
vtable_ptr
MSVCP_logic_error_vtable
;
extern
const
vtable_ptr
MSVCP_logic_error_vtable
;
extern
const
vtable_ptr
MSVCP_length_error_vtable
;
extern
const
vtable_ptr
MSVCP_length_error_vtable
;
extern
const
vtable_ptr
MSVCP_out_of_range_vtable
;
extern
const
vtable_ptr
MSVCP_out_of_range_vtable
;
extern
const
vtable_ptr
MSVCP_invalid_argument_vtable
;
/* exception class data */
/* exception class data */
static
type_info
exception_type_info
=
{
static
type_info
exception_type_info
=
{
...
@@ -611,6 +612,97 @@ static const cxx_exception_type out_of_range_cxx_type = {
...
@@ -611,6 +612,97 @@ static const cxx_exception_type out_of_range_cxx_type = {
&
out_of_range_cxx_type_table
&
out_of_range_cxx_type_table
};
};
/* invalid_argument class data */
typedef
logic_error
invalid_argument
;
DEFINE_THISCALL_WRAPPER
(
MSVCP_invalid_argument_ctor
,
8
)
invalid_argument
*
__stdcall
MSVCP_invalid_argument_ctor
(
invalid_argument
*
this
,
const
char
**
name
)
{
TRACE
(
"%p %s
\n
"
,
this
,
*
name
);
MSVCP_logic_error_ctor
(
this
,
name
);
this
->
e
.
vtable
=
&
MSVCP_invalid_argument_vtable
;
return
this
;
}
DEFINE_THISCALL_WRAPPER
(
MSVCP_invalid_argument_copy_ctor
,
8
)
invalid_argument
*
__stdcall
MSVCP_invalid_argument_copy_ctor
(
invalid_argument
*
this
,
invalid_argument
*
rhs
)
{
TRACE
(
"%p %p
\n
"
,
this
,
rhs
);
MSVCP_logic_error_copy_ctor
(
this
,
rhs
);
this
->
e
.
vtable
=
&
MSVCP_invalid_argument_vtable
;
return
this
;
}
DEFINE_THISCALL_WRAPPER
(
MSVCP_invalid_argument_vector_dtor
,
8
)
void
*
__stdcall
MSVCP_invalid_argument_vector_dtor
(
invalid_argument
*
this
,
unsigned
int
flags
)
{
TRACE
(
"%p %x
\n
"
,
this
,
flags
);
return
MSVCP_logic_error_vector_dtor
(
this
,
flags
);
}
static
const
type_info
invalid_argument_type_info
=
{
&
MSVCP_invalid_argument_vtable
,
NULL
,
".?AVinvalid_argument@std@@"
};
static
const
rtti_base_descriptor
invalid_argument_rtti_base_descriptor
=
{
&
invalid_argument_type_info
,
2
,
{
0
,
-
1
,
0
},
64
};
static
const
rtti_base_array
invalid_argument_rtti_base_array
=
{
{
&
invalid_argument_rtti_base_descriptor
,
&
logic_error_rtti_base_descriptor
,
&
exception_rtti_base_descriptor
}
};
static
const
rtti_object_hierarchy
invalid_argument_type_hierarchy
=
{
0
,
0
,
3
,
&
invalid_argument_rtti_base_array
};
const
rtti_object_locator
invalid_argument_rtti
=
{
0
,
0
,
0
,
&
invalid_argument_type_info
,
&
invalid_argument_type_hierarchy
};
static
const
cxx_type_info
invalid_argument_cxx_type_info
=
{
0
,
&
invalid_argument_type_info
,
{
0
,
-
1
,
0
},
sizeof
(
invalid_argument
),
(
cxx_copy_ctor
)
THISCALL
(
MSVCP_invalid_argument_copy_ctor
)
};
static
const
cxx_type_info_table
invalid_argument_cxx_type_table
=
{
3
,
{
&
invalid_argument_cxx_type_info
,
&
logic_error_cxx_type_info
,
&
exception_cxx_type_info
}
};
static
const
cxx_exception_type
invalid_argument_cxx_type
=
{
0
,
(
cxx_copy_ctor
)
THISCALL
(
MSVCP_logic_error_dtor
),
NULL
,
&
invalid_argument_cxx_type_table
};
#ifndef __GNUC__
#ifndef __GNUC__
void
__asm_dummy_vtables
(
void
)
{
void
__asm_dummy_vtables
(
void
)
{
#endif
#endif
...
@@ -618,6 +710,7 @@ void __asm_dummy_vtables(void) {
...
@@ -618,6 +710,7 @@ void __asm_dummy_vtables(void) {
__ASM_EXCEPTION_STRING_VTABLE
(
logic_error
)
__ASM_EXCEPTION_STRING_VTABLE
(
logic_error
)
__ASM_EXCEPTION_STRING_VTABLE
(
length_error
)
__ASM_EXCEPTION_STRING_VTABLE
(
length_error
)
__ASM_EXCEPTION_STRING_VTABLE
(
out_of_range
)
__ASM_EXCEPTION_STRING_VTABLE
(
out_of_range
)
__ASM_EXCEPTION_STRING_VTABLE
(
invalid_argument
)
#ifndef __GNUC__
#ifndef __GNUC__
}
}
#endif
#endif
...
@@ -657,5 +750,10 @@ void throw_exception(exception_type et, const char *str)
...
@@ -657,5 +750,10 @@ void throw_exception(exception_type et, const char *str)
MSVCP_out_of_range_ctor
(
&
e
,
&
addr
);
MSVCP_out_of_range_ctor
(
&
e
,
&
addr
);
_CxxThrowException
((
exception
*
)
&
e
,
&
out_of_range_cxx_type
);
_CxxThrowException
((
exception
*
)
&
e
,
&
out_of_range_cxx_type
);
}
}
case
EXCEPTION_INVALID_ARGUMENT
:
{
invalid_argument
e
;
MSVCP_invalid_argument_ctor
(
&
e
,
&
addr
);
_CxxThrowException
((
exception
*
)
&
e
,
&
invalid_argument_cxx_type
);
}
}
}
}
}
dlls/msvcp90/msvcp90.h
View file @
256a08ae
...
@@ -62,7 +62,8 @@ typedef enum __exception_type {
...
@@ -62,7 +62,8 @@ typedef enum __exception_type {
EXCEPTION_BAD_ALLOC
,
EXCEPTION_BAD_ALLOC
,
EXCEPTION_LOGIC_ERROR
,
EXCEPTION_LOGIC_ERROR
,
EXCEPTION_LENGTH_ERROR
,
EXCEPTION_LENGTH_ERROR
,
EXCEPTION_OUT_OF_RANGE
EXCEPTION_OUT_OF_RANGE
,
EXCEPTION_INVALID_ARGUMENT
}
exception_type
;
}
exception_type
;
void
throw_exception
(
exception_type
,
const
char
*
);
void
throw_exception
(
exception_type
,
const
char
*
);
void
set_exception_vtable
(
void
);
void
set_exception_vtable
(
void
);
...
...
dlls/msvcp90/msvcp90.spec
View file @
256a08ae
...
@@ -2877,7 +2877,7 @@
...
@@ -2877,7 +2877,7 @@
@ stub ?_Xfunc@tr1@std@@YAXXZ
@ stub ?_Xfunc@tr1@std@@YAXXZ
@ stub -arch=win32 ?_Xinvalid@tr1@std@@YAXPBD@Z
@ stub -arch=win32 ?_Xinvalid@tr1@std@@YAXPBD@Z
@ stub -arch=win64 ?_Xinvalid@tr1@std@@YAXPEBD@Z
@ stub -arch=win64 ?_Xinvalid@tr1@std@@YAXPEBD@Z
@
stub ?_Xinvarg@_String_base@std@@SAXXZ
@
cdecl ?_Xinvarg@_String_base@std@@SAXXZ() MSVCP__String_base_Xinvarg
@ cdecl ?_Xlen@_String_base@std@@SAXXZ() MSVCP__String_base_Xlen
@ cdecl ?_Xlen@_String_base@std@@SAXXZ() MSVCP__String_base_Xlen
@ stub ?_Xmem@tr1@std@@YAXXZ
@ stub ?_Xmem@tr1@std@@YAXXZ
@ stub ?_Xoutrange@tr1@std@@YAXXZ
@ stub ?_Xoutrange@tr1@std@@YAXXZ
...
...
dlls/msvcp90/string.c
View file @
256a08ae
...
@@ -485,6 +485,15 @@ void CDECL MSVCP__String_base_Xran(void)
...
@@ -485,6 +485,15 @@ void CDECL MSVCP__String_base_Xran(void)
throw_exception
(
EXCEPTION_OUT_OF_RANGE
,
msg
);
throw_exception
(
EXCEPTION_OUT_OF_RANGE
,
msg
);
}
}
/* ?_Xinvarg@_String_base@std@@SAXXZ */
void
CDECL
MSVCP__String_base_Xinvarg
(
void
)
{
static
const
char
msg
[]
=
"invalid string argument"
;
TRACE
(
"
\n
"
);
throw_exception
(
EXCEPTION_INVALID_ARGUMENT
,
msg
);
}
/* basic_string<char, char_traits<char>, allocator<char>> */
/* basic_string<char, char_traits<char>, allocator<char>> */
/* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB */
/* ?npos@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@2IB */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment