Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8fb9c70f
Commit
8fb9c70f
authored
Nov 24, 2009
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config_ChainCreate() : use SKIPSPACE macro
parent
ea4b6069
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/config/chain.c
src/config/chain.c
+6
-6
No files found.
src/config/chain.c
View file @
8fb9c70f
...
...
@@ -186,7 +186,7 @@ char *config_ChainCreate( char **ppsz_name, config_chain_t **pp_cfg,
if
(
!
psz_chain
)
return
NULL
;
psz_chain
+=
strspn
(
psz_chain
,
"
\t
"
);
SKIPSPACE
(
psz_chain
);
/* Look for parameter (a {...} or :...) or end of name (space or nul) */
len
=
strcspn
(
psz_chain
,
"{:
\t
"
);
...
...
@@ -194,14 +194,14 @@ char *config_ChainCreate( char **ppsz_name, config_chain_t **pp_cfg,
psz_chain
+=
len
;
/* Parse the parameters */
psz_chain
+=
strspn
(
psz_chain
,
"
\t
"
);
SKIPSPACE
(
psz_chain
);
if
(
*
psz_chain
==
'{'
)
{
/* Parse all name=value[,] elements */
do
{
psz_chain
++
;
/* skip previous delimiter */
psz_chain
+=
strspn
(
psz_chain
,
"
\t
"
);
SKIPSPACE
(
psz_chain
);
/* Look for the end of the name (,={}_space_) */
len
=
strcspn
(
psz_chain
,
"=,{}
\t
"
);
...
...
@@ -221,17 +221,17 @@ char *config_ChainCreate( char **ppsz_name, config_chain_t **pp_cfg,
pp_next
=
&
p_cfg
->
p_next
;
/* Extract the option value */
psz_chain
+=
strspn
(
psz_chain
,
"
\t
"
);
SKIPSPACE
(
psz_chain
);
if
(
strchr
(
"={"
,
*
psz_chain
)
)
{
p_cfg
->
psz_value
=
ChainGetValue
(
&
psz_chain
);
psz_chain
+=
strspn
(
psz_chain
,
"
\t
"
);
SKIPSPACE
(
psz_chain
);
}
}
while
(
!
memchr
(
"}"
,
*
psz_chain
,
2
)
);
if
(
*
psz_chain
)
psz_chain
++
;
/* skip '}' */
;
psz_chain
+=
strspn
(
psz_chain
,
"
\t
"
);
SKIPSPACE
(
psz_chain
);
}
if
(
*
psz_chain
==
':'
)
...
...
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