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.
This commit is contained in:
parent
c3118a7382
commit
6b55d8f1eb
@ -1,3 +1,9 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user