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
6ac2acc3
Commit
6ac2acc3
authored
Jan 20, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add support for $$B datatype description format in unDName.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
112ad7fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
cpp.c
dlls/msvcrt/tests/cpp.c
+2
-0
undname.c
dlls/msvcrt/undname.c
+31
-1
No files found.
dlls/msvcrt/tests/cpp.c
View file @
6ac2acc3
...
...
@@ -1321,6 +1321,8 @@ static void test_demangle(void)
/* 129 */
{
"??$run@XVTask_Render_Preview@@@QtConcurrent@@YA?AV?$QFuture@X@@PEAVTask_Render_Preview@@P82@EAAXXZ@Z"
,
"class QFuture<void> __cdecl QtConcurrent::run<void,class Task_Render_Preview>(class Task_Render_Preview * __ptr64,void (__cdecl Task_Render_Preview::*)(void) __ptr64)"
,
"??$run@XVTask_Render_Preview@@@QtConcurrent@@YA?AV?$QFuture@X@@PEAVTask_Render_Preview@@P82@EAAXXZ@Z"
},
/* 130 */
{
"??_E?$TStrArray@$$BY0BAA@D$0BA@@@UAEPAXI@Z"
,
"public: virtual void * __thiscall TStrArray<char [256],16>::`vector deleting destructor'(unsigned int)"
},
};
int
i
,
num_test
=
(
sizeof
(
test
)
/
sizeof
(
test
[
0
]));
char
*
name
;
...
...
dlls/msvcrt/undname.c
View file @
6ac2acc3
...
...
@@ -991,7 +991,37 @@ static BOOL demangle_datatype(struct parsed_symbol* sym, struct datatype_t* ct,
}
break
;
case
'$'
:
if
(
*
sym
->
current
==
'C'
)
if
(
*
sym
->
current
==
'B'
)
{
unsigned
mark
=
sym
->
stack
.
num
;
struct
datatype_t
sub_ct
;
const
char
*
arr
=
NULL
;
sym
->
current
++
;
/* multidimensional arrays */
if
(
*
sym
->
current
==
'Y'
)
{
const
char
*
n1
;
int
num
;
sym
->
current
++
;
if
(
!
(
n1
=
get_number
(
sym
)))
goto
done
;
num
=
atoi
(
n1
);
while
(
num
--
)
arr
=
str_printf
(
sym
,
"%s[%s]"
,
arr
,
get_number
(
sym
));
}
if
(
!
demangle_datatype
(
sym
,
&
sub_ct
,
pmt_ref
,
FALSE
))
goto
done
;
if
(
arr
)
ct
->
left
=
str_printf
(
sym
,
"%s %s"
,
sub_ct
.
left
,
arr
);
else
ct
->
left
=
sub_ct
.
left
;
ct
->
right
=
sub_ct
.
right
;
sym
->
stack
.
num
=
mark
;
}
else
if
(
*
sym
->
current
==
'C'
)
{
const
char
*
ptr
,
*
ptr_modif
;
...
...
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