Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c4668c0a
Commit
c4668c0a
authored
Jun 01, 2005
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport of [11219] to 0.8.2
parent
fe61a857
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
extras/zsh.cpp
extras/zsh.cpp
+8
-2
No files found.
extras/zsh.cpp
View file @
c4668c0a
/*****************************************************************************
/*****************************************************************************
* zsh.cpp: create zsh completion rule for vlc
* zsh.cpp: create zsh completion rule for vlc
*****************************************************************************
*****************************************************************************
* Copyright (C)
1998-
2005 VideoLAN
* Copyright (C) 2005 VideoLAN
* $Id$
* $Id$
*
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
...
@@ -197,6 +197,10 @@ void ParseOption( module_config_t *p_item, mmap &mods, mcmap &mods2 )
...
@@ -197,6 +197,10 @@ void ParseOption( module_config_t *p_item, mmap &mods, mcmap &mods2 )
char
*
psz_arguments
=
""
;
char
*
psz_arguments
=
""
;
char
*
psz_exclusive
;
char
*
psz_exclusive
;
char
*
psz_option
;
char
*
psz_option
;
//Skip deprecated options
if
(
p_item
->
psz_current
)
return
;
switch
(
p_item
->
i_type
)
switch
(
p_item
->
i_type
)
{
{
case
CONFIG_ITEM_MODULE
:
case
CONFIG_ITEM_MODULE
:
...
@@ -207,6 +211,7 @@ void ParseOption( module_config_t *p_item, mmap &mods, mcmap &mods2 )
...
@@ -207,6 +211,7 @@ void ParseOption( module_config_t *p_item, mmap &mods, mcmap &mods2 )
while
(
range
.
first
!=
range
.
second
)
while
(
range
.
first
!=
range
.
second
)
{
{
list
=
list
.
append
(
" "
);
list
=
list
.
append
(
" "
);
printf
(
"%s"
,
range
.
first
->
second
.
c_str
());
list
=
list
.
append
(
range
.
first
->
second
);
list
=
list
.
append
(
range
.
first
->
second
);
++
range
.
first
;
++
range
.
first
;
}
}
...
@@ -377,7 +382,8 @@ void PrintOption( char *psz_option, char i_short, char *psz_exclusive,
...
@@ -377,7 +382,8 @@ void PrintOption( char *psz_option, char i_short, char *psz_exclusive,
if
(
!
psz_longtext
||
if
(
!
psz_longtext
||
strchr
(
psz_longtext
,
'\n'
)
||
strchr
(
psz_longtext
,
'\n'
)
||
strchr
(
psz_longtext
,
'('
)
)
psz_longtext
=
psz_text
;
strchr
(
psz_longtext
,
'('
)
)
psz_longtext
=
psz_text
;
while
(
(
foo
=
strchr
(
psz_text
,
'"'
)))
*
foo
=
'\''
;
if
(
psz_text
)
while
(
(
foo
=
strchr
(
psz_text
,
'"'
)))
*
foo
=
'\''
;
if
(
i_short
)
if
(
i_short
)
{
{
if
(
!
psz_exclusive
)
psz_exclusive
=
""
;
if
(
!
psz_exclusive
)
psz_exclusive
=
""
;
...
...
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