mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
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
This commit is contained in:
parent
37d7aecdb6
commit
926ce51a28
4 changed files with 73 additions and 25 deletions
24
ChangeLog
24
ChangeLog
|
@ -1,3 +1,27 @@
|
||||||
|
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>
|
2004-01-11 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* ext/alsa/gstalsasrc.c: (gst_alsa_src_set_caps):
|
* ext/alsa/gstalsasrc.c: (gst_alsa_src_set_caps):
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
* Boston, MA 02111-1307, USA.
|
* Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
@ -25,7 +28,6 @@
|
||||||
|
|
||||||
/*#include <ml.h> */
|
/*#include <ml.h> */
|
||||||
#include <resample.h>
|
#include <resample.h>
|
||||||
#include <config.h>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ sub check_copyright();
|
||||||
sub check_license();
|
sub check_license();
|
||||||
sub check_buffer_alloc();
|
sub check_buffer_alloc();
|
||||||
sub check_bad_includes();
|
sub check_bad_includes();
|
||||||
|
sub check_begin_decls();
|
||||||
sub check_c99_comments();
|
sub check_c99_comments();
|
||||||
sub check_carriage_returns();
|
sub check_carriage_returns();
|
||||||
sub check_printf_lld();
|
sub check_printf_lld();
|
||||||
|
@ -55,27 +56,34 @@ foreach $filename (<FIND>) {
|
||||||
|
|
||||||
print "I: $filename\n";
|
print "I: $filename\n";
|
||||||
|
|
||||||
check_copyright();
|
# important stuff
|
||||||
check_license();
|
|
||||||
|
|
||||||
check_buffer_alloc();
|
|
||||||
check_bad_includes();
|
check_bad_includes();
|
||||||
check_c99_comments();
|
|
||||||
check_carriage_returns();
|
|
||||||
check_printf_lld();
|
check_printf_lld();
|
||||||
check_glibisms();
|
|
||||||
#check_indentation();
|
|
||||||
check_gst_props_set();
|
check_gst_props_set();
|
||||||
check_deprecated();
|
check_deprecated();
|
||||||
check_config_h();
|
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_c99_comments();
|
||||||
|
check_carriage_returns();
|
||||||
|
check_glibisms();
|
||||||
|
#check_indentation();
|
||||||
check_varargs_functions();
|
check_varargs_functions();
|
||||||
check_debugging();
|
check_debugging();
|
||||||
check_old_typefind();
|
|
||||||
check_bad_casts();
|
check_bad_casts();
|
||||||
check_old_plugin();
|
|
||||||
check_signal_new();
|
check_signal_new();
|
||||||
check_gnuc_const();
|
}
|
||||||
check_caps();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open FIND, "find . -name \"Makefile.am\" -print|";
|
open FIND, "find . -name \"Makefile.am\" -print|";
|
||||||
|
@ -148,7 +156,10 @@ sub check_bad_includes()
|
||||||
if (grep { /^#include\s+<malloc.h>/; } @lines) {
|
if (grep { /^#include\s+<malloc.h>/; } @lines) {
|
||||||
print "E: bad header: malloc.h\n"
|
print "E: bad header: malloc.h\n"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sub check_begin_decls()
|
||||||
|
{
|
||||||
#
|
#
|
||||||
# Prefer "G_BEGIN_DECLS" to 'extern "C" {'
|
# Prefer "G_BEGIN_DECLS" to 'extern "C" {'
|
||||||
#
|
#
|
||||||
|
|
|
@ -25,6 +25,7 @@ sub check_copyright();
|
||||||
sub check_license();
|
sub check_license();
|
||||||
sub check_buffer_alloc();
|
sub check_buffer_alloc();
|
||||||
sub check_bad_includes();
|
sub check_bad_includes();
|
||||||
|
sub check_begin_decls();
|
||||||
sub check_c99_comments();
|
sub check_c99_comments();
|
||||||
sub check_carriage_returns();
|
sub check_carriage_returns();
|
||||||
sub check_printf_lld();
|
sub check_printf_lld();
|
||||||
|
@ -55,27 +56,34 @@ foreach $filename (<FIND>) {
|
||||||
|
|
||||||
print "I: $filename\n";
|
print "I: $filename\n";
|
||||||
|
|
||||||
check_copyright();
|
# important stuff
|
||||||
check_license();
|
|
||||||
|
|
||||||
check_buffer_alloc();
|
|
||||||
check_bad_includes();
|
check_bad_includes();
|
||||||
check_c99_comments();
|
|
||||||
check_carriage_returns();
|
|
||||||
check_printf_lld();
|
check_printf_lld();
|
||||||
check_glibisms();
|
|
||||||
#check_indentation();
|
|
||||||
check_gst_props_set();
|
check_gst_props_set();
|
||||||
check_deprecated();
|
check_deprecated();
|
||||||
check_config_h();
|
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_c99_comments();
|
||||||
|
check_carriage_returns();
|
||||||
|
check_glibisms();
|
||||||
|
#check_indentation();
|
||||||
check_varargs_functions();
|
check_varargs_functions();
|
||||||
check_debugging();
|
check_debugging();
|
||||||
check_old_typefind();
|
|
||||||
check_bad_casts();
|
check_bad_casts();
|
||||||
check_old_plugin();
|
|
||||||
check_signal_new();
|
check_signal_new();
|
||||||
check_gnuc_const();
|
}
|
||||||
check_caps();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open FIND, "find . -name \"Makefile.am\" -print|";
|
open FIND, "find . -name \"Makefile.am\" -print|";
|
||||||
|
@ -148,7 +156,10 @@ sub check_bad_includes()
|
||||||
if (grep { /^#include\s+<malloc.h>/; } @lines) {
|
if (grep { /^#include\s+<malloc.h>/; } @lines) {
|
||||||
print "E: bad header: malloc.h\n"
|
print "E: bad header: malloc.h\n"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sub check_begin_decls()
|
||||||
|
{
|
||||||
#
|
#
|
||||||
# Prefer "G_BEGIN_DECLS" to 'extern "C" {'
|
# Prefer "G_BEGIN_DECLS" to 'extern "C" {'
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue