Make sure everybody wraps #include "config.h" in #ifdef HAVE_CONFIG_H
authorDavid Schleef <ds@schleef.org>
Mon, 12 Jan 2004 04:15:47 +0000 (04:15 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 12 Jan 2004 04:15:47 +0000 (04:15 +0000)
Original commit message from CVS:
* ext/ffmpeg/gstffmpeg.c:
* ext/ffmpeg/gstffmpegcodecmap.c:
* ext/ffmpeg/gstffmpegdec.c:
* ext/ffmpeg/gstffmpegenc.c:
* ext/ffmpeg/gstffmpegprotocol.c:
* ext/gdk_pixbuf/gstgdkanimation.c:
* ext/jpeg/gstjpeg.c:
* ext/libpng/gstpng.c:
* ext/mpeg2dec/perftest.c:
* ext/speex/gstspeex.c:
* gst-libs/gst/resample/dtos.c:
* gst/intfloat/gstintfloatconvert.c:
* gst/oneton/gstoneton.c:
* gst/rtjpeg/RTjpeg.c:
* gst/rtp/gstrtp.c:
* sys/dxr3/dxr3init.c:
* sys/glsink/gstgl_nvimage.c:
* sys/glsink/gstgl_pdrimage.c:
* sys/glsink/gstglsink.c:
* testsuite/gst-lint:
Make sure everybody wraps #include "config.h" in #ifdef HAVE_CONFIG_H

ChangeLog
gst-libs/gst/resample/dtos.c
tests/old/testsuite/gst-lint
testsuite/gst-lint

index 1457ec2..787cde8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,29 @@
 2004-01-11  David Schleef  <ds@schleef.org>
 
+       * ext/ffmpeg/gstffmpeg.c:
+       * ext/ffmpeg/gstffmpegcodecmap.c:
+       * ext/ffmpeg/gstffmpegdec.c:
+       * ext/ffmpeg/gstffmpegenc.c:
+       * ext/ffmpeg/gstffmpegprotocol.c:
+       * ext/gdk_pixbuf/gstgdkanimation.c:
+       * ext/jpeg/gstjpeg.c:
+       * ext/libpng/gstpng.c:
+       * ext/mpeg2dec/perftest.c:
+       * ext/speex/gstspeex.c:
+       * gst-libs/gst/resample/dtos.c:
+       * gst/intfloat/gstintfloatconvert.c:
+       * gst/oneton/gstoneton.c:
+       * gst/rtjpeg/RTjpeg.c:
+       * gst/rtp/gstrtp.c:
+       * sys/dxr3/dxr3init.c:
+       * sys/glsink/gstgl_nvimage.c:
+       * sys/glsink/gstgl_pdrimage.c:
+       * sys/glsink/gstglsink.c:
+       * testsuite/gst-lint:
+       Make sure everybody wraps #include "config.h" in #ifdef HAVE_CONFIG_H
+
+2004-01-11  David Schleef  <ds@schleef.org>
+
        * ext/alsa/gstalsasrc.c: (gst_alsa_src_set_caps):
        * ext/faac/gstfaac.c: (gst_faac_sinkconnect):
        * ext/gdk_pixbuf/gstgdkanimation.c:
index 7c0dead..268c401 100644 (file)
@@ -17,6 +17,9 @@
  * Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <string.h>
 #include <math.h>
@@ -25,7 +28,6 @@
 
 /*#include <ml.h> */
 #include <resample.h>
-#include <config.h>
 
 
 
index 097268d..95c9e1a 100755 (executable)
@@ -25,6 +25,7 @@ sub check_copyright();
 sub check_license();
 sub check_buffer_alloc();
 sub check_bad_includes();
+sub check_begin_decls();
 sub check_c99_comments();
 sub check_carriage_returns();
 sub check_printf_lld();
@@ -55,27 +56,34 @@ foreach $filename (<FIND>) {
 
        print "I: $filename\n";
 
+       # important stuff
+       check_bad_includes();
+       check_printf_lld();
+       check_gst_props_set();
+       check_deprecated();
+       check_config_h();
+       check_old_typefind();
+       check_old_plugin();
+       check_caps();
+
+       # less important stuff
+
+if (0) {
        check_copyright();
        check_license();
 
+    check_gnuc_const();
+       check_begin_decls();
        check_buffer_alloc();
-       check_bad_includes();
        check_c99_comments();
        check_carriage_returns();
-       check_printf_lld();
        check_glibisms();
        #check_indentation();
-       check_gst_props_set();
-       check_deprecated();
-       check_config_h();
        check_varargs_functions();
        check_debugging();
-       check_old_typefind();
        check_bad_casts();
-       check_old_plugin();
        check_signal_new();
-    check_gnuc_const();
-       check_caps();
+}
 }
 
 open FIND, "find . -name \"Makefile.am\" -print|";
@@ -148,7 +156,10 @@ sub check_bad_includes()
        if (grep { /^#include\s+<malloc.h>/; } @lines) {
                print "E: bad header: malloc.h\n"
        }
+}
 
+sub check_begin_decls()
+{
        #
        # Prefer "G_BEGIN_DECLS" to 'extern "C" {'
        #
index 097268d..95c9e1a 100755 (executable)
@@ -25,6 +25,7 @@ sub check_copyright();
 sub check_license();
 sub check_buffer_alloc();
 sub check_bad_includes();
+sub check_begin_decls();
 sub check_c99_comments();
 sub check_carriage_returns();
 sub check_printf_lld();
@@ -55,27 +56,34 @@ foreach $filename (<FIND>) {
 
        print "I: $filename\n";
 
+       # important stuff
+       check_bad_includes();
+       check_printf_lld();
+       check_gst_props_set();
+       check_deprecated();
+       check_config_h();
+       check_old_typefind();
+       check_old_plugin();
+       check_caps();
+
+       # less important stuff
+
+if (0) {
        check_copyright();
        check_license();
 
+    check_gnuc_const();
+       check_begin_decls();
        check_buffer_alloc();
-       check_bad_includes();
        check_c99_comments();
        check_carriage_returns();
-       check_printf_lld();
        check_glibisms();
        #check_indentation();
-       check_gst_props_set();
-       check_deprecated();
-       check_config_h();
        check_varargs_functions();
        check_debugging();
-       check_old_typefind();
        check_bad_casts();
-       check_old_plugin();
        check_signal_new();
-    check_gnuc_const();
-       check_caps();
+}
 }
 
 open FIND, "find . -name \"Makefile.am\" -print|";
@@ -148,7 +156,10 @@ sub check_bad_includes()
        if (grep { /^#include\s+<malloc.h>/; } @lines) {
                print "E: bad header: malloc.h\n"
        }
+}
 
+sub check_begin_decls()
+{
        #
        # Prefer "G_BEGIN_DECLS" to 'extern "C" {'
        #