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
d9b114df
Commit
d9b114df
authored
Jan 11, 2001
by
Nathan Neulinger
Committed by
Alexandre Julliard
Jan 11, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed struct option to avoid conflicts with getopt.h.
parent
e5348e27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
main.c
tools/winebuild/main.c
+4
-4
No files found.
tools/winebuild/main.c
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
;
...
...
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