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
4dafef96
Commit
4dafef96
authored
Jan 06, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
objects: use fputs/fputc if there is nothing to format
parent
19adcbe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/misc/objects.c
src/misc/objects.c
+6
-6
No files found.
src/misc/objects.c
View file @
4dafef96
...
...
@@ -797,11 +797,11 @@ static void DumpVariable (const void *data, const VISIT which, const int depth)
printf
(
" *-o
\"
%s
\"
(%s"
,
p_var
->
psz_name
,
psz_type
);
if
(
p_var
->
psz_text
)
printf
(
", %s"
,
p_var
->
psz_text
);
printf
(
")"
);
fputc
(
')'
,
stdout
);
if
(
p_var
->
i_type
&
VLC_VAR_HASCHOICE
)
printf
(
", has choices"
);
fputs
(
", has choices"
,
stdout
);
if
(
p_var
->
i_type
&
VLC_VAR_ISCOMMAND
)
printf
(
", command"
);
fputs
(
", command"
,
stdout
);
if
(
p_var
->
i_entries
)
printf
(
", %d callbacks"
,
p_var
->
i_entries
);
switch
(
p_var
->
i_type
&
VLC_VAR_CLASS
)
...
...
@@ -828,10 +828,10 @@ static void DumpVariable (const void *data, const VISIT which, const int depth)
printf
(
": %p"
,
p_var
->
val
.
p_address
);
break
;
case
VLC_VAR_LIST
:
printf
(
": TODO"
);
fputs
(
": TODO"
,
stdout
);
break
;
}
printf
(
"
\n
"
);
fputc
(
'\n'
,
stdout
);
}
/*****************************************************************************
...
...
@@ -877,7 +877,7 @@ static int DumpCommand( vlc_object_t *p_this, char const *psz_cmd,
PrintObject
(
p_object
,
""
);
vlc_mutex_lock
(
&
vlc_internals
(
p_object
)
->
var_lock
);
if
(
vlc_internals
(
p_object
)
->
var_root
==
NULL
)
p
rintf
(
" `-o No variables
\n
"
);
p
uts
(
" `-o No variables
"
);
else
twalk
(
vlc_internals
(
p_object
)
->
var_root
,
DumpVariable
);
vlc_mutex_unlock
(
&
vlc_internals
(
p_object
)
->
var_lock
);
...
...
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