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
e0b6ceea
Commit
e0b6ceea
authored
Jul 16, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add support for C++11 operator "" in demangling.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
d89e7cd4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
13 deletions
+31
-13
undname.c
dlls/msvcrt/undname.c
+13
-0
cpp.c
dlls/ucrtbase/tests/cpp.c
+18
-13
No files found.
dlls/msvcrt/undname.c
View file @
e0b6ceea
...
...
@@ -1488,6 +1488,19 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
case
'V'
:
function_name
=
"operator delete[]"
;
break
;
case
'X'
:
function_name
=
"`placement delete closure'"
;
break
;
case
'Y'
:
function_name
=
"`placement delete[] closure'"
;
break
;
case
'_'
:
switch
(
*++
sym
->
current
)
{
case
'K'
:
sym
->
current
++
;
function_name
=
str_printf
(
sym
,
"operator
\"\"
%s"
,
get_literal_string
(
sym
));
--
sym
->
current
;
break
;
default:
FIXME
(
"Unknown operator: __%c
\n
"
,
*
sym
->
current
);
return
FALSE
;
}
break
;
default:
ERR
(
"Unknown operator: _%c
\n
"
,
*
sym
->
current
);
return
FALSE
;
...
...
dlls/ucrtbase/tests/cpp.c
View file @
e0b6ceea
...
...
@@ -192,19 +192,24 @@ static void test___std_type_info(void)
static
void
test___unDName
(
void
)
{
char
*
name
;
name
=
p___unDName
(
0
,
"??4QDnsDomainNameRecord@@QAEAAV0@$$QAV0@@Z"
,
0
,
malloc
,
free
,
0
);
ok
(
!
strcmp
(
name
,
"public: class QDnsDomainNameRecord & __thiscall "
"QDnsDomainNameRecord::operator=(class QDnsDomainNameRecord &&)"
),
"unDName returned %s
\n
"
,
wine_dbgstr_a
(
name
));
free
(
name
);
name
=
p___unDName
(
0
,
"??4QDnsDomainNameRecord@@QAEAAV0@$$QEAV0@@Z"
,
0
,
malloc
,
free
,
0
);
ok
(
!
strcmp
(
name
,
"public: class QDnsDomainNameRecord & __thiscall "
"QDnsDomainNameRecord::operator=(class QDnsDomainNameRecord && __ptr64)"
),
"unDName returned %s
\n
"
,
wine_dbgstr_a
(
name
));
free
(
name
);
static
struct
{
const
char
*
in
;
const
char
*
out
;
const
char
*
broken
;}
und_tests
[]
=
{
/* 1 */
{
"??4QDnsDomainNameRecord@@QAEAAV0@$$QAV0@@Z"
,
"public: class QDnsDomainNameRecord & __thiscall QDnsDomainNameRecord::operator=(class QDnsDomainNameRecord &&)"
},
/* 2 */
{
"??4QDnsDomainNameRecord@@QAEAAV0@$$QEAV0@@Z"
,
"public: class QDnsDomainNameRecord & __thiscall QDnsDomainNameRecord::operator=(class QDnsDomainNameRecord && __ptr64)"
},
/* 3 */
{
"??__K_l@@YA?AUCC@@I@Z"
,
"struct CC __cdecl operator
\"\"
_l(unsigned int)"
,
"??__K_l@@YA?AUCC@@I@Z"
/* W10 1507 fails on this :-( */
},
};
unsigned
i
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
und_tests
);
i
++
)
{
char
*
name
=
p___unDName
(
0
,
und_tests
[
i
].
in
,
0
,
malloc
,
free
,
0
);
ok
(
!
strcmp
(
name
,
und_tests
[
i
].
out
)
||
(
broken
(
und_tests
[
i
].
broken
&&
!
strcmp
(
und_tests
[
i
].
broken
,
name
))),
"unDName returned %s for #%u
\n
"
,
wine_dbgstr_a
(
name
),
i
);
free
(
name
);
}
}
START_TEST
(
cpp
)
...
...
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