Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
22e74da9
Commit
22e74da9
authored
Mar 01, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Remove useless casts to self.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fbc92ec2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
13 deletions
+13
-13
debug.c
tools/winedump/debug.c
+2
-2
msc.c
tools/winedump/msc.c
+2
-2
msmangle.c
tools/winedump/msmangle.c
+5
-5
pdb.c
tools/winedump/pdb.c
+2
-2
search.c
tools/winedump/search.c
+2
-2
No files found.
tools/winedump/debug.c
View file @
22e74da9
...
...
@@ -413,7 +413,7 @@ static void dump_codeview_headers(unsigned long base, unsigned long len)
if
(
memcmp
(
signature
,
"NB10"
,
4
)
==
0
)
{
const
CODEVIEW_PDB_DATA
*
pdb_data
;
pdb_data
=
(
const
void
*
)
cv_base
;
pdb_data
=
cv_base
;
printf
(
" Filepos: 0x%08lX
\n
"
,
pdb_data
->
filepos
);
printf
(
" TimeStamp: %08X (%s)
\n
"
,
...
...
@@ -426,7 +426,7 @@ static void dump_codeview_headers(unsigned long base, unsigned long len)
{
const
OMFSignatureRSDS
*
rsds_data
;
rsds_data
=
(
const
void
*
)
cv_base
;
rsds_data
=
cv_base
;
printf
(
" Guid: %s
\n
"
,
get_guid_str
(
&
rsds_data
->
guid
));
printf
(
" Age: %08X
\n
"
,
rsds_data
->
age
);
printf
(
" Filename: %s
\n
"
,
rsds_data
->
name
);
...
...
tools/winedump/msc.c
View file @
22e74da9
...
...
@@ -91,7 +91,7 @@ static int full_numeric_leaf(struct full_value* fv, const unsigned short int* le
case
LF_USHORT
:
length
+=
2
;
fv
->
v
.
i
=
*
(
const
unsigned
short
*
)
leaf
;
fv
->
v
.
i
=
*
leaf
;
break
;
case
LF_LONG
:
...
...
@@ -1490,7 +1490,7 @@ void codeview_dump_linetab2(const char* linetab, DWORD size, const char* strimag
break
;
default:
printf
(
"%sblock end %x
\n
"
,
pfx
,
lt2
->
header
);
lt2
=
(
const
struct
codeview_linetab2
*
)(
(
const
char
*
)
linetab
+
size
);
lt2
=
(
const
struct
codeview_linetab2
*
)(
linetab
+
size
);
continue
;
}
lt2
=
codeview_linetab2_next_block
(
lt2
);
...
...
tools/winedump/msmangle.c
View file @
22e74da9
...
...
@@ -590,7 +590,7 @@ static char *demangle_datatype (char **str, compound_type *ct,
if
(
!
ct
->
expression
)
return
NULL
;
return
(
char
*
)(
*
str
=
iter
)
;
return
*
str
=
iter
;
}
...
...
@@ -629,7 +629,7 @@ static char *get_constraints_convention_1 (char **str, compound_type *ct)
char
*
iter
=
*
str
,
**
retval
=
str
;
if
(
ct
->
have_qualifiers
)
return
(
char
*
)
*
str
;
/* Previously got constraints for this type */
return
*
str
;
/* Previously got constraints for this type */
if
(
*
iter
==
'?'
||
*
iter
==
'A'
)
{
...
...
@@ -651,7 +651,7 @@ static char *get_constraints_convention_1 (char **str, compound_type *ct)
}
}
return
(
char
*
)(
*
retval
=
iter
)
;
return
*
retval
=
iter
;
}
...
...
@@ -666,7 +666,7 @@ static char *get_constraints_convention_2 (char **str, compound_type *ct)
/* FIXME: Why do arrays have both convention 1 & 2 constraints? */
if
(
ct
->
have_qualifiers
&&
ct
->
dest_type
!=
'Q'
)
return
(
char
*
)
*
str
;
/* Previously got constraints for this type */
return
*
str
;
/* Previously got constraints for this type */
ct
->
have_qualifiers
=
TRUE
;
/* Even if none, we've got all we're getting */
...
...
@@ -687,7 +687,7 @@ static char *get_constraints_convention_2 (char **str, compound_type *ct)
break
;
}
return
(
char
*
)(
*
retval
=
iter
)
;
return
*
retval
=
iter
;
}
...
...
tools/winedump/pdb.c
View file @
22e74da9
...
...
@@ -336,7 +336,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
for
(
j
=
cfile
;
j
<
src
->
nSrcFiles
&&
j
<
cfile
+
indx
[
i
];
j
++
)
{
/* FIXME: in some cases, it's a p_string but WHEN ? */
if
(
cstr
+
offset
[
j
]
>=
(
const
char
*
)
start_cstr
/* wrap around */
&&
if
(
cstr
+
offset
[
j
]
>=
start_cstr
/* wrap around */
&&
cstr
+
offset
[
j
]
<
(
const
char
*
)
src
+
symbols
->
srcmodule_size
)
printf
(
"
\t\t\t
Source file: %s
\n
"
,
cstr
+
offset
[
j
]);
else
...
...
@@ -367,7 +367,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
"
\t\t
Age: %08u
\n
"
"
\t\t
file1: %s
\n
"
"
\t\t
file2: %s
\n
"
,
(
ULONG_PTR
)((
const
char
*
)
imp
-
(
const
char
*
)
first
),
(
ULONG_PTR
)((
const
char
*
)
imp
-
first
),
imp
->
unknown1
,
imp
->
unknown2
,
imp
->
TimeDateStamp
,
...
...
tools/winedump/search.c
View file @
22e74da9
...
...
@@ -311,7 +311,7 @@ static const char *get_type (parsed_symbol *sym, const char *proto, int arg)
if
(
arg
<
0
)
{
sym
->
return_text
=
(
char
*
)
type_str
;
sym
->
return_text
=
type_str
;
sym
->
return_type
=
dest_type
;
}
else
...
...
@@ -332,7 +332,7 @@ static const char *get_type (parsed_symbol *sym, const char *proto, int arg)
sym
->
arg_name
[
arg
]
=
str_substring
(
proto_str
,
iter
);
proto_str
=
iter
;
}
sym
->
arg_text
[
arg
]
=
(
char
*
)
type_str
;
sym
->
arg_text
[
arg
]
=
type_str
;
}
return
proto_str
;
...
...
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