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
1d583004
Commit
1d583004
authored
Nov 02, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use the public definitions for the UNDNAME_ flags.
parent
6f1ed05b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
43 deletions
+25
-43
cpp.c
dlls/msvcrt/cpp.c
+3
-0
msvcrt.h
dlls/msvcrt/msvcrt.h
+0
-20
undname.c
dlls/msvcrt/undname.c
+5
-6
imagehlp.h
include/imagehlp.h
+17
-17
No files found.
dlls/msvcrt/cpp.c
View file @
1d583004
...
...
@@ -24,6 +24,9 @@
#include "windef.h"
#include "winternl.h"
#include "winbase.h"
#include "winver.h"
#include "imagehlp.h"
#include "wine/exception.h"
#include "wine/debug.h"
#include "msvcrt.h"
...
...
dlls/msvcrt/msvcrt.h
View file @
1d583004
...
...
@@ -359,26 +359,6 @@ printf_arg arg_clbk_positional(void*, int, int, va_list*);
extern
char
*
__cdecl
__unDName
(
char
*
,
const
char
*
,
int
,
malloc_func_t
,
free_func_t
,
unsigned
short
int
);
/* __unDName/__unDNameEx flags */
#define UNDNAME_COMPLETE (0x0000)
#define UNDNAME_NO_LEADING_UNDERSCORES (0x0001)
/* Don't show __ in calling convention */
#define UNDNAME_NO_MS_KEYWORDS (0x0002)
/* Don't show calling convention at all */
#define UNDNAME_NO_FUNCTION_RETURNS (0x0004)
/* Don't show function/method return value */
#define UNDNAME_NO_ALLOCATION_MODEL (0x0008)
#define UNDNAME_NO_ALLOCATION_LANGUAGE (0x0010)
#define UNDNAME_NO_MS_THISTYPE (0x0020)
#define UNDNAME_NO_CV_THISTYPE (0x0040)
#define UNDNAME_NO_THISTYPE (0x0060)
#define UNDNAME_NO_ACCESS_SPECIFIERS (0x0080)
/* Don't show access specifier (public/protected/private) */
#define UNDNAME_NO_THROW_SIGNATURES (0x0100)
#define UNDNAME_NO_MEMBER_TYPE (0x0200)
/* Don't show static/virtual specifier */
#define UNDNAME_NO_RETURN_UDT_MODEL (0x0400)
#define UNDNAME_32_BIT_DECODE (0x0800)
#define UNDNAME_NAME_ONLY (0x1000)
/* Only report the variable/method name */
#define UNDNAME_NO_ARGUMENTS (0x2000)
/* Don't show method arguments */
#define UNDNAME_NO_SPECIAL_SYMS (0x4000)
#define UNDNAME_NO_COMPLEX_TYPE (0x8000)
#define UCRTBASE_PRINTF_MASK ( \
_CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION | \
_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR | \
...
...
dlls/msvcrt/undname.c
View file @
1d583004
...
...
@@ -23,16 +23,13 @@
#include <stdio.h>
#include <stdlib.h>
#include "msvcrt.h"
#include "winver.h"
#include "imagehlp.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcrt
);
/* TODO:
* - document a bit (grammar + functions)
* - back-port this new code into tools/winedump/msmangle.c
*/
/* How data types qualifiers are stored:
* M (in the following definitions) is defined for
* 'A', 'B', 'C' and 'D' as follows
...
...
@@ -48,9 +45,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
* in data fields:
* same as for arguments and also the following
* ?<M>x {<M>}x
*
*
*/
#define UNDNAME_NO_COMPLEX_TYPE (0x8000)
struct
array
{
unsigned
start
;
/* first valid reference in array */
...
...
include/imagehlp.h
View file @
1d583004
...
...
@@ -127,23 +127,23 @@ typedef enum {
NumSymTypes
}
SYM_TYPE
;
#define UNDNAME_COMPLETE
0x0000
#define UNDNAME_NO_LEADING_UNDERSCORES
0x0001
#define UNDNAME_NO_MS_KEYWORDS
0x0002
#define UNDNAME_NO_FUNCTION_RETURNS
0x0004
#define UNDNAME_NO_ALLOCATION_MODEL
0x0008
#define UNDNAME_NO_ALLOCATION_LANGUAGE
0x0010
#define UNDNAME_NO_MS_THISTYPE
0x0020
#define UNDNAME_NO_CV_THISTYPE
0x0040
#define UNDNAME_NO_THISTYPE
0x0060
#define UNDNAME_NO_ACCESS_SPECIFIERS
0x0080
#define UNDNAME_NO_THROW_SIGNATURES
0x0100
#define UNDNAME_NO_MEMBER_TYPE
0x0200
#define UNDNAME_NO_RETURN_UDT_MODEL
0x0400
#define UNDNAME_32_BIT_DECODE
0x0800
#define UNDNAME_NAME_ONLY
0x1000
#define UNDNAME_NO_ARGUMENTS
0x2000
#define UNDNAME_NO_SPECIAL_SYMS
0x4000
#define UNDNAME_COMPLETE
(0x0000)
#define UNDNAME_NO_LEADING_UNDERSCORES
(0x0001)
#define UNDNAME_NO_MS_KEYWORDS
(0x0002)
#define UNDNAME_NO_FUNCTION_RETURNS
(0x0004)
#define UNDNAME_NO_ALLOCATION_MODEL
(0x0008)
#define UNDNAME_NO_ALLOCATION_LANGUAGE
(0x0010)
#define UNDNAME_NO_MS_THISTYPE
(0x0020)
#define UNDNAME_NO_CV_THISTYPE
(0x0040)
#define UNDNAME_NO_THISTYPE
(0x0060)
#define UNDNAME_NO_ACCESS_SPECIFIERS
(0x0080)
#define UNDNAME_NO_THROW_SIGNATURES
(0x0100)
#define UNDNAME_NO_MEMBER_TYPE
(0x0200)
#define UNDNAME_NO_RETURN_UDT_MODEL
(0x0400)
#define UNDNAME_32_BIT_DECODE
(0x0800)
#define UNDNAME_NAME_ONLY
(0x1000)
#define UNDNAME_NO_ARGUMENTS
(0x2000)
#define UNDNAME_NO_SPECIAL_SYMS
(0x4000)
#define CBA_DEFERRED_SYMBOL_LOAD_START 0x00000001
#define CBA_DEFERRED_SYMBOL_LOAD_COMPLETE 0x00000002
...
...
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