[gst-devel] Re: [gst-cvs] ds gstreamer: gstreamer/docs/random/ds/

Ronald Bultje rbultje at ronald.bitfreak.net
Mon Jan 12 01:06:02 CET 2004


Hi,

On Sun, 2004-01-11 at 23:23, David Schleef wrote:
> +Make sure that each .c file includes config.h (conditionally on
> +HAVE_CONFIG_H).  Make sure that each .h file does _not_ include
> +config.h.

I used a script for this, which basically was something like this:

for file in $(find . -name '*.c' '*.cc' '*.cpp'); do
  if test $(grep config.h $file | wc -l) != 1; then
    echo "$file"
  fi
done

for file in $(find . -name '*.h' '*.hh' '*.hpp'); do
  if test $(grep config.h $file | wc -l) != 0; then
    echo "$file"
  fi
done

Maybe a good idea to add something similar to CVS in the checksuite?

Ronald

-- 
Ronald Bultje <rbultje at ronald.bitfreak.net>
Linux Video/Multimedia developer





More information about the gstreamer-devel mailing list