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
ca43a641
Commit
ca43a641
authored
Jan 10, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed all traces of the --config option.
parent
3f3e8d29
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
15 deletions
+5
-15
options.h
include/options.h
+0
-1
options.c
misc/options.c
+5
-14
No files found.
include/options.h
View file @
ca43a641
...
@@ -16,7 +16,6 @@ struct options
...
@@ -16,7 +16,6 @@ struct options
char
*
dllFlags
;
/* -dll flags (hack for Winelib support) */
char
*
dllFlags
;
/* -dll flags (hack for Winelib support) */
int
synchronous
;
/* X synchronous mode */
int
synchronous
;
/* X synchronous mode */
int
managed
;
/* Managed windows */
int
managed
;
/* Managed windows */
char
*
configFileName
;
/* Command line config file */
};
};
extern
struct
options
Options
;
extern
struct
options
Options
;
...
...
misc/options.c
View file @
ca43a641
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#include "version.h"
#include "version.h"
#include "debugtools.h"
#include "debugtools.h"
struct
option
struct
option
_descr
{
{
const
char
*
longname
;
const
char
*
longname
;
char
shortname
;
char
shortname
;
...
@@ -33,8 +33,7 @@ struct options Options =
...
@@ -33,8 +33,7 @@ struct options Options =
NULL
,
/* display */
NULL
,
/* display */
NULL
,
/* dllFlags */
NULL
,
/* dllFlags */
FALSE
,
/* synchronous */
FALSE
,
/* synchronous */
FALSE
,
/* Managed windows */
FALSE
/* Managed windows */
NULL
/* Alternate config file name */
};
};
const
char
*
argv0
;
/* the original argv[0] */
const
char
*
argv0
;
/* the original argv[0] */
...
@@ -60,7 +59,6 @@ static char *xstrdup( const char *str )
...
@@ -60,7 +59,6 @@ static char *xstrdup( const char *str )
return
ret
;
return
ret
;
}
}
static
void
do_config
(
const
char
*
arg
);
static
void
do_debugmsg
(
const
char
*
arg
);
static
void
do_debugmsg
(
const
char
*
arg
);
static
void
do_desktop
(
const
char
*
arg
);
static
void
do_desktop
(
const
char
*
arg
);
static
void
do_display
(
const
char
*
arg
);
static
void
do_display
(
const
char
*
arg
);
...
@@ -71,10 +69,8 @@ static void do_managed( const char *arg );
...
@@ -71,10 +69,8 @@ static void do_managed( const char *arg );
static
void
do_synchronous
(
const
char
*
arg
);
static
void
do_synchronous
(
const
char
*
arg
);
static
void
do_version
(
const
char
*
arg
);
static
void
do_version
(
const
char
*
arg
);
static
const
struct
option
option_table
[]
=
static
const
struct
option
_descr
option_table
[]
=
{
{
{
"config"
,
0
,
1
,
0
,
do_config
,
"--config name Specify config file to use"
},
{
"debugmsg"
,
0
,
1
,
1
,
do_debugmsg
,
{
"debugmsg"
,
0
,
1
,
1
,
do_debugmsg
,
"--debugmsg name Turn debugging-messages on or off"
},
"--debugmsg name Turn debugging-messages on or off"
},
{
"desktop"
,
0
,
1
,
1
,
do_desktop
,
{
"desktop"
,
0
,
1
,
1
,
do_desktop
,
...
@@ -155,11 +151,6 @@ static void do_managed( const char *arg )
...
@@ -155,11 +151,6 @@ static void do_managed( const char *arg )
Options
.
managed
=
TRUE
;
Options
.
managed
=
TRUE
;
}
}
static
void
do_config
(
const
char
*
arg
)
{
Options
.
configFileName
=
xstrdup
(
arg
);
}
static
void
do_debugmsg
(
const
char
*
arg
)
static
void
do_debugmsg
(
const
char
*
arg
)
{
{
static
const
char
*
const
debug_class_names
[
__DBCL_COUNT
]
=
{
"fixme"
,
"err"
,
"warn"
,
"trace"
};
static
const
char
*
const
debug_class_names
[
__DBCL_COUNT
]
=
{
"fixme"
,
"err"
,
"warn"
,
"trace"
};
...
@@ -292,7 +283,7 @@ static void remove_options( char *argv[], int pos, int count, int inherit )
...
@@ -292,7 +283,7 @@ static void remove_options( char *argv[], int pos, int count, int inherit )
/* parse options from the argv array and remove all the recognized ones */
/* parse options from the argv array and remove all the recognized ones */
static
void
parse_options
(
char
*
argv
[]
)
static
void
parse_options
(
char
*
argv
[]
)
{
{
const
struct
option
*
opt
;
const
struct
option
_descr
*
opt
;
int
i
;
int
i
;
for
(
i
=
0
;
argv
[
i
];
i
++
)
for
(
i
=
0
;
argv
[
i
];
i
++
)
...
@@ -371,7 +362,7 @@ static void inherit_options( char *buffer )
...
@@ -371,7 +362,7 @@ static void inherit_options( char *buffer )
*/
*/
void
OPTIONS_Usage
(
void
)
void
OPTIONS_Usage
(
void
)
{
{
const
struct
option
*
opt
;
const
struct
option
_descr
*
opt
;
MESSAGE
(
"Usage: %s [options] [--] program_name [arguments]
\n
"
,
argv0
);
MESSAGE
(
"Usage: %s [options] [--] program_name [arguments]
\n
"
,
argv0
);
MESSAGE
(
"The -- has to be used if you specify arguments (of the program)
\n\n
"
);
MESSAGE
(
"The -- has to be used if you specify arguments (of the program)
\n\n
"
);
MESSAGE
(
"Options:
\n
"
);
MESSAGE
(
"Options:
\n
"
);
...
...
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