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
4ea41ad2
Commit
4ea41ad2
authored
Feb 13, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics
parent
428762fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/misc/variables.c
src/misc/variables.c
+11
-2
No files found.
src/misc/variables.c
View file @
4ea41ad2
...
...
@@ -49,12 +49,21 @@ struct callback_entry_t
/*****************************************************************************
* Local comparison functions, returns 0 if v == w, < 0 if v < w, > 0 if v > w
*****************************************************************************/
static
int
CmpBool
(
vlc_value_t
v
,
vlc_value_t
w
)
{
return
v
.
b_bool
?
w
.
b_bool
?
0
:
1
:
w
.
b_bool
?
-
1
:
0
;
}
static
int
CmpInt
(
vlc_value_t
v
,
vlc_value_t
w
)
{
return
v
.
i_int
==
w
.
i_int
?
0
:
v
.
i_int
>
w
.
i_int
?
1
:
-
1
;
}
static
int
CmpBool
(
vlc_value_t
v
,
vlc_value_t
w
)
{
return
v
.
b_bool
?
w
.
b_bool
?
0
:
1
:
w
.
b_bool
?
-
1
:
0
;
}
static
int
CmpInt
(
vlc_value_t
v
,
vlc_value_t
w
)
{
return
v
.
i_int
==
w
.
i_int
?
0
:
v
.
i_int
>
w
.
i_int
?
1
:
-
1
;
}
static
int
CmpTime
(
vlc_value_t
v
,
vlc_value_t
w
)
{
return
v
.
i_time
==
w
.
i_time
?
0
:
v
.
i_time
>
w
.
i_time
?
1
:
-
1
;
}
static
int
CmpString
(
vlc_value_t
v
,
vlc_value_t
w
)
{
if
(
!
v
.
psz_string
)
...
...
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