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:
* Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <string.h>
#include <math.h>
/*#include <ml.h> */
#include <resample.h>
-#include <config.h>
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();
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|";
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" {'
#
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();
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|";
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" {'
#