Commit 6b55d8f1 authored by David Schleef's avatar David Schleef

testsuite/gst-lint: Check for non-statically scoped parent_class variables. ...

testsuite/gst-lint: Check for non-statically scoped parent_class variables.  This won't be a problem once plugins are...

Original commit message from CVS:
* testsuite/gst-lint: Check for non-statically scoped
parent_class variables.  This won't be a problem once
plugins are loaded with RTLD_LOCAL.
parent c3118a73
2005-02-09 David Schleef <ds@schleef.org>
* testsuite/gst-lint: Check for non-statically scoped
parent_class variables. This won't be a problem once
plugins are loaded with RTLD_LOCAL.
2005-02-09 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* ext/mplex/gstmplexibitstream.cc:
......
......@@ -48,6 +48,7 @@ sub check_explicit_caps();
sub check_signals();
sub check_gettext();
sub check_padtemplate();
sub check_parent_class();
sub m_check_plugindir();
sub m_check_interfaces();
......@@ -78,6 +79,7 @@ foreach $filename (<FIND>) {
check_signals();
check_gettext();
check_padtemplate();
check_parent_class();
# less important stuff
check_license();
......@@ -548,7 +550,20 @@ sub check_padtemplate()
{
foreach $line (@lines){
if ($line =~ /GstStaticPadTemplate/ && !($line =~ /static/)) {
print "W: pad template definitions should be static\n"
print "W: pad template definitions should be static\n";
return;
}
}
}
#
# Check that parent_class is statically scoped
#
sub check_parent_class()
{
foreach $line (@lines){
if ($line =~ /Gst.*\*\s*parent_class/ && !($line =~ /static/)) {
print "E: parent_class definitions should be static\n";
return;
}
}
......
......@@ -48,6 +48,7 @@ sub check_explicit_caps();
sub check_signals();
sub check_gettext();
sub check_padtemplate();
sub check_parent_class();
sub m_check_plugindir();
sub m_check_interfaces();
......@@ -78,6 +79,7 @@ foreach $filename (<FIND>) {
check_signals();
check_gettext();
check_padtemplate();
check_parent_class();
# less important stuff
check_license();
......@@ -548,7 +550,20 @@ sub check_padtemplate()
{
foreach $line (@lines){
if ($line =~ /GstStaticPadTemplate/ && !($line =~ /static/)) {
print "W: pad template definitions should be static\n"
print "W: pad template definitions should be static\n";
return;
}
}
}
#
# Check that parent_class is statically scoped
#
sub check_parent_class()
{
foreach $line (@lines){
if ($line =~ /Gst.*\*\s*parent_class/ && !($line =~ /static/)) {
print "E: parent_class definitions should be static\n";
return;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment