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
98f94544
Commit
98f94544
authored
Nov 08, 2004
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented __unDName and __unDNameEx functions.
parent
d1e44d07
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
60 deletions
+1
-60
Makefile.in
dlls/msvcrt/Makefile.in
+1
-0
main.c
dlls/msvcrt/main.c
+0
-60
undname.c
dlls/msvcrt/undname.c
+0
-0
No files found.
dlls/msvcrt/Makefile.in
View file @
98f94544
...
...
@@ -32,6 +32,7 @@ C_SRCS = \
string.c
\
thread.c
\
time.c
\
undname.c
\
wcs.c
SUBDIRS
=
tests
...
...
dlls/msvcrt/main.c
View file @
98f94544
...
...
@@ -118,63 +118,3 @@ void MSVCRT_I10_OUTPUT(void)
{
/* FIXME: This is probably data, not a function */
}
/*********************************************************************
* __unDNameEx (MSVCRT.@)
*
* Demangle a C++ identifier.
*
* PARAMS
* OutStr [O] If not NULL, the place to put the demangled string
* mangled [I] Mangled name of the function
* OutStrLen[I] Length of OutStr
* memget [I] Function to allocate memory with
* memfree [I] Function to free memory with
* unknown [?] Unknown, possibly a call back
* flags [I] Flags determining demangled format
*
* RETURNS
* Success: A string pointing to the unmangled name, allocated with memget.
* Failure: NULL.
*/
char
*
__unDNameEx
(
char
*
OutStr
,
const
char
*
mangled
,
int
OutStrLen
,
malloc_func_t
memget
,
free_func_t
memfree
,
void
*
unknown
,
unsigned
short
int
flags
)
{
FIXME
(
"(%p,%s,%d,%p,%p,%p,%x) stub!
\n
"
,
OutStr
,
mangled
,
OutStrLen
,
memget
,
memfree
,
unknown
,
flags
);
/* FIXME: The code in tools/winebuild/msmangle.c is pretty complete and
* could be used here.
*/
/* Experimentation reveals the following flag meanings when set:
* 0x0001 - Don't show __ in calling convention
* 0x0002 - Don't show calling convention at all
* 0x0004 - Don't show function/method return value
* 0x0010 - Same as 0x1
* 0x0080 - Don't show access specifier (public/protected/private)
* 0x0200 - Don't show static specifier
* 0x0800 - Unknown, passed by type_info::name()
* 0x1000 - Only report the variable/class name
* 0x2000 - Unknown, passed by type_info::name()
*/
/* Duplicate the mangled name; for comparisons it doesn't matter anyway */
if
(
OutStr
==
NULL
)
{
OutStrLen
=
strlen
(
mangled
)
+
1
;
OutStr
=
memget
(
OutStrLen
);
}
strncpy
(
OutStr
,
mangled
,
OutStrLen
);
return
OutStr
;
}
/*********************************************************************
* __unDName (MSVCRT.@)
*/
char
*
__unDName
(
char
*
OutStr
,
const
char
*
mangled
,
int
OutStrLen
,
malloc_func_t
memget
,
free_func_t
memfree
,
unsigned
short
int
flags
)
{
return
__unDNameEx
(
OutStr
,
mangled
,
OutStrLen
,
memget
,
memfree
,
0
,
flags
);
}
dlls/msvcrt/undname.c
0 → 100644
View file @
98f94544
This diff is collapsed.
Click to expand it.
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