diff options
author | David Schleef <ds@schleef.org> | 2004-01-12 04:15:47 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-01-12 04:15:47 +0000 |
commit | 926ce51a2821cccdc78caebdcbb5f93ede5d0696 (patch) | |
tree | 5f5691bec84f61417669e885762a164e8bd54be0 /tests | |
parent | 37d7aecdb6ae6fde29d30e463676729dac631604 (diff) | |
download | gstreamer-plugins-base-926ce51a2821cccdc78caebdcbb5f93ede5d0696.tar.gz |
Make sure everybody wraps #include "config.h" in #ifdef HAVE_CONFIG_H
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
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/old/testsuite/gst-lint | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/tests/old/testsuite/gst-lint b/tests/old/testsuite/gst-lint index 097268d41..95c9e1adb 100755 --- a/tests/old/testsuite/gst-lint +++ b/tests/old/testsuite/gst-lint @@ -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" {' # |