Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
1b09c02c
Commit
1b09c02c
authored
Jan 24, 2008
by
Rémi Denis-Courmont
Browse files
Include assert.h when needed
parent
15e4046f
Changes
15
Hide whitespace changes
Inline
Side-by-side
include/vlc_common.h
View file @
1b09c02c
...
...
@@ -53,7 +53,6 @@
*****************************************************************************/
#include
<stdlib.h>
#include
<stdarg.h>
#include
<assert.h>
#include
<string.h>
#include
<stdio.h>
...
...
@@ -599,6 +598,8 @@ struct gc_object_t
VLC_GC_MEMBERS
};
#include
<assert.h>
/* FIXME: should not be included here */
static
inline
void
__vlc_gc_incref
(
gc_object_t
*
p_gc
)
{
assert
(
p_gc
->
i_gc_refcount
>
0
);
...
...
include/vlc_services_discovery.h
View file @
1b09c02c
...
...
@@ -36,11 +36,8 @@ extern "C" {
* @{
*/
#include
<assert.h>
#include
<vlc_input.h>
#include
<vlc_events.h>
#include
<stdio.h>
#include
<stdlib.h>
struct
services_discovery_t
{
...
...
src/config/core.c
View file @
1b09c02c
...
...
@@ -31,10 +31,8 @@
#include
"vlc_charset.h"
#include
<errno.h>
/* errno */
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include
<assert.h>
#include
<limits.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
/* getuid() */
...
...
src/config/file.c
View file @
1b09c02c
...
...
@@ -32,6 +32,7 @@
#include
<errno.h>
/* errno */
#include
<stdbool.h>
#include
<assert.h>
#ifdef HAVE_LIMITS_H
# include <limits.h>
...
...
src/config/intf.c
View file @
1b09c02c
...
...
@@ -31,10 +31,8 @@
#include
"vlc_charset.h"
#include
<errno.h>
/* errno */
#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
#include
<assert.h>
#include
<limits.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
/* getuid() */
...
...
src/input/decoder.c
View file @
1b09c02c
...
...
@@ -29,6 +29,7 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include
<assert.h>
#include
<vlc/vlc.h>
...
...
src/input/input.c
View file @
1b09c02c
...
...
@@ -33,6 +33,7 @@
#include
<ctype.h>
#include
<limits.h>
#include
<assert.h>
#include
"input_internal.h"
...
...
src/input/item.c
View file @
1b09c02c
...
...
@@ -24,6 +24,7 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include
<assert.h>
#include
<vlc/vlc.h>
#include
"vlc_playlist.h"
...
...
src/input/meta.c
View file @
1b09c02c
...
...
@@ -36,6 +36,7 @@
#include
"../playlist/playlist_internal.h"
#include
<errno.h>
#include
<limits.h>
/* PATH_MAX */
#include
<assert.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
...
...
src/misc/objects.c
View file @
1b09c02c
...
...
@@ -70,6 +70,7 @@
# include <fcntl.h>
# include <errno.h>
/* ENOSYS */
#endif
#include
<assert.h>
/*****************************************************************************
* Local prototypes
...
...
src/modules/modules.c
View file @
1b09c02c
...
...
@@ -40,6 +40,7 @@
#include
<stdlib.h>
/* free(), strtol() */
#include
<stdio.h>
/* sprintf() */
#include
<string.h>
/* strdup() */
#include
<assert.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
...
...
src/network/tcp.c
View file @
1b09c02c
...
...
@@ -33,6 +33,7 @@
#include
<vlc/vlc.h>
#include
<errno.h>
#include
<assert.h>
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
...
...
src/playlist/search.c
View file @
1b09c02c
...
...
@@ -23,6 +23,7 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include
<assert.h>
#include
<vlc/vlc.h>
#include
"vlc_playlist.h"
...
...
src/playlist/services_discovery.c
View file @
1b09c02c
...
...
@@ -23,6 +23,7 @@
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include
<assert.h>
#include
<vlc/vlc.h>
#include
"vlc_playlist.h"
...
...
src/stream_output/sap.c
View file @
1b09c02c
...
...
@@ -36,6 +36,7 @@
#include
<stdio.h>
/* sprintf() */
#include
<string.h>
#include
<ctype.h>
/* tolower(), isxdigit() */
#include
<assert.h>
#include
<vlc_sout.h>
#include
<vlc_network.h>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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