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
Yoann Laissus
wine
Commits
ca43a641
Commit
ca43a641
authored
24 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
Removed all traces of the --config option.
parent
3f3e8d29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/options.h
+0
-1
0 additions, 1 deletion
include/options.h
misc/options.c
+5
-14
5 additions, 14 deletions
misc/options.c
with
5 additions
and
15 deletions
include/options.h
+
0
−
1
View file @
ca43a641
...
...
@@ -16,7 +16,6 @@ struct options
char
*
dllFlags
;
/* -dll flags (hack for Winelib support) */
int
synchronous
;
/* X synchronous mode */
int
managed
;
/* Managed windows */
char
*
configFileName
;
/* Command line config file */
};
extern
struct
options
Options
;
...
...
This diff is collapsed.
Click to expand it.
misc/options.c
+
5
−
14
View file @
ca43a641
...
...
@@ -16,7 +16,7 @@
#include
"version.h"
#include
"debugtools.h"
struct
option
struct
option
_descr
{
const
char
*
longname
;
char
shortname
;
...
...
@@ -33,8 +33,7 @@ struct options Options =
NULL
,
/* display */
NULL
,
/* dllFlags */
FALSE
,
/* synchronous */
FALSE
,
/* Managed windows */
NULL
/* Alternate config file name */
FALSE
/* Managed windows */
};
const
char
*
argv0
;
/* the original argv[0] */
...
...
@@ -60,7 +59,6 @@ static char *xstrdup( const char *str )
return
ret
;
}
static
void
do_config
(
const
char
*
arg
);
static
void
do_debugmsg
(
const
char
*
arg
);
static
void
do_desktop
(
const
char
*
arg
);
static
void
do_display
(
const
char
*
arg
);
...
...
@@ -71,10 +69,8 @@ static void do_managed( const char *arg );
static
void
do_synchronous
(
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 name Turn debugging-messages on or off"
},
{
"desktop"
,
0
,
1
,
1
,
do_desktop
,
...
...
@@ -155,11 +151,6 @@ static void do_managed( const char *arg )
Options
.
managed
=
TRUE
;
}
static
void
do_config
(
const
char
*
arg
)
{
Options
.
configFileName
=
xstrdup
(
arg
);
}
static
void
do_debugmsg
(
const
char
*
arg
)
{
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 )
/* 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
;
int
i
;
for
(
i
=
0
;
argv
[
i
];
i
++
)
...
...
@@ -371,7 +362,7 @@ static void inherit_options( char *buffer )
*/
void
OPTIONS_Usage
(
void
)
{
const
struct
option
*
opt
;
const
struct
option
_descr
*
opt
;
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
(
"Options:
\n
"
);
...
...
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