Commit c0a898e1 authored by Rafaël Carré's avatar Rafaël Carré

Include assert.h where assert() is used

parent cf2f0f1e
...@@ -56,6 +56,8 @@ ...@@ -56,6 +56,8 @@
#include <dvdread/nav_read.h> #include <dvdread/nav_read.h>
#include <dvdread/nav_print.h> #include <dvdread/nav_print.h>
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
......
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
# include <zlib.h> # include <zlib.h>
#endif #endif
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include <pulse/pulseaudio.h> #include <pulse/pulseaudio.h>
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* aout_sys_t: Pulseaudio output method descriptor * aout_sys_t: Pulseaudio output method descriptor
***************************************************************************** *****************************************************************************
......
...@@ -52,6 +52,8 @@ ...@@ -52,6 +52,8 @@
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Module descriptor. * Module descriptor.
*****************************************************************************/ *****************************************************************************/
......
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
#include <xlist.h> #include <xlist.h>
#include <assert.h>
#undef XTAG_DEBUG #undef XTAG_DEBUG
#undef FALSE #undef FALSE
......
...@@ -57,6 +57,8 @@ ...@@ -57,6 +57,8 @@
#include <math.h> #include <math.h>
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Local prototypes. * Local prototypes.
*****************************************************************************/ *****************************************************************************/
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include "http.h" #include "http.h"
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
#include "http.h" #include "http.h"
#include <limits.h> #include <limits.h>
#include <assert.h>
/* Utility function for scandir */ /* Utility function for scandir */
static int Filter( const char *foo ) static int Filter( const char *foo )
{ {
......
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include <vlc_charset.h> #include <vlc_charset.h>
#include <limits.h> #include <limits.h>
#include <assert.h>
#define TEMPO_MIN 20 #define TEMPO_MIN 20
#define TEMPO_MAX 250 /* Beats per minute */ #define TEMPO_MAX 250 /* Beats per minute */
......
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
#include "vlc_input.h" #include "vlc_input.h"
#include "../codec/cc.h" #include "../codec/cc.h"
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
......
...@@ -57,6 +57,8 @@ ...@@ -57,6 +57,8 @@
#include <vlc_playlist.h> #include <vlc_playlist.h>
#include <vlc_meta.h> #include <vlc_meta.h>
#include <assert.h>
#ifdef HAVE_SYS_STAT_H #ifdef HAVE_SYS_STAT_H
# include <sys/stat.h> # include <sys/stat.h>
#endif #endif
......
...@@ -49,6 +49,7 @@ woven in by Terry Thorsen 1/2003. ...@@ -49,6 +49,7 @@ woven in by Terry Thorsen 1/2003.
# include <errno.h> # include <errno.h>
#endif #endif
#include <assert.h>
#ifndef local #ifndef local
# define local static # define local static
......
...@@ -38,6 +38,8 @@ ...@@ -38,6 +38,8 @@
#include "musicbrainz/mb_c.h" #include "musicbrainz/mb_c.h"
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
......
...@@ -73,6 +73,8 @@ ...@@ -73,6 +73,8 @@
#include <fontconfig/fontconfig.h> #include <fontconfig/fontconfig.h>
#endif #endif
#include <assert.h>
typedef struct line_desc_t line_desc_t; typedef struct line_desc_t line_desc_t;
/***************************************************************************** /*****************************************************************************
......
...@@ -65,6 +65,8 @@ ...@@ -65,6 +65,8 @@
#include "dhparams.h" #include "dhparams.h"
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
#include <errno.h> /* ENOMEM */ #include <errno.h> /* ENOMEM */
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
......
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#include <vlc_charset.h> #include <vlc_charset.h>
#include "xspf.h" #include "xspf.h"
#include <assert.h>
/** /**
* \brief Prints the XSPF header to file, writes each item by xspf_export_item() * \brief Prints the XSPF header to file, writes each item by xspf_export_item()
* and closes the open xml elements * and closes the open xml elements
......
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#include <ctype.h> #include <ctype.h>
#include <stdarg.h> #include <stdarg.h>
#include <assert.h>
#undef XTAG_DEBUG #undef XTAG_DEBUG
typedef struct _XList typedef struct _XList
......
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
#include "vlc_block_helper.h" #include "vlc_block_helper.h"
#include <assert.h>
/* AAC Config in ES: /* AAC Config in ES:
* *
* AudioObjectType 5 bits * AudioObjectType 5 bits
......
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include <vlc_block.h> #include <vlc_block.h>
#include <vlc_sout.h> #include <vlc_sout.h>
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Exported prototypes * Exported prototypes
*****************************************************************************/ *****************************************************************************/
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include <vlc_sout.h> #include <vlc_sout.h>
#include "rtp.h" #include "rtp.h"
#include <assert.h>
/* /*
* NOTE on RTCP implementation: * NOTE on RTCP implementation:
* - there is a single sender (us), no conferencing here! => n = sender = 1, * - there is a single sender (us), no conferencing here! => n = sender = 1,
......
...@@ -61,6 +61,8 @@ ...@@ -61,6 +61,8 @@
#include <errno.h> #include <errno.h>
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
......
...@@ -45,6 +45,8 @@ ...@@ -45,6 +45,8 @@
#define MASTER_SYNC_MAX_DRIFT 100000 #define MASTER_SYNC_MAX_DRIFT 100000
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* Module descriptor * Module descriptor
*****************************************************************************/ *****************************************************************************/
......
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
#include "configuration.h" #include "configuration.h"
#include "modules/modules.h" #include "modules/modules.h"
#include <assert.h>
/***************************************************************************** /*****************************************************************************
* config_LoadCmdLine: parse command line * config_LoadCmdLine: parse command line
***************************************************************************** *****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment