Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d70e5122
Commit
d70e5122
authored
Jul 29, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmdutils: allow ':'-separated modifiers in option names.
parent
e6e6060c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
cmdutils.c
cmdutils.c
+4
-1
No files found.
cmdutils.c
View file @
d70e5122
...
@@ -141,8 +141,11 @@ void show_help_options(const OptionDef *options, const char *msg, int mask, int
...
@@ -141,8 +141,11 @@ void show_help_options(const OptionDef *options, const char *msg, int mask, int
}
}
static
const
OptionDef
*
find_option
(
const
OptionDef
*
po
,
const
char
*
name
){
static
const
OptionDef
*
find_option
(
const
OptionDef
*
po
,
const
char
*
name
){
const
char
*
p
=
strchr
(
name
,
':'
);
int
len
=
p
?
p
-
name
:
strlen
(
name
);
while
(
po
->
name
!=
NULL
)
{
while
(
po
->
name
!=
NULL
)
{
if
(
!
str
cmp
(
name
,
po
->
name
)
)
if
(
!
str
ncmp
(
name
,
po
->
name
,
len
)
&&
strlen
(
po
->
name
)
==
len
)
break
;
break
;
po
++
;
po
++
;
}
}
...
...
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