[vlc-devel] commit: Include assert.h where assert() is used ( Rafaël Carré )

git version control git at videolan.org
Mon May 26 18:44:32 CEST 2008


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon May 26 18:41:19 2008 +0200| [c0a898e18e7fce541be58980f09ca199b736dc1c]

Include assert.h where assert() is used

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c0a898e18e7fce541be58980f09ca199b736dc1c
---

 modules/access/dvdread.c          |    2 ++
 modules/access/http.c             |    2 ++
 modules/audio_output/pulse.c      |    2 ++
 modules/codec/cc.c                |    2 ++
 modules/codec/cmml/xtag.c         |    2 ++
 modules/control/dbus.c            |    2 ++
 modules/control/http/http.c       |    2 ++
 modules/control/http/mvar.c       |    2 ++
 modules/demux/smf.c               |    2 ++
 modules/demux/ty.c                |    2 ++
 modules/gui/ncurses.c             |    2 ++
 modules/gui/skins2/unzip/unzip.c  |    1 +
 modules/meta_engine/musicbrainz.c |    2 ++
 modules/misc/freetype.c           |    2 ++
 modules/misc/gnutls.c             |    2 ++
 modules/misc/playlist/m3u.c       |    2 ++
 modules/misc/playlist/xspf.c      |    2 ++
 modules/misc/xml/xtag.c           |    2 ++
 modules/packetizer/mpeg4audio.c   |    2 ++
 modules/stream_out/description.c  |    2 ++
 modules/stream_out/rtcp.c         |    2 ++
 modules/stream_out/rtp.c          |    2 ++
 modules/stream_out/transcode.c    |    2 ++
 src/config/cmdline.c              |    2 ++
 24 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/modules/access/dvdread.c b/modules/access/dvdread.c
index 11e2a94..dc7d939 100644
--- a/modules/access/dvdread.c
+++ b/modules/access/dvdread.c
@@ -56,6 +56,8 @@
 #include <dvdread/nav_read.h>
 #include <dvdread/nav_print.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
diff --git a/modules/access/http.c b/modules/access/http.c
index 4a1e784..9b28a23 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -50,6 +50,8 @@
 #   include <zlib.h>
 #endif
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 3f2dc94..8dc7a20 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -34,6 +34,8 @@
 
 #include <pulse/pulseaudio.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * aout_sys_t: Pulseaudio output method descriptor
  *****************************************************************************
diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index 5669c29..337ccad 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -52,6 +52,8 @@
 #include <errno.h>
 #include <string.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor.
  *****************************************************************************/
diff --git a/modules/codec/cmml/xtag.c b/modules/codec/cmml/xtag.c
index 812e280..a7e3b97 100644
--- a/modules/codec/cmml/xtag.c
+++ b/modules/codec/cmml/xtag.c
@@ -36,6 +36,8 @@
 
 #include <xlist.h>
 
+#include <assert.h>
+
 #undef XTAG_DEBUG
 
 #undef FALSE
diff --git a/modules/control/dbus.c b/modules/control/dbus.c
index 15b950a..a69e126 100644
--- a/modules/control/dbus.c
+++ b/modules/control/dbus.c
@@ -57,6 +57,8 @@
 
 #include <math.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Local prototypes.
  *****************************************************************************/
diff --git a/modules/control/http/http.c b/modules/control/http/http.c
index 877c0e7..9aab704 100644
--- a/modules/control/http/http.c
+++ b/modules/control/http/http.c
@@ -29,6 +29,8 @@
 #include "http.h"
 #include <vlc_plugin.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
diff --git a/modules/control/http/mvar.c b/modules/control/http/mvar.c
index 143d386..ae65581 100644
--- a/modules/control/http/mvar.c
+++ b/modules/control/http/mvar.c
@@ -29,6 +29,8 @@
 #include "http.h"
 #include <limits.h>
 
+#include <assert.h>
+
 /* Utility function for scandir */
 static int Filter( const char *foo )
 {
diff --git a/modules/demux/smf.c b/modules/demux/smf.c
index 7ff632f..dbf6884 100644
--- a/modules/demux/smf.c
+++ b/modules/demux/smf.c
@@ -31,6 +31,8 @@
 #include <vlc_charset.h>
 #include <limits.h>
 
+#include <assert.h>
+
 #define TEMPO_MIN  20
 #define TEMPO_MAX 250 /* Beats per minute */
 
diff --git a/modules/demux/ty.c b/modules/demux/ty.c
index c30b601..af62029 100644
--- a/modules/demux/ty.c
+++ b/modules/demux/ty.c
@@ -47,6 +47,8 @@
 #include "vlc_input.h"
 #include "../codec/cc.h"
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 75696d8..e279296 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -57,6 +57,8 @@
 #include <vlc_playlist.h>
 #include <vlc_meta.h>
 
+#include <assert.h>
+
 #ifdef HAVE_SYS_STAT_H
 #   include <sys/stat.h>
 #endif
diff --git a/modules/gui/skins2/unzip/unzip.c b/modules/gui/skins2/unzip/unzip.c
index cdb2efd..72f2dff 100644
--- a/modules/gui/skins2/unzip/unzip.c
+++ b/modules/gui/skins2/unzip/unzip.c
@@ -49,6 +49,7 @@ woven in by Terry Thorsen 1/2003.
 #   include <errno.h>
 #endif
 
+#include <assert.h>
 
 #ifndef local
 #  define local static
diff --git a/modules/meta_engine/musicbrainz.c b/modules/meta_engine/musicbrainz.c
index 9f5d8ef..257c2a6 100644
--- a/modules/meta_engine/musicbrainz.c
+++ b/modules/meta_engine/musicbrainz.c
@@ -38,6 +38,8 @@
 
 #include "musicbrainz/mb_c.h"
 
+#include <assert.h>
+
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 218337e..f90ac48 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -73,6 +73,8 @@
 #include <fontconfig/fontconfig.h>
 #endif
 
+#include <assert.h>
+
 typedef struct line_desc_t line_desc_t;
 
 /*****************************************************************************
diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 629d470..465a13e 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -65,6 +65,8 @@
 
 #include "dhparams.h"
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
diff --git a/modules/misc/playlist/m3u.c b/modules/misc/playlist/m3u.c
index 532cfd7..05b6b21 100644
--- a/modules/misc/playlist/m3u.c
+++ b/modules/misc/playlist/m3u.c
@@ -37,6 +37,8 @@
 
 #include <errno.h>                                                 /* ENOMEM */
 
+#include <assert.h>
+
 /*****************************************************************************
  * Local prototypes
  *****************************************************************************/
diff --git a/modules/misc/playlist/xspf.c b/modules/misc/playlist/xspf.c
index e2a7886..d854de2 100644
--- a/modules/misc/playlist/xspf.c
+++ b/modules/misc/playlist/xspf.c
@@ -40,6 +40,8 @@
 #include <vlc_charset.h>
 #include "xspf.h"
 
+#include <assert.h>
+
 /**
  * \brief Prints the XSPF header to file, writes each item by xspf_export_item()
  * and closes the open xml elements
diff --git a/modules/misc/xml/xtag.c b/modules/misc/xml/xtag.c
index e1a06b9..ef33b2a 100644
--- a/modules/misc/xml/xtag.c
+++ b/modules/misc/xml/xtag.c
@@ -40,6 +40,8 @@
 #include <ctype.h>
 #include <stdarg.h>
 
+#include <assert.h>
+
 #undef XTAG_DEBUG
 
 typedef struct _XList
diff --git a/modules/packetizer/mpeg4audio.c b/modules/packetizer/mpeg4audio.c
index 304be30..c9b16d7 100644
--- a/modules/packetizer/mpeg4audio.c
+++ b/modules/packetizer/mpeg4audio.c
@@ -42,6 +42,8 @@
 
 #include "vlc_block_helper.h"
 
+#include <assert.h>
+
 /* AAC Config in ES:
  *
  * AudioObjectType          5 bits
diff --git a/modules/stream_out/description.c b/modules/stream_out/description.c
index 288567d..9357347 100644
--- a/modules/stream_out/description.c
+++ b/modules/stream_out/description.c
@@ -35,6 +35,8 @@
 #include <vlc_block.h>
 #include <vlc_sout.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Exported prototypes
  *****************************************************************************/
diff --git a/modules/stream_out/rtcp.c b/modules/stream_out/rtcp.c
index 1bc580a..8458f77 100644
--- a/modules/stream_out/rtcp.c
+++ b/modules/stream_out/rtcp.c
@@ -34,6 +34,8 @@
 #include <vlc_sout.h>
 #include "rtp.h"
 
+#include <assert.h>
+
 /*
  * NOTE on RTCP implementation:
  * - there is a single sender (us), no conferencing here! => n = sender = 1,
diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index d8dcc1c..1cd6ee5 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -61,6 +61,8 @@
 
 #include <errno.h>
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
diff --git a/modules/stream_out/transcode.c b/modules/stream_out/transcode.c
index ccedc51..60d721f 100644
--- a/modules/stream_out/transcode.c
+++ b/modules/stream_out/transcode.c
@@ -45,6 +45,8 @@
 
 #define MASTER_SYNC_MAX_DRIFT 100000
 
+#include <assert.h>
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
diff --git a/src/config/cmdline.c b/src/config/cmdline.c
index acb96b3..bf665df 100644
--- a/src/config/cmdline.c
+++ b/src/config/cmdline.c
@@ -40,6 +40,8 @@
 #include "configuration.h"
 #include "modules/modules.h"
 
+#include <assert.h>
+
 /*****************************************************************************
  * config_LoadCmdLine: parse command line
  *****************************************************************************




More information about the vlc-devel mailing list