Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
88c2bad6
Commit
88c2bad6
authored
Mar 29, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getopt: posixly_correct need not be static
parent
69cd8267
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
src/config/getopt.c
src/config/getopt.c
+3
-14
No files found.
src/config/getopt.c
View file @
88c2bad6
...
@@ -116,9 +116,6 @@ static enum
...
@@ -116,9 +116,6 @@ static enum
}
}
ordering
;
ordering
;
/* Value of POSIXLY_CORRECT environment variable. */
static
char
*
posixly_correct
;
/* Handle permutation of arguments. */
/* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have
/* Describe the part of ARGV that contains non-options that have
...
@@ -197,16 +194,8 @@ static void
...
@@ -197,16 +194,8 @@ static void
/* Initialize the internal data when the first call is made. */
/* Initialize the internal data when the first call is made. */
static
const
char
*
vlc_getopt_initialize
(
int
,
char
*
const
*
,
const
char
*
);
static
const
char
*
vlc_getopt_initialize
(
const
char
*
optstring
)
static
const
char
*
vlc_getopt_initialize
(
argc
,
argv
,
optstring
)
int
argc
;
char
*
const
*
argv
;
const
char
*
optstring
;
{
{
(
void
)
argc
;
(
void
)
argv
;
/* Start processing options with ARGV-element 1 (since ARGV-element 0
/* Start processing options with ARGV-element 1 (since ARGV-element 0
is the program name); the sequence of previously skipped
is the program name); the sequence of previously skipped
non-option ARGV-elements is empty. */
non-option ARGV-elements is empty. */
...
@@ -215,7 +204,7 @@ static const char *
...
@@ -215,7 +204,7 @@ static const char *
nextchar
=
NULL
;
nextchar
=
NULL
;
posixly_correct
=
getenv
(
"POSIXLY_CORRECT"
);
const
char
*
posixly_correct
=
getenv
(
"POSIXLY_CORRECT"
);
/* Determine how to handle the ordering of options and nonoptions. */
/* Determine how to handle the ordering of options and nonoptions. */
...
@@ -299,7 +288,7 @@ int
...
@@ -299,7 +288,7 @@ int
if
(
vlc_optind
==
0
)
if
(
vlc_optind
==
0
)
{
{
optstring
=
vlc_getopt_initialize
(
argc
,
argv
,
optstring
);
optstring
=
vlc_getopt_initialize
(
optstring
);
vlc_optind
=
1
;
/* Don't scan ARGV[0], the program name. */
vlc_optind
=
1
;
/* Don't scan ARGV[0], the program name. */
}
}
...
...
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