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
19c0b3ee
Commit
19c0b3ee
authored
Oct 02, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Use consistent prototypes for option callbacks.
parent
328b1d9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
main.c
tools/winedump/main.c
+13
-13
winedump.h
tools/winedump/winedump.h
+2
-2
No files found.
tools/winedump/main.c
View file @
19c0b3ee
...
...
@@ -80,13 +80,13 @@ static void do_dump (const char *arg)
}
static
void
do_code
(
void
)
static
void
do_code
(
const
char
*
arg
)
{
globals
.
do_code
=
1
;
}
static
void
do_trace
(
void
)
static
void
do_trace
(
const
char
*
arg
)
{
globals
.
do_trace
=
1
;
globals
.
do_code
=
1
;
...
...
@@ -100,18 +100,18 @@ static void do_forward (const char *arg)
globals
.
do_code
=
1
;
}
static
void
do_document
(
void
)
static
void
do_document
(
const
char
*
arg
)
{
globals
.
do_documentation
=
1
;
}
static
void
do_cdecl
(
void
)
static
void
do_cdecl
(
const
char
*
arg
)
{
globals
.
do_cdecl
=
1
;
}
static
void
do_quiet
(
void
)
static
void
do_quiet
(
const
char
*
arg
)
{
globals
.
do_quiet
=
1
;
}
...
...
@@ -157,18 +157,18 @@ static void do_symfile (const char *arg)
}
static
void
do_verbose
(
void
)
static
void
do_verbose
(
const
char
*
arg
)
{
globals
.
do_verbose
=
1
;
}
static
void
do_symdmngl
(
void
)
static
void
do_symdmngl
(
const
char
*
arg
)
{
globals
.
do_demangle
=
1
;
}
static
void
do_dumphead
(
void
)
static
void
do_dumphead
(
const
char
*
arg
)
{
globals
.
do_dumpheader
=
1
;
}
...
...
@@ -178,12 +178,12 @@ static void do_dumpsect (const char* arg)
globals
.
dumpsect
=
arg
;
}
static
void
do_rawdebug
(
void
)
static
void
do_rawdebug
(
const
char
*
arg
)
{
globals
.
do_debug
=
1
;
}
static
void
do_dumpall
(
void
)
static
void
do_dumpall
(
const
char
*
arg
)
{
globals
.
do_dumpheader
=
1
;
globals
.
do_dump_rawdata
=
1
;
...
...
@@ -195,7 +195,7 @@ struct my_option
const
char
*
name
;
Mode
mode
;
int
has_arg
;
void
(
*
func
)
(
);
void
(
*
func
)
(
const
char
*
arg
);
const
char
*
usage
;
};
...
...
@@ -226,7 +226,7 @@ static const struct my_option option_table[] = {
{
NULL
,
NONE
,
0
,
NULL
,
NULL
}
};
void
do_usage
(
void
)
void
do_usage
(
const
char
*
arg
)
{
const
struct
my_option
*
opt
;
printf
(
"Usage: winedump [-h | sym <sym> | spec <dll> | dump <file>]
\n
"
);
...
...
@@ -466,7 +466,7 @@ int main (int argc, char *argv[])
return
1
;
break
;
case
NONE
:
do_usage
();
do_usage
(
0
);
break
;
case
DUMP
:
if
(
globals
.
input_name
==
NULL
)
...
...
tools/winedump/winedump.h
View file @
19c0b3ee
...
...
@@ -268,10 +268,10 @@ void dump_frame_pointer_omission(unsigned long base, unsigned long len);
FILE
*
open_file
(
const
char
*
name
,
const
char
*
ext
,
const
char
*
mode
);
#ifdef __GNUC__
void
do_usage
(
void
)
__attribute__
((
noreturn
));
void
do_usage
(
const
char
*
arg
)
__attribute__
((
noreturn
));
void
fatal
(
const
char
*
message
)
__attribute__
((
noreturn
));
#else
void
do_usage
(
void
);
void
do_usage
(
const
char
*
arg
);
void
fatal
(
const
char
*
message
);
#endif
...
...
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