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
590bf1be
Commit
590bf1be
authored
Apr 06, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Demangle a C++ mangled string that is only a name with it's template argument list.
parent
4718261e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
cpp.c
dlls/msvcrt/tests/cpp.c
+3
-0
undname.c
dlls/msvcrt/undname.c
+9
-0
No files found.
dlls/msvcrt/tests/cpp.c
View file @
590bf1be
...
...
@@ -975,6 +975,9 @@ static void test_demangle(void)
{
"??0aa$_3a@@QAE@XZ"
,
"public: __thiscall aa$_3a::aa$_3a(void)"
},
{
"??2?$aaa@AAUbbb@@AAUccc@@AAU2@@ddd@1eee@2@QAEHXZ"
,
"public: int __thiscall eee::eee::ddd::ddd::aaa<struct bbb &,struct ccc &,struct ccc &>::operator new(void)"
},
{
"?pSW@@3P6GHKPAX0PAU_tagSTACKFRAME@@0P6GH0K0KPAK@ZP6GPAX0K@ZP6GK0K@ZP6GK00PAU_tagADDRESS@@@Z@ZA"
,
"int (__stdcall* pSW)(unsigned long,void *,void *,struct _tagSTACKFRAME *,void *,int (__stdcall*)(void *,unsigned long,void *,unsigned long,unsigned long *),void * (__stdcall*)(void *,unsigned long),unsigned long (__stdcall*)(void *,unsigned long),unsigned long (__stdcall*)(void *,void *,struct _tagADDRESS *))"
},
{
"?$_aaa@Vbbb@@"
,
"_aaa<class bbb>"
},
{
"??$_aaa@Vbbb@@"
,
"??$_aaa@Vbbb@@"
},
{
"?$aaa@Vbbb@ccc@@Vddd@2@"
,
"aaa<class ccc::bbb,class ccc::ddd>"
},
};
int
i
,
num_test
=
(
sizeof
(
test
)
/
sizeof
(
test
[
0
]));
char
*
name
;
...
...
dlls/msvcrt/undname.c
View file @
590bf1be
...
...
@@ -1156,6 +1156,15 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
}
sym
->
stack
.
start
=
1
;
}
else
if
(
*
sym
->
current
==
'$'
)
{
/* Strange construct, it's a name with a template argument list
and that's all. */
sym
->
current
++
;
sym
->
result
=
get_template_name
(
sym
);
ret
=
TRUE
;
goto
done
;
}
/* Either a class name, or '@' if the symbol is not a class member */
if
(
*
sym
->
current
!=
'@'
)
...
...
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