Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
d9b114df
Commit
d9b114df
authored
24 years ago
by
Nathan Neulinger
Committed by
Alexandre Julliard
24 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Renamed struct option to avoid conflicts with getopt.h.
parent
e5348e27
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/winebuild/main.c
+4
-4
4 additions, 4 deletions
tools/winebuild/main.c
with
4 additions
and
4 deletions
tools/winebuild/main.c
+
4
−
4
View file @
d9b114df
...
...
@@ -76,7 +76,7 @@ static void cleanup(void)
* command-line option handling
*/
struct
option
struct
option
_descr
{
const
char
*
name
;
int
has_arg
;
...
...
@@ -93,7 +93,7 @@ static void do_relay(void);
static
void
do_sym
(
const
char
*
arg
);
static
void
do_lib
(
const
char
*
arg
);
static
const
struct
option
option_table
[]
=
static
const
struct
option
_descr
option_table
[]
=
{
{
"-fPIC"
,
0
,
do_pic
,
"-fPIC Generate PIC code"
},
{
"-h"
,
0
,
do_usage
,
"-h Display this help message"
},
...
...
@@ -129,7 +129,7 @@ static void do_output( const char *arg )
static
void
do_usage
(
void
)
{
const
struct
option
*
opt
;
const
struct
option
_descr
*
opt
;
fprintf
(
stderr
,
"Usage: winebuild [options]
\n\n
"
);
fprintf
(
stderr
,
"Options:
\n
"
);
for
(
opt
=
option_table
;
opt
->
name
;
opt
++
)
fprintf
(
stderr
,
" %s
\n
"
,
opt
->
usage
);
...
...
@@ -172,7 +172,7 @@ static void do_lib( const char *arg )
/* parse options from the argv array and remove all the recognized ones */
static
void
parse_options
(
char
*
argv
[]
)
{
const
struct
option
*
opt
;
const
struct
option
_descr
*
opt
;
char
*
const
*
ptr
;
const
char
*
arg
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment